-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az webapp config ssl create - Doesn't support child DNS zone #30100
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Web Appsaz webappaz webappact-observability-squadapp-service-certs-domainsbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.Web Appsaz webappaz webappact-observability-squadapp-service-certs-domainsbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Describe the bug
I have the following DNS setup:
I create an A record in the child zone - @ and then the IP of the webapp, aswell as the asuid txt record for domain validation.
When running;
It fails with:
Properties.CanonicalName is invalid. Not found CNAME directly pointing to *.azurewebsites.net. Current CNAME record of the hostname qa.example.com is empty.
It should be possible to specify the validation method, so that you can specify ARecord. This is currently possible in azure container apps with
az containerapp hostname bindRelated command
az webapp config ssl create
Errors
Sensitive information removed (removed the child DNS zone with example.com):
{ "Code": "BadRequest", "Message": "Properties.CanonicalName is invalid. Not found CNAME directly pointing to *.azurewebsites.net. Current CNAME record of the hostname qa.example.com is empty.", "Target": null, "Details": [ { "Message": "Properties.CanonicalName is invalid. Not found CNAME directly pointing to *.azurewebsites.net. Current CNAME record of the hostname qa.example.com is empty." }, { "Code": "BadRequest" }, { "ErrorEntity": { "ExtendedCode": "51021", "MessageTemplate": "{0} is invalid. {1}", "Parameters": [ "Properties.CanonicalName", "Not found CNAME directly pointing to *.azurewebsites.net. Current CNAME record of the hostname qa.example.com is empty." ], "Code": "BadRequest", "Message": "Properties.CanonicalName is invalid. Not found CNAME directly pointing to *.azurewebsites.net. Current CNAME record of the hostname qa.example.com is empty." } } ], "Innererror": null }Issue script & Debug output
I think it's not needed.
Expected behavior
As an ARecord is defined in the child DNS zone, it should be able to validate and bind the certifcate. It defaults to cname, which seems incorrect.
Environment Summary
azure-cli 2.65.0
core 2.65.0
telemetry 1.1.0
Extensions:
account 0.2.5
Dependencies:
msal 1.31.0
azure-mgmt-resource 23.1.1
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Python (Windows) 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]
Additional context
No response