WebApp Cert Bind - can't find cert #14671
Labels
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
Command Name
az webapp config ssl bind
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az webapp config ssl create --resource-group {} --name {} --hostname {}
# works fineaz webapp config ssl bind --resource-group {} --name {} --ssl-type SNI --certificate-thumbprint {}
Expected Behavior
Bind the managed certificate to the custom hostname in the web app.
Environment Summary
Additional Context
I ran in debug mode and it clearly switches contexts from searching for the certificate under the webapp to the underlying server farm. Instead of running:
with {rg} of the webapp, it runs:
with {other-rg} of the webapp's serverfarm when searching for the certificate by its thumbprint.
Thumbprint is also not the best ID to use here, cant we use the certificate ARM ID? e.g.
/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Web/certificates/{custom-domain-name}
as when the certificate gets rotated, it will change the thumbprint?
The text was updated successfully, but these errors were encountered: