question

DominikHattrup avatar image
0 Votes"
DominikHattrup asked AndriyBilous commented

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

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-static-web-appsazure-webapps-ip-addresses
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndriyBilous avatar image
0 Votes"
AndriyBilous answered AndriyBilous edited

Hello @DominikHattrup

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://docs.microsoft.com/en-us/azure/static-web-apps/custom-domain?tabs=other-dns

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DominikHattrup avatar image
0 Votes"
DominikHattrup answered AndriyBilous commented

Hi @AndriyBilous 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?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You may try to use CNAME and TXT records, but I am not sure that your domain provider supports such type of records for naked domains
https://docs.microsoft.com/en-us/azure/static-web-apps/custom-domain?tabs=other-dns#dns-configuration-options

0 Votes 0 ·