az-provider
Manage Azure resource providers
TLDR
Register a provider
Unregister a provider
List all providers for a subscription
Show information about a specific provider
List all resource types for a specific provider
SYNOPSIS
az provider [list|register|show|unregister] [options]
PARAMETERS
--namespace
Recommended namespace name (without .Microsoft suffix)
--output (-o)
Output format (json, jsonc, table, tsv)
--query (-q)
JMESPath query string. See http://jmespath.org/ for more information and examples
--subscription
Name or ID of subscription
--expand
Return expanded information about provider (use with show)
--wait
Wait for completion of long-running operation (use with register or unregister)
--query-examples
Recommend JMESPath string for you to query (use with list)
DESCRIPTION
The az provider command is part of the Azure Command-Line Interface (CLI), used to manage Azure resource providers for a subscription.
Resource providers are Azure services that manage specific types of resources, such as Microsoft.Compute for virtual machines or Microsoft.Storage for storage accounts. Before creating resources from a provider, it must often be registered.
Key operations include:
- list: Displays all available providers, optionally filtered by namespace.
- register: Registers a provider, enabling resource creation (may take time to propagate).
- show: Shows detailed status and information for a specific provider.
- unregister: Unregisters a provider, preventing new resource creation (existing resources remain).
This command requires authentication via az login and specifies a subscription context. It's essential for infrastructure setup, troubleshooting provider issues, and managing permissions across Azure environments.
CAVEATS
Registration/unregistration can take up to 30 minutes to propagate; use --wait for polling. Requires Microsoft.Resources/subscriptions/providerRegistrations/action permission. Not all providers need explicit registration.
EXAMPLES
List providers: az provider list
Register: az provider register --namespace Microsoft.Compute
Show status: az provider show --namespace Microsoft.Compute
HISTORY
Introduced in Azure CLI v2.0 (2017); evolved with Azure resource model changes. Core functionality stable since v2.1, with output/query enhancements in later releases.
SEE ALSO
az account(1), az resource(1), az login(1)


