Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Bicep resource definition
The networkManagers/securityUserConfigurations/ruleCollections/rules resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules@2024-05-01' = {
parent: resourceSymbolicName
name: 'string'
properties: {
description: 'string'
destinationPortRanges: [
'string'
]
destinations: [
{
addressPrefix: 'string'
addressPrefixType: 'string'
}
]
direction: 'string'
protocol: 'string'
sourcePortRanges: [
'string'
]
sources: [
{
addressPrefix: 'string'
addressPrefixType: 'string'
}
]
}
}
Property Values
Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules
Name | Description | Value |
---|---|---|
name | The resource name | string Constraints: Pattern = ^[a-zA-Z0-9_.-]*$ (required) |
parent | In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource. For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: networkManagers/securityUserConfigurations/ruleCollections |
properties | Indicates the properties of the security user rule | SecurityUserRulePropertiesFormat |
AddressPrefixItem
Name | Description | Value |
---|---|---|
addressPrefix | Address prefix. | string |
addressPrefixType | Address prefix type. | 'IPPrefix' 'NetworkGroup' 'ServiceTag' |
SecurityUserRulePropertiesFormat
Name | Description | Value |
---|---|---|
description | A description for this rule. | string |
destinationPortRanges | The destination port ranges. | string[] |
destinations | The destination address prefixes. CIDR or destination IP ranges. | AddressPrefixItem[] |
direction | Indicates if the traffic matched against the rule in inbound or outbound. | 'Inbound' 'Outbound' (required) |
protocol | Network protocol this rule applies to. | 'Ah' 'Any' 'Esp' 'Icmp' 'Tcp' 'Udp' (required) |
sourcePortRanges | The source port ranges. | string[] |
sources | The CIDR or source IP ranges. | AddressPrefixItem[] |
ARM template resource definition
The networkManagers/securityUserConfigurations/ruleCollections/rules resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules resource, add the following JSON to your template.
{
"type": "Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules",
"apiVersion": "2024-05-01",
"name": "string",
"properties": {
"description": "string",
"destinationPortRanges": [ "string" ],
"destinations": [
{
"addressPrefix": "string",
"addressPrefixType": "string"
}
],
"direction": "string",
"protocol": "string",
"sourcePortRanges": [ "string" ],
"sources": [
{
"addressPrefix": "string",
"addressPrefixType": "string"
}
]
}
}
Property Values
Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2024-05-01' |
name | The resource name | string Constraints: Pattern = ^[a-zA-Z0-9_.-]*$ (required) |
properties | Indicates the properties of the security user rule | SecurityUserRulePropertiesFormat |
type | The resource type | 'Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules' |
AddressPrefixItem
Name | Description | Value |
---|---|---|
addressPrefix | Address prefix. | string |
addressPrefixType | Address prefix type. | 'IPPrefix' 'NetworkGroup' 'ServiceTag' |
SecurityUserRulePropertiesFormat
Name | Description | Value |
---|---|---|
description | A description for this rule. | string |
destinationPortRanges | The destination port ranges. | string[] |
destinations | The destination address prefixes. CIDR or destination IP ranges. | AddressPrefixItem[] |
direction | Indicates if the traffic matched against the rule in inbound or outbound. | 'Inbound' 'Outbound' (required) |
protocol | Network protocol this rule applies to. | 'Ah' 'Any' 'Esp' 'Icmp' 'Tcp' 'Udp' (required) |
sourcePortRanges | The source port ranges. | string[] |
sources | The CIDR or source IP ranges. | AddressPrefixItem[] |
Usage Examples
Terraform (AzAPI provider) resource definition
The networkManagers/securityUserConfigurations/ruleCollections/rules resource type can be deployed with operations that target:
- Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules@2024-05-01"
name = "string"
parent_id = "string"
body = {
properties = {
description = "string"
destinationPortRanges = [
"string"
]
destinations = [
{
addressPrefix = "string"
addressPrefixType = "string"
}
]
direction = "string"
protocol = "string"
sourcePortRanges = [
"string"
]
sources = [
{
addressPrefix = "string"
addressPrefixType = "string"
}
]
}
}
}
Property Values
Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules
Name | Description | Value |
---|---|---|
name | The resource name | string Constraints: Pattern = ^[a-zA-Z0-9_.-]*$ (required) |
parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: networkManagers/securityUserConfigurations/ruleCollections |
properties | Indicates the properties of the security user rule | SecurityUserRulePropertiesFormat |
type | The resource type | "Microsoft.Network/networkManagers/securityUserConfigurations/ruleCollections/rules@2024-05-01" |
AddressPrefixItem
Name | Description | Value |
---|---|---|
addressPrefix | Address prefix. | string |
addressPrefixType | Address prefix type. | 'IPPrefix' 'NetworkGroup' 'ServiceTag' |
SecurityUserRulePropertiesFormat
Name | Description | Value |
---|---|---|
description | A description for this rule. | string |
destinationPortRanges | The destination port ranges. | string[] |
destinations | The destination address prefixes. CIDR or destination IP ranges. | AddressPrefixItem[] |
direction | Indicates if the traffic matched against the rule in inbound or outbound. | 'Inbound' 'Outbound' (required) |
protocol | Network protocol this rule applies to. | 'Ah' 'Any' 'Esp' 'Icmp' 'Tcp' 'Udp' (required) |
sourcePortRanges | The source port ranges. | string[] |
sources | The CIDR or source IP ranges. | AddressPrefixItem[] |