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.
This template provisions Azure DNS Private Resolver in a virtual network with required forwarding ruleset and rules. It creates a new virtual network with two subnets, and deploy Azure DNS Private Resolver in this VNET.
ARM template resource definition
The dnsForwardingRulesets/virtualNetworkLinks resource type can be deployed with operations that target:
This template provisions Azure DNS Private Resolver in a virtual network with required forwarding ruleset and rules. It creates a new virtual network with two subnets, and deploy Azure DNS Private Resolver in this VNET.
Terraform (AzAPI provider) resource definition
The dnsForwardingRulesets/virtualNetworkLinks 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.Network/dnsForwardingRulesets/virtualNetworkLinks resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/dnsForwardingRulesets/virtualNetworkLinks@2023-07-01-preview"
name = "string"
body = jsonencode({
properties = {
metadata = {
{customized property} = "string"
}
virtualNetwork = {
id = "string"
}
}
})
}