Microsoft.ServiceBus namespaces/networkRuleSets 2017-04-01
Article 12/09/2024
2 contributors
Feedback
In this article
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 .
To create a Microsoft.ServiceBus/namespaces/networkRuleSets resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.ServiceBus/namespaces/networkRuleSets@2017-04-01' = {
parent: resourceSymbolicName
name: 'default'
properties: {
defaultAction: 'string'
ipRules: [
{
action: 'string'
ipMask: 'string'
}
]
virtualNetworkRules: [
{
ignoreMissingVnetServiceEndpoint: bool
subnet: {
id: 'string'
}
}
]
}
}
Property values
Microsoft.ServiceBus/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
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 (required)
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 .
To create a Microsoft.ServiceBus/namespaces/networkRuleSets resource, add the following JSON to your template.
{
"type": "Microsoft.ServiceBus/namespaces/networkRuleSets",
"apiVersion": "2017-04-01",
"name": "string",
"properties": {
"defaultAction": "string",
"ipRules": [
{
"action": "string",
"ipMask": "string"
}
],
"virtualNetworkRules": [
{
"ignoreMissingVnetServiceEndpoint": "bool",
"subnet": {
"id": "string"
}
}
]
}
}
Property values
Microsoft.ServiceBus/namespaces/networkRuleSets
Name
Description
Value
apiVersion
The api version
'2017-04-01'
name
The resource name
'default' (required)
properties
NetworkRuleSet properties
NetworkRuleSetProperties
type
The resource type
'Microsoft.ServiceBus/namespaces/networkRuleSets'
NetworkRuleSetProperties
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 (required)
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 .
To create a Microsoft.ServiceBus/namespaces/networkRuleSets resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.ServiceBus/namespaces/networkRuleSets@2017-04-01"
name = "string"
body = jsonencode({
properties = {
defaultAction = "string"
ipRules = [
{
action = "string"
ipMask = "string"
}
]
virtualNetworkRules = [
{
ignoreMissingVnetServiceEndpoint = bool
subnet = {
id = "string"
}
}
]
}
})
}
Property values
Microsoft.ServiceBus/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.ServiceBus/namespaces/networkRuleSets@2017-04-01"
NetworkRuleSetProperties
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 (required)