Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Frontdoor Apex domain reference #2351

Open
aslan-im opened this issue Nov 7, 2024 · 1 comment
Open

Azure Frontdoor Apex domain reference #2351

aslan-im opened this issue Nov 7, 2024 · 1 comment

Comments

@aslan-im
Copy link

aslan-im commented Nov 7, 2024

Bicep version
Bicep CLI version 0.30.23 (ec3612efc7)

Describe the bug
As far as I know it is impossible to add apex domain to the frontdoor via bicep. But it is possible to add them manually. Earlier if the domain was somedomain.com, the resource name was somedomain-com. I noticed that Microsoft changed this behaviour and adds some random string to the name like this: somedomain-com-ad5e
Is there any way to refer to the manually added apex domain without hardcoding the name with suffix?

To Reproduce

  1. Create Azure Frontdoor
  2. Add apex domain to the custom domains
  3. Try to refer to apex domain by its name like in this example
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 add this value as well.
      }
    }
  }
}

Additional context
I need to associate rules with this domain using bicep

@stephaniezyen
Copy link
Contributor

Unfortunately this is a Microsoft.Cdn RP issue, please open a support ticket with that RP.

@stephaniezyen stephaniezyen transferred this issue from Azure/bicep Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Todo
Development

No branches or pull requests

2 participants