Nameserver / Static Web App / Cannot find IP Address to set A record for root domain

Dominik Hattrup 1 Reputation point
2021-08-18T16:46:35.857+00:00

Hi. I would like to connect a root domain mydomain.de to my Azure Static Web App setting an A record. To set the A record I need the IP address of my webapp.

However, I cannot find the ip address related to my static webapp in the WebApp properties.

I tried the following PowerShell Script:

az webapp show --resource-group myRGgroup --name myStaticWebApp --query possibleOutboundIpAddresses --output tsv

But I get:

WebApp'myStaticWebApp', is not found on RG 'myRGgroup'.

Any ideas? THX!

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,033 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
782 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andriy Bilous 10,996 Reputation points MVP
    2021-08-19T12:40:39.533+00:00

    Hello @Dominik Hattrup

    Unfortunately you cannot use DNS A record to create custom domain for Static Web App.
    Possible DNS records to set up a custom domain are TXT, CNAME, ALIAS
    https://learn.microsoft.com/en-us/azure/static-web-apps/custom-domain?tabs=other-dns

    0 comments No comments

  2. Dominik Hattrup 1 Reputation point
    2021-08-19T14:00:52.553+00:00

    Hi @Andriy Bilous and thx for the quick reply! Unfortunately my domain provider does not support an ALIAS record that maps my root domain to the auto-generated URL of your static web app.

    What would be the best practice in this case?