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 dnsResolvers/outboundEndpoints 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 dnsResolvers/outboundEndpoints 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/dnsResolvers/outboundEndpoints resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/dnsResolvers/outboundEndpoints@2022-07-01"
name = "string"
location = "string"
body = jsonencode({
properties = {
subnet = {
id = "string"
}
}
})
tags = {
{customized property} = "string"
}
}
Property values
Microsoft.Network/dnsResolvers/outboundEndpoints
Name
Description
Value
location
The geo-location where the resource lives
string (required)
name
The resource name
string (required)
parent_id
The ID of the resource that is the parent for this resource.