While attempting to register the Microsoft.Compute provider in order to use AKS from the command line, the provider takes an exorbitantly long time to finish registering (at the time of this writing it is still in the 'registering'
status).
What is supposed to happen normally?
The following command should register Microsoft.Compute in a timely manner:
az provider register -n Microsoft.Compute
What goes wrong?
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:
- Microsoft.Network
- Microsoft.Storage
- Microsoft.ContainerService
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'
Since the provider never finishes registering, attempting to create a Cluster with AKS fails with:
Operation failed with status: 'Bad Request'. Details: Required resource provider registrations Microsoft.Compute are missing.
Other Background:
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):
- A user on Stack Overflow suggested spinning a VM within the resource group / account in the hopes that would solve the issue and register the provider automatically (this did not work).
- Un-register the Provider
When unregistering the component with: 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.
I am hoping that someone has encountered this in the past.