Īn unexpected error can occur for a resource provider that's not in your ARM template or Bicep file. Message: The client '' with object id '' does not have authorization to performĪction 'Microsoft.Compute/virtualMachines/read' over scope.
When virtual machine (VM) auto-shutdown is disabled, you might receive an error message similar to: Code: AuthorizationFailed If you haven't used a particular resource provider before, you might need to register that provider. Most providers are registered automatically by the Microsoft Azure portal or the command-line interface, but not all. You can change your template to use a suggested value. The error message should give you suggestions for the supported locations and API versions. Message: No registered resource provider found for location
When a resource is deployed, you might receive the following error code and message: Code: NoRegisteredProviderFound
If Azure doesn't automatically register a resource provider, you can do a manual registration. The errors are displayed when you deploy resources with a Bicep file or Azure Resource Manager template (ARM template). This article describes resource provider registration errors that occur when you use a resource provider that you haven't already used in your Azure subscription.