azure::network-security-group¶
Creates a network security group.
Example¶
azure::network-security-group network-security-group-example
name: "network-security-group-example"
resource-group: $(azure::resource-group resource-group-network-security-group-example)
rule
name: "Port_8080"
inbound-rule: true
allow-rule: true
from-addresses: [
"8080"
]
from-ports: [
"*"
]
to-addresses: [
"8080"
]
to-ports: [
"*"
]
priority: 100
protocol: "all"
end
tags: {
Name: "network-security-group-example"
}
end
Attributes¶
Attribute | Description |
---|---|
name | Name of the Network Security Group. (Required) |
resource-group | The Resource Group under which the Network Security Group would reside. (Required) |
rule set subresource | Inbound and Outbound rules for the Network Security Group.
|
tags map | The associated tags for the Network Security Group. |
Outputs¶
Attribute | Description |
---|---|
id | The ID of the Network Security Group. |