update: The issue has been resolved.
Please let us know if further query or issue remains.
Please accept as "Yes" if the answer provided is useful , so that you can help others in the community looking for remediation for similar issues.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I originally posted this under the GitHub section for Static Web Apps, but I've not seen a response from Microsoft in about 3 days... https://github.com/Azure/static-web-apps/issues/1159
Describe the bug
I am following the "Set up a custom domain in Azure Static Web Apps" instruction set. I'm trying to verify ownership of the domain, as instructed. But, the code I'm supposed to copy for the TXT record is never generated, and JavaScript errors are dumped to the console.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I had expected to see a code that I could copy and paste as a TXT record for my registrar.
Screenshots
Device info (if applicable):
Additional context
I have also tried this with a different static app, and got the same results. I was only able to finish the first part of the instructions: adding the "www", and that part was verified by Azure. I just need to get to part 2 & 3 of the instructions: generated the TXT code, and setting up an Alias.
update: The issue has been resolved.
Please let us know if further query or issue remains.
Please accept as "Yes" if the answer provided is useful , so that you can help others in the community looking for remediation for similar issues.
Apologies for inconvenience on this, Acknowledged the issue is reproducible and product team is working towards fix, will update here accordingly.
Workaround suggested.
Use Azure CLI command to generate a token:
az staticwebapp hostname set -n MyStaticAppName --hostname example.com --validation-method "dns-txt-token"
Once executed, a TXT token will be generated. But the command will not complete until the validation complete.
You can retrieve the token via Azure portal > Static Web App > Custom Domain.
You can also retrieve the token with below Azure CLI command in a different command prompt:
az staticwebapp hostname show -n MyStaticAppName -g MyResourceGroup --hostname example.com --query "validationToken"
Also, could you send us an email with subject line “Attn:Sneha |thread title” to AzCommunity[at]microsoft[dot]com referencing this thread.
Please let us know if further query.