Azure ARM模板如何将公共IP添加到dns区域

Azure ARM模板如何将公共IP添加到dns区域,azure,arm-template,azure-bicep,Azure,Arm Template,Azure Bicep,我正在使用arm模板进行部署(最好是bicep)。有没有简单的方法将我的公共ip资源添加到现有的DNS区域?公共IP具有名为dnsSettings的属性,但它似乎只能将DNS设置为指向azure默认域publicipname.eastus.cloudapp.azure.com,而不是publicipname.customdomain.com resource publicIp 'Microsoft.Network/publicIPAddresses@2020-11-01' = { locat

我正在使用arm模板进行部署(最好是bicep)。有没有简单的方法将我的公共ip资源添加到现有的DNS区域?公共IP具有名为dnsSettings的属性,但它似乎只能将DNS设置为指向azure默认域publicipname.eastus.cloudapp.azure.com,而不是publicipname.customdomain.com

resource publicIp 'Microsoft.Network/publicIPAddresses@2020-11-01' = {
  location: rg_location
  name: 'pip-example'
  tags: tags_list
  sku: {
    name: 'Standard'
    tier: 'Regional'
  }
  properties:{
    dnsSettings:{
      domainNameLabel: 'publicipname'
      fqdn: 'publicipname.customdomain.com'
    }
    publicIPAllocationMethod: 'Static'
  }
}

你的DNS区域在哪里?在Azure中还是在外部DNS提供商中?