When adding a custom domain from non-Azure provider I cannot create validation token for creating A record

Stephan Kuenster 20 Reputation points
2023-05-06T22:07:48.5733333+00:00

When adding a custom domain from non-Azure provider I cannot create validation token for creating A record.

The 'Generate token' button does not work and no token is created.

error2.PNG

Azure DNS
Azure DNS
An Azure service that enables hosting Domain Name System (DNS) domains in Azure.
634 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
851 questions
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 20,856 Reputation points
    2023-05-09T07:50:27.9066667+00:00

    @Stephan Kuenster

    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 additional answers

Sort by: Most helpful