Still not resolved, same issue here. Resource deploys but deployment fails. Any update?
DNS Resolver failing to deploy
We have a DNS Resolver as part of our Bicep configuration. This resource was first deployed some time ago, and the Bicep definition has not recently chagned. Our DevOps pipeline therefore does not need to modify it.
Starting this morning, however, the pipeline has been hanging and eventually failing when attempting to deploy the DNS Resolver. The specific error type is:
Microsoft.Azure.Networking.Dns.ManagedResolver.Frontend.Contracts.Exceptions.Service.FrontendServiceException
Our Bicep code is as follows:
resource dnsResolver 'Microsoft.Network/dnsResolvers@2022-07-01' = {
name: dnsResolverName
location: location
properties: {
virtualNetwork: {
id: dnsResolverSubnetResourceId
}
}
resource dnsResolvers_PrivateDNSResolver_name_InboundEndpoint 'inboundEndpoints' = {
name: 'InboundEndpoint'
location: location
properties: {
ipConfigurations: [
{
subnet: {
id: dnsResolverSubnetResourceId
}
privateIpAllocationMethod: 'Dynamic'
}
]
}
}
}
2 answers
Sort by: Most helpful
-
-
Tchimwa Sougang 946 Reputation points Microsoft Employee
2024-12-17T21:31:46.4233333+00:00 properties: { ipConfigurations: [ { subnet: { id: resourceId('Microsoft.Network/virtualNetworks/subnets', virtualNetwork.name, 'dnsSubnet') } privateIpAddress: '10.${hubCidr}.0.4' privateIpAllocationMethod: 'Dynamic' } ] }
You picked a static IP but choosing a Dynamic Allocation? Try to change "Dynamic" for "Static"