Open sinedied opened 3 years ago
Is there any new on this ? Can't seem to find any documentation regarding how to fill the validation method
Did you find a way to get through the validation of custom domain?
I have the same issue now, and it just gets stuck on validating.
Currently there's no solution, but the team is looking at it. cc @simonaco
Great! If there is anything I can provide to help, let me know!
We've just hit this issue too. Any update on this? Thanks
same issue here, any updates?
Same issue here. Does someone has a workaround?
Same problem here, still no workaround?
Looks like they don't care, this product is half baked, it was made in a hurry as an answer to AWS Amplify.
It ssems to be somewhat related to: https://github.com/Azure/bicep/issues/4483
No progress here? @simonaco @sinedied
Simona isn't working on the team anymore, and I don't have any news regarding this. Maybe @anthonychu have an update on this, as it's likely to concern all App Services products?
Anything? Any update at all? It's been almost two years for a basic automation ask.
Anything? Any update at all? It's been almost two years for a basic automation ask.
I think its a bit weird that someone has left the team and apparently all work has stopped. Just look at the Github issues.
Anyways, the only way I have found this works is to use a deployment script to make an API call to get the validationToken and then create a TXT record in your DNS. I do not like using deploymentScripts but I like copy/pasting TXT records even less... I have a little example here: https://github.com/TheCloudWarrior/AzureStaticWebApp
I hope I have taken out all hardcoded variables :)
Describe the bug
I'm trying to create a SWA from scratch using Bicep, and setting custom domains the same way.
My template looks like this for the SWA part:
I would like to use TXT validation for validating the domain names, as seen here in the template. I have 2 issues doing that:
I don't know how to get the generated token code, so I can put in the Azure DNS template. I found nothing related in the docs.
The Bicep template without the
customDomains
part works fine. But when I add thecustomDomains
section, it never returns and seems to get stuck (waiting for the validation to succeed?). When I break out of the deployment (with CRTL+C) as it's waiting forever, get an error when I'm trying to redeploy because the previous deployment never ended:I have to cancel the deployment manually otherwise it gets stuck for days.
Note that I'm deploying the bicep template with
az deployment group create
.Expected behavior
Adding
customDomains
resources to my SWA Bicep template should work without getting stuck in the process, and I should be able to retrieve the generated validation codes to use then in the Azure DNS part of the Bicep template.Additional info:
I should mention that the custom domain are correctly set, as I can see them in the Azure portal, in the custom domains section of the deployed SWA, waiting on "validating" message.