New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot register providers: Microsoft.Compute. Errors were: waiting for Subscription Provider #23195
Comments
I've been having this problem a lot lately. The azurerm provider seems to wait for all of the resource providers it registers to enter the "Registered" state, but I keep running into problems where some of these are stuck "Registering" for 12+ hours. This is against Microsoft's recommendation in this article:
In the mean time, this is a simplified version of my workaround which seems ok so far:
|
I'm not sure why it takes so long time to register RP, but you can always skip the registration via:
Meanwhile, if you still want to ensure some certain RPs are registered, you can use: |
this is resolved after connecting with MSFT and got responce that there is some internal issue |
I ran into this issue too. I'm not sure this is going to solve it for anyone else, but for some reason the problem was caused by the fact that I created an App Registration for TF to use with my Contributor user with which I haven't created any TF resources yet. By - through the Azure Portal - manually creating a temporary Resource Group then promptly deleting it, suddenly TF plan/apply started working. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Terraform Version
1.5.6
AzureRM Provider Version
v3.65.0
Affected Resource(s)/Data Source(s)
azurerm
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
successful apply
Actual Behaviour
provider crashed
Steps to Reproduce
No response
Important Factoids
No response
References
I find a issue in Microsoft Q/A but this doesn't help because we didn't change any permissions expect the azurerm provider version. This is effected only newly created subs
https://learn.microsoft.com/en-us/answers/questions/1354723/could-not-register-the-resource-provider-microsoft
No response
The text was updated successfully, but these errors were encountered: