Microsoft.EventGrid partnerNamespaces

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

resource symbolicname 'Microsoft.EventGrid/partnerNamespaces@2021-10-15-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  properties: {
    disableLocalAuth: bool
    inboundIpRules: [
      {
        action: 'Allow'
        ipMask: 'string'
      }
    ]
    partnerRegistrationFullyQualifiedId: 'string'
    partnerTopicRoutingMode: 'string'
    publicNetworkAccess: 'string'
  }
}

Property values

partnerNamespaces

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.EventGrid/partnerNamespaces'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2021-10-15-preview'
name The resource name string (required)
location Location of the resource. string (required)
tags Tags of the resource. Dictionary of tag names and values. See Tags in templates
properties Properties of the Partner Namespace. PartnerNamespaceProperties

PartnerNamespaceProperties

Name Description Value
disableLocalAuth This boolean is used to enable or disable local auth. Default value is false. When the property is set to true, only AAD token will be used to authenticate if user is allowed to publish to the partner namespace. bool
inboundIpRules This can be used to restrict traffic from specific IPs instead of all IPs. Note: These are considered only if PublicNetworkAccess is enabled. InboundIpRule[]
partnerRegistrationFullyQualifiedId The fully qualified ARM Id of the partner registration that should be associated with this partner namespace. This takes the following format:
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventGrid/partnerRegistrations/{partnerRegistrationName}.
string
partnerTopicRoutingMode This determines if events published to this partner namespace should use the source attribute in the event payload
or use the channel name in the header when matching to the partner topic. If none is specified, source attribute routing will be used to match the partner topic.
'ChannelNameHeader'
'SourceEventAttribute'
publicNetworkAccess This determines if traffic is allowed over public network. By default it is enabled.
You can further restrict to specific IPs by configuring {seealso cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.PartnerNamespaceProperties.InboundIpRules" /}
'Disabled'
'Enabled'

InboundIpRule

Name Description Value
action Action to perform based on the match or no match of the IpMask. 'Allow'
ipMask IP Address in CIDR notation e.g., 10.0.0.0/8. string