Edit

Share via


Common issues: Azure provider registration error

Possible error messages

  • Failed to register Azure providers

Resolution

Before you can use your Azure subscription, Azure requires that you register access to the Azure resource providers. CycleCloud attempts to register the providers for use in your subscription when you add new accounts. This error occurs if the service principal configured for CycleCloud doesn't have permission to register the providers.

Resolve this error by doing one of the following steps:

  1. Grant the CycleCloud service principal the following permissions:

    • Microsoft.Compute/register/action
    • Microsoft.Storage/register/action
    • Microsoft.Network/register/action
    • Microsoft.Resources/register/action
    • Microsoft.Commerce/register/action
  2. Use the Azure CLI to manually register the providers

az provider register --namespace "Microsoft.Compute"
az provider register --namespace "Microsoft.Storage"
az provider register --namespace "Microsoft.Network"
az provider register --namespace "Microsoft.Resources"
az provider register --namespace "Microsoft.Commerce"

More information

For more information on specific permissions required for Azure CycleCloud, see Create a custom role for CycleCloud.