Microsoft.Network networkManagers/securityAdminConfigurations/ruleCollections/rules

The networkManagers/securityAdminConfigurations/ruleCollections/rules resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules@2021-02-01-preview' = {
  name: 'string'
  kind: 'string'
  // For remaining properties, see networkManagers/securityAdminConfigurations/ruleCollections/rules objects
}

networkManagers/securityAdminConfigurations/ruleCollections/rules objects

Set the kind property to specify the type of object.

For Custom, use:

  kind: 'Custom'
  properties: {
    access: 'string'
    description: 'string'
    destinationPortRanges: [ 'string' ]
    destinations: [
      {
        addressPrefix: 'string'
        addressPrefixType: 'string'
      }
    ]
    direction: 'string'
    displayName: 'string'
    priority: int
    protocol: 'string'
    sourcePortRanges: [ 'string' ]
    sources: [
      {
        addressPrefix: 'string'
        addressPrefixType: 'string'
      }
    ]
  }

For Default, use:

  kind: 'Default'
  properties: {
    flag: 'string'
  }

Property values

networkManagers/securityAdminConfigurations/ruleCollections/rules

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.Network/networkManagers/securityAdminConfigurations/ruleCollections/rules'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2021-02-01-preview'
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
string (required)
kind Set the object type Custom
Default

AdminRule

Name Description Value
kind Whether the rule is custom or default. 'Custom'
properties Security admin rule resource. AdminPropertiesFormat

AdminPropertiesFormat

Name Description Value
access Whether network traffic is allowed or denied. 'Allow'
'AlwaysAllow'
'Deny'
description A description for this rule. Restricted to 140 chars. string
destinationPortRanges The destination port ranges. string[]
destinations The destination address prefixes. CIDR or destination IP ranges. AddressPrefixItem[]
direction The direction of the rule. The direction specifies if the rule will be evaluated on incoming or outgoing traffic. 'Inbound'
'Outbound'
displayName A friendly name for the rule. string
priority The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule. int
protocol Network protocol this rule applies to. 'Ah'
'Any'
'Esp'
'Icmp'
'Tcp'
'Udp'
sourcePortRanges The source port ranges. string[]
sources The CIDR or source IP ranges. AddressPrefixItem[]

AddressPrefixItem

Name Description Value
addressPrefix Address prefix. string
addressPrefixType Address prefix type. 'IPPrefix'
'ServiceTag'

DefaultAdminRule

Name Description Value
kind Whether the rule is custom or default. 'Default'
properties Security default admin rule resource. DefaultAdminPropertiesFormat

DefaultAdminPropertiesFormat

Name Description Value
flag Default rule flag. string