NetworkSecurityGroup
A resource of the Azure provider, version 0.3.0, in its Networking group. Import it with:
import NetworkSecurityGroup from "azure/networking"Example
resource NetworkSecurityGroup example {
name = "example-value"
resourceGroup = "example-value"
location = "example-value"
securityRules = "..."
tags = "..."
}Properties
Set by your code in the resource block. A required one must be set; any other you leave out takes the value under Default, if it has one.
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
name | string | — | No | The name of the network security group |
resourceGroup | string | — | No | The Azure resource group name |
location | string | — | No | The Azure region/location |
securityRules | any[] | — | No | List of security rules. Each rule defines allowed or denied traffic |
tags | object | — | No | Tags to apply to the NSG |
Set by Azure after the resource is created: your code can read them but not set them. An importable one identifies an existing resource.
| Name | Type | Importable | Description |
|---|---|---|---|
id | string | Yes | The Azure resource ID |
provisioningState | string | No | The provisioning state |
resourceGuid | string | No | The resource GUID |
networkInterfaceIds | any[] | No | List of network interfaces associated with this NSG |
subnetIds | any[] | No | List of subnets associated with this NSG |