Microsoft.EventHub namespaces/networkRuleSets 2018-01-01-preview

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@2018-01-01-preview' = {
  name: 'default'
  parent: parentSymbolicName
  properties: {
    defaultAction: 'string'
    ipRules: [
        action: 'Allow'
        ipMask: 'string'
    trustedServiceAccessEnabled: bool
    virtualNetworkRules: [
        ignoreMissingVnetServiceEndpoint: bool
        subnet: {
          id: 'string'

Property values


Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
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.
properties NetworkRuleSet properties NetworkRuleSetProperties


Name Description Value
defaultAction Default Action for Network Rule Set 'Allow'
ipRules List of IpRules NWRuleSetIpRules[]
trustedServiceAccessEnabled Value that indicates whether Trusted Service Access is Enabled or not. bool
virtualNetworkRules List VirtualNetwork Rules NWRuleSetVirtualNetworkRules[]


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


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


Name Description Value
id Resource ID of Virtual Network Subnet string