Azure Static Web App - Add Custom Domain - Generate Code button doesnt work

Tomáš Ludvík 30 Reputation points
2023-05-07T13:23:09.8033333+00:00

Cant add custom domain. Console is just full of errors after pressing button.

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,173 questions
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2023-05-09T07:47:43.3833333+00:00

    @Tomáš Ludvík 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"

    Please let us know if further query.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2023-05-11T10:50:59.4266667+00:00

    @Tomáš Ludvík 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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.