-1

I need to add custom domain to Azure static web app by an automate process. Eg: I have a web app and it has admin side and user side. A new user registered to the admin app they can add a new subdomain to the user app.

So I want to add that created subdomain details to the azure static web -> custom domain when newly registered user of the admin app finish the registration.

Can some one navigates through the process, how to archive this.

Thank you.

XAMT
  • 1,515
  • 2
  • 11
  • 31
SA_VL
  • 31
  • 4
  • Azure has a bunch of APIs. Have you researched? – gunr2171 May 27 '22 at 19:44
  • I don't think Azure let you to create multiple subdomains with management api, but if you are looking for multitenant solution look this : https://learn.microsoft.com/en-us/azure/architecture/guide/multitenant/considerations/domain-names – XAMT May 28 '22 at 06:50

2 Answers2

0

What you are attempting to do can be done from the command line. Checkout https://learn.microsoft.com/en-us/cli/azure/staticwebapp/hostname?view=azure-cli-latest

Gary Chan
  • 446
  • 4
  • 6
0

One of the workarounds is to use wildcard custom domain which would allow users to access the site using subdomain.

For more information you can refer Azure Websites and wildcard domains

REFERENCES: Custom domains with Azure Static Web Apps

SwethaKandikonda
  • 7,513
  • 2
  • 4
  • 18