terraform/website/source/docs/providers/azure/r/security_group.html.markdown

1.1 KiB

layout page_title sidebar_current description
azure Azure: azure_security_group docs-azure-resource-security-group Creates a new network security group within the context of the specified subscription.

azure_security_group

Creates a new network security group within the context of the specified subscription.

Example Usage

resource "azure_security_group" "web" {
    name = "webservers"
    location = "West US"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the security group. Changing this forces a new resource to be created.

  • label - (Optional) The identifier for the security group. The label can be up to 1024 characters long. Changing this forces a new resource to be created (defaults to the security group name)

  • location - (Required) The location/region where the security group is created. Changing this forces a new resource to be created.

Attributes Reference

The following attributes are exported:

  • id - The security group ID.
  • label - The identifier for the security group.