2015-06-11 20:27:26 +02:00
|
|
|
---
|
|
|
|
layout: "azure"
|
|
|
|
page_title: "Azure: azure_security_group"
|
|
|
|
sidebar_current: "docs-azure-resource-security-group"
|
|
|
|
description: |-
|
|
|
|
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
|
|
|
|
|
2017-04-17 12:17:54 +02:00
|
|
|
```hcl
|
2015-06-11 20:27:26 +02:00
|
|
|
resource "azure_security_group" "web" {
|
2017-02-18 23:48:50 +01:00
|
|
|
name = "webservers"
|
|
|
|
location = "West US"
|
2015-06-11 20:27:26 +02:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## 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.
|