Skip to content

Apex domain in Azure Front Door via bicep template never validates #10326

Answered by brwilkinson
Gansted asked this question in General
Discussion options

You must be logged in to vote

full sample standalone

main.bicep

param zone string = 'psthing.com'
param profileName string = 'aeu1pectld1cdnshared01'
param zoneResourceGroup string = 'aeu1-pe-ctl-rg-p0'

resource DNS 'Microsoft.Network/dnsZones@2018-05-01' existing = {
  name: zone
  scope: resourceGroup(zoneResourceGroup)
}

resource CDN 'Microsoft.Cdn/profiles@2022-11-01-preview' existing = {
  name: profileName

  resource customDomain 'customDomains' = {
    name: replace(zone, '.', '-')
    properties: {
      hostName: zone
      tlsSettings: {
        certificateType: 'ManagedCertificate'
        minimumTlsVersion: 'TLS12'
      }
      azureDnsZone: {
        id: DNS.id //<-- based on th docs you might want to…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@brwilkinson
Comment options

@brwilkinson
Comment options

Answer selected by brwilkinson
@brwilkinson
Comment options

@Gansted
Comment options

@brwilkinson
Comment options

@aslan-im
Comment options

Comment options

You must be logged in to vote
1 reply
@JamesCuneo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #10323 on April 05, 2023 19:26.