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

Bicep resource definition

The namespaces/networkRuleSets resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.EventHub/namespaces/networkRuleSets resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.EventHub/namespaces/networkRuleSets@2021-01-01-preview' = {
  parent: resourceSymbolicName
  name: 'default'
  properties: {
    defaultAction: 'string'
    ipRules: [
      {
        action: 'string'
        ipMask: 'string'
      }
    ]
    trustedServiceAccessEnabled: bool
    virtualNetworkRules: [
      {
        ignoreMissingVnetServiceEndpoint: bool
        subnet: {
          id: 'string'
        }
      }
    ]
  }
}

Property values

Microsoft.EventHub/namespaces/networkRuleSets

Name Description Value
name The resource name 'default' (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: namespaces
properties NetworkRuleSet properties NetworkRuleSetProperties

NetworkRuleSetProperties

Name Description Value
defaultAction Default Action for Network Rule Set 'Allow'
'Deny'
ipRules List of IpRules NWRuleSetIpRules[]
trustedServiceAccessEnabled Value that indicates whether Trusted Service Access is Enabled or not. bool
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 Subnet properties Subnet

Subnet

Name Description Value
id Resource ID of Virtual Network Subnet string

Quickstart samples

The following quickstart samples deploy this resource type.

Bicep File Description
FrontDoor CDN with WAF, Domains and Logs to EventHub This template creates a new Azure FrontDoor cdn profile. Create WAF with custom and managed rules, cdn routes, origin and groups with their association with WAF and routes, configures custom domains, create event hub and diagnostic settings for sending CDN access logs using event hub.

ARM template resource definition

The namespaces/networkRuleSets resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.EventHub/namespaces/networkRuleSets resource, add the following JSON to your template.

{
  "type": "Microsoft.EventHub/namespaces/networkRuleSets",
  "apiVersion": "2021-01-01-preview",
  "name": "string",
  "properties": {
    "defaultAction": "string",
    "ipRules": [
      {
        "action": "string",
        "ipMask": "string"
      }
    ],
    "trustedServiceAccessEnabled": "bool",
    "virtualNetworkRules": [
      {
        "ignoreMissingVnetServiceEndpoint": "bool",
        "subnet": {
          "id": "string"
        }
      }
    ]
  }
}

Property values

Microsoft.EventHub/namespaces/networkRuleSets

Name Description Value
apiVersion The api version '2021-01-01-preview'
name The resource name 'default' (required)
properties NetworkRuleSet properties NetworkRuleSetProperties
type The resource type 'Microsoft.EventHub/namespaces/networkRuleSets'

NetworkRuleSetProperties

Name Description Value
defaultAction Default Action for Network Rule Set 'Allow'
'Deny'
ipRules List of IpRules NWRuleSetIpRules[]
trustedServiceAccessEnabled Value that indicates whether Trusted Service Access is Enabled or not. bool
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 Subnet properties Subnet

Subnet

Name Description Value
id Resource ID of Virtual Network Subnet string

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
FrontDoor CDN with WAF, Domains and Logs to EventHub

Deploy to Azure
This template creates a new Azure FrontDoor cdn profile. Create WAF with custom and managed rules, cdn routes, origin and groups with their association with WAF and routes, configures custom domains, create event hub and diagnostic settings for sending CDN access logs using event hub.

Terraform (AzAPI provider) resource definition

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.EventHub/namespaces/networkRuleSets@2021-01-01-preview"
  name = "string"
  body = jsonencode({
    properties = {
      defaultAction = "string"
      ipRules = [
        {
          action = "string"
          ipMask = "string"
        }
      ]
      trustedServiceAccessEnabled = bool
      virtualNetworkRules = [
        {
          ignoreMissingVnetServiceEndpoint = bool
          subnet = {
            id = "string"
          }
        }
      ]
    }
  })
}

Property values

Microsoft.EventHub/namespaces/networkRuleSets

Name Description Value
name The resource name 'default' (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: namespaces
properties NetworkRuleSet properties NetworkRuleSetProperties
type The resource type "Microsoft.EventHub/namespaces/networkRuleSets@2021-01-01-preview"

NetworkRuleSetProperties

Name Description Value
defaultAction Default Action for Network Rule Set 'Allow'
'Deny'
ipRules List of IpRules NWRuleSetIpRules[]
trustedServiceAccessEnabled Value that indicates whether Trusted Service Access is Enabled or not. bool
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 Subnet properties Subnet

Subnet

Name Description Value
id Resource ID of Virtual Network Subnet string