Open stawen opened 3 years ago
Thank you @stawen for an incredibly detailed description! May I ask you to run the resource creation with debug options, log everything that happens (that will include raw HTTP payloads) and send them to me at mikhail@pulumi.com?
An example command:
pulumi up --debug -v=9 --skip-preview --yes --logflow --logtostderr
hi @mikhailshilkov, i send you the output file
@stawen Thank you for sharing the logs with me. I opened an issue upstream in https://github.com/Azure/azure-rest-api-specs/issues/16804
We'll try to add a manual work around in the provider to get users unblocked until this is fixed on the service side (if ever).
@mikhailshilkov ok, thank you ! glad that can help
Hello @mikhailshilkov, is there any update regarding the work around? I am facing the very same issue.
@agi1clj Unfortunately, I don't think we landed a workaround for this. cc @danielrbradley and @stack72 who are working on the provider these days.
Hi @danielrbradley / @stack72, maybe as a temporary solution, you can just put a try catch block and if exception is timed out or something to just pass. The problem is that the resource (OrderCertificate) is created, but Pulumi in pipeline fails because of the time out. But I think should be enough to just log there that there was a timed out but the resource is there.
Hy Everyone, I test again with the latest Azure API version for App Service Certificate and the problem is still there. So I developed a Pulumi Dynamic Provider. It allows you to create an App Service Certificate and store it into a KeyVault.
You can read the documentation in my repo: https://github.com/stawen/azure-certificate
Yo use it :
npm install @stawen/azure-certificate
I hope this helps you all.
cc @mikhailshilkov / @agi1clj / @thomas11 / @abhinav / @danielrbradley / @stack72 / @ArcasGabriel / @Christoba and @nicolas-vgl-mf
Hey @stawen, that's really cool! Thank you for sharing!
It's unfortunate that MS is taking forever to triage the issue we filed.
Hello!
Issue details
Context (Environment)
I want to create a public certificate with the "App Service Certificate" managed service, and link it to a Keyvault so that the generated certificate is stored in the keyvault.
Azure Official documentation : https://docs.microsoft.com/en-us/azure/app-service/configure-ssl-certificate#start-certificate-order
Pulumi Documentation : https://www.pulumi.com/registry/packages/azure-native/api-docs/certificateregistration/
The complete steps for App Service Certificate are:
Here no need to go to the domain verification to reproduce my issue
I Make this test :
The problem is that pulumi does not finish is action although the link is made
I have to kill the process, and therefore I have a synchronization problem between Azure and pulumi.
Steps to reproduce
1. The Pulumi Typescript code
Here i create :
I have here a time out on
AppServiceCertificateOrderCertificate
at the end of 5 minutes, because I'm bored. If I don't put it on, the action doesn't end even after 60 minutes2. Test with Azure Rest API
I make a Powershell script to test it I am using the keyvault created by my pulumi script below. This shows that the keyvault conf looks correct
Reference API
Replace $subscriptionId and $tenantId with your own
Everything is fine, the link action only took a few seconds and everything seems ok on the Azure side (return code 201)
It seems that the problem is on the side of the Azure-native provider and not the Rest Azure APIs, in your opinion ?