Κοινή χρήση μέσω


az provider

Manage resource providers.

Commands

Name Description Type Status
az provider list

Gets all resource providers for a subscription.

Core GA
az provider operation

Get provider operations metadatas.

Core GA
az provider operation list

Get operations from all providers.

Core GA
az provider operation show

Get an individual provider's operations.

Core GA
az provider permission

Manage permissions for a provider.

Core GA
az provider permission list

List permissions from a provider.

Core GA
az provider register

Register a provider.

Core GA
az provider show

Gets the specified resource provider.

Core GA
az provider unregister

Unregister a provider.

Core GA

az provider list

Gets all resource providers for a subscription.

az provider list [--expand]

Examples

Display all resource types for the network resource provider.

az provider list --query "[?namespace=='Microsoft.Network'].resourceTypes[].resourceType"

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--expand

The properties to include in the results. For example, use &$expand=metadata in the query string to retrieve resource provider metadata. To include property aliases in response, use $expand=resourceTypes/aliases. Default value is None.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az provider register

Register a provider.

az provider register --namespace
                     [--consent-to-permissions]
                     [--management-group-id]
                     [--wait]

Examples

Register a provider. (autogenerated)

az provider register --namespace 'Microsoft.PolicyInsights'

Register a provider from RPaaS.

az provider register -n 'Microsoft.Confluent' --accept-terms

Register a management group.

az provider register --namespace Microsoft.Automation -m mgID

Required Parameters

--namespace -n

The resource namespace, aka 'provider'.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--consent-to-permissions -c

A value indicating whether authorization is consented or not.

Property Value
Default value: False
--management-group-id -m

The management group id to register.

--wait

Wait for the registration to finish.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az provider show

Gets the specified resource provider.

az provider show --namespace
                 [--expand]

Required Parameters

--namespace -n

The resource namespace, aka 'provider'.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--expand

The $expand query parameter. For example, to include property aliases in response, use $expand=resourceTypes/aliases. Default value is None.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az provider unregister

Unregister a provider.

az provider unregister --namespace
                       [--wait]

Examples

Unregister a provider. (autogenerated)

az provider unregister --namespace Microsoft.Automation

Required Parameters

--namespace -n

The resource namespace, aka 'provider'.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--wait

Wait for unregistration to finish.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False