Files
opentf/website/source/docs/providers/azure/r/security_group.html.markdown
George Christou 61277c0dbd website/docs: Run terraform fmt on code examples (#12075)
* docs/vsphere: Fix code block

* docs: Convert `...` to `# ...` to allow `terraform fmt`ing

* docs: Trim trailing whitespace

* docs: First-pass run of `terraform fmt` on code examples
2017-02-19 00:48:50 +02:00

1.1 KiB

layout, page_title, sidebar_current, description
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.