DNS Resolver failing to deploy

Mike Matthews 1 Reputation point
2023-03-08T13:58:53.1933333+00:00

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'
        }
      ]
    }
  }
}
Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
707 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Maarten Balliere 10 Reputation points
    2024-06-05T20:52:53.1366667+00:00

    Still not resolved, same issue here. Resource deploys but deployment fails. Any update?

    1 person found this answer helpful.

  2. 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"

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.