Reputation: 2922
This issue is SOMEWHAT similar to the following (but does not display the same behavior in testing):
While attempting to register the Microsoft.Compute provider in order to use AKS from the MacOS command line (or alternately Cloud Shell from within Azure), the provider takes an exorbitantly long time to finish registering.
At the time of this writing it is still in the 'registering' status 6 hours later.
The following command should register Microsoft.Compute in a timely manner:
az provider register -n Microsoft.Compute
The provider never registers and continuously hangs "Registering" when it's status is checked with the following command:
az provider show --namespace Microsoft.Compute -o table
The response to the above shell command looks like this (and has for 6 hours or so):
Namespace RegistrationState
----------------- -------------------
Microsoft.Compute Registering
Other Providers that Registered Successfully:
Given the above (and the fact that I am the root / only user) it is likely not a permissions issue since those providers would have failed. Under 'My Permissions' I am listed as administrator: 'You are an administrator on the subscription' see the below screen shot of registered providers (with permissions blade on the right):
Since the provider never finishes registering, attempting to create a Cluster with AKS of course fails with:
Operation failed with status: 'Bad Request'. Details: Required resource provider registrations Microsoft.Compute are missing.
Two days ago I preformed the identical operations on a clients account successfully and everything finished within 5 minutes. I have tried the following options to solve the issue (thus far with no impact):
az provider unregister -n Microsoft.Compute
I get:
The subscription cannot be unregistered from resource namespace 'Microsoft.Compute'. Please delete existing resources for the provider.This is different from the user over here who then gets Stuck / Hangs at Un-Registering, as opposed to failing with the above message when attempting to unregister (Azure: Microsoft.Compute resource provider stuck 'Registering' for about a day)
I am hoping that someone has encountered this in the past. At this point I am going to try to delete my subscription (which was created earlier in the day) and add a new one / repeat.
Will post back with my findings.
Upvotes: 1
Views: 3866
Reputation: 41
In my case i had to unregister the provider and then remove any resource associated with it.
az provider list --query "[?namespace=='Microsoft.App']" --output table
az provider unregister --namespace Microsoft.App --wait
az provider list --query "[?namespace=='Microsoft.App']" --output table
Upvotes: 0
Reputation: 29
I recently had the same issue with registration of the Microsoft.Web Provider. Once I registered it using a specific API version (via CloudShell, while it was still in status "registering") it immediately registered successfully. This is the command I used:
Register-AzResourceProvider -ProviderNamespace Microsoft.Web -ApiVersion "2023-01-01"
Upvotes: 0
Reputation: 355
This specific issue was faced by multiple users across the globe and has been fixed, try and see if it works fine now.
Upvotes: 3