Dependent resources

A special type of resource is the dependent resource. For example, SQL databases are hosted on a SQL Server and Service Bus Topics are located within a Service Bus namespace. For a nested resource type, the type and name reflect this nesting:

{
"apiVersion": "2017-04-01",
"name": "myNamespaceName/myTopicName",
"type": "Microsoft.ServiceBus/namespaces/topics",
"dependsOn": [
"Microsoft.ServiceBus/namespaces/myNamespaceName"
]
}

Next to nesting the type and the name, the extra property, dependsOn, is also mandatory to specify that this nested resource can only be created after the containing resource exists. A location property is not necessary since this will be inherited from the containing resource.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.62.45