Microsoft.EventHub namespaces/networkRuleSets 2017-04-01

The namespaces/networkRuleSets 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.EventHub/namespaces/networkRuleSets resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.EventHub/namespaces/networkRuleSets@2017-04-01' = {
  name: 'default'
  properties: {
    defaultAction: 'string'
    ipRules: [
      {
        action: 'Allow'
        ipMask: 'string'
      }
    ]
    virtualNetworkRules: [
      {
        ignoreMissingVnetServiceEndpoint: bool
        subnet: {
          id: 'string'
        }
      }
    ]
  }
}

Property values

namespaces/networkRuleSets

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.EventHub/namespaces/networkRuleSets'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2017-04-01'
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
'default'
properties NetworkRuleSet properties NetworkRuleSetProperties

NetworkRuleSetProperties

Name Description Value
defaultAction Default Action for Network Rule Set 'Allow'
'Deny'
ipRules List of IpRules NWRuleSetIpRules[]
virtualNetworkRules List VirtualNetwork Rules NWRuleSetVirtualNetworkRules[]

NWRuleSetIpRules

Name Description Value
action The IP Filter Action 'Allow'
ipMask IP Mask string

NWRuleSetVirtualNetworkRules

Name Description Value
ignoreMissingVnetServiceEndpoint Value that indicates whether to ignore missing VNet Service Endpoint bool
subnet Properties supplied for Subnet Subnet

Subnet

Name Description Value
id Resource ID of Virtual Network Subnet string (required)