Data Source: azurestack_network_security_group

Use this data source to access the properties of a Network Security Group.

Example Usage

data "azurestack_network_security_group" "test" {
  name                = "${azurestack_network_security_group.test.name}"
  resource_group_name = "${azurestack_resource_group.test.name}"
}

output "location" {
  value = "${data.azurestack_network_security_group.test.location}"
}

Argument Reference

  • name - (Required) Specifies the Name of the Network Security Group.
  • resource_group_name - (Required) Specifies the Name of the Resource Group within which the Network Security Group exists

Attributes Reference

  • id - The ID of the Network Security Group.

  • location - The supported Azure location where the resource exists.

  • security_rule - One or more security_rule blocks as defined below.

  • tags - A mapping of tags assigned to the resource.

The security_rule block supports:

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/azurestack/d/network_security_group.html