Microsoft.ServiceBus namespaces/virtualnetworkrules template reference

Template format

To create a Microsoft.ServiceBus/namespaces/virtualnetworkrules resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.ServiceBus/namespaces/virtualnetworkrules",
  "apiVersion": "2018-01-01-preview",
  "properties": {
    "virtualNetworkSubnetId": "string"
  }
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.ServiceBus/namespaces/virtualnetworkrules object

Name Type Required Value
name string Yes The Virtual Network Rule name.
type enum Yes virtualnetworkrules
-or-
Microsoft.ServiceBus/namespaces/virtualnetworkrules

See Set name and type for child resources.
apiVersion enum Yes 2018-01-01-preview
properties object Yes Properties supplied to create or update VirtualNetworkRules - VirtualNetworkRuleProperties object

VirtualNetworkRuleProperties object

Name Type Required Value
virtualNetworkSubnetId string No Resource ID of Virtual Network Subnet

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create a Service Bus namespace Virtual Network rule

Deploy to Azure
This template enables you to deploy a Service Bus Premium namespace with Virtual Network rule