You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a resource is deployed, you might receive the following error code and message:
@@ -50,94 +48,94 @@ You receive these errors for one of these reasons:
50
48
51
49
## Solution
52
50
53
-
# [PowerShell](#tab/azure-powershell)
51
+
# [Azure CLI](#tab/azure-cli)
54
52
55
-
You can use Azure PowerShell to get information about a resource provider's registration status and
53
+
You can use Azure CLI to get information about a resource provider's registration status and
56
54
register a resource provider.
57
55
58
-
Use [Get-AzResourceProvider](/powershell/module/az.resources/get-azresourceprovider) to display the registration status for your subscription's resource providers.
56
+
Use [az provider list](/cli/azure/provider#az_provider_list) to display the registration status for your subscription's resource providers. The examples use the `--output table` parameter to filter the output for readability. You can omit the parameter to see all properties.
59
57
60
58
The following command lists all the subscription's resource providers and whether they're `Registered` or `NotRegistered`.
61
59
62
-
```azurepowershell-interactive
63
-
Get-AzResourceProvider -ListAvailable
60
+
```azurecli-interactive
61
+
az provider list --output table
64
62
```
65
63
66
-
To list only `Registered` resource providers, omit the `ListAvailable` parameter. You can also filter the output by registration state. Replace the value with `Registered` or `NotRegistered`.
64
+
You can filter the output by registration state. Replace the query value with `Registered` or `NotRegistered`.
az provider list --query "[?namespace=='Microsoft.Compute']" --output table
78
74
```
79
75
80
-
To register a provider, use [Register-AzResourceProvider](/powershell/module/az.resources/register-azresourceprovider)and provide the resource provider's name.
76
+
To register a resource provider, use the [az provider register](/cli/azure/provider#az_provider_register) command, and specify the _namespace_ to register.
az provider show --namespace Microsoft.Web --query "resourceTypes[?resourceType=='sites'].apiVersions"
98
92
```
99
93
100
-
# [Azure CLI](#tab/azure-cli)
94
+
# [PowerShell](#tab/azure-powershell)
101
95
102
-
You can use Azure CLI to get information about a resource provider's registration status and
96
+
You can use Azure PowerShell to get information about a resource provider's registration status and
103
97
register a resource provider.
104
98
105
-
Use [az provider list](/cli/azure/provider#az_provider_list) to display the registration status for your subscription's resource providers. The examples use the `--output table` parameter to filter the output for readability. You can omit the parameter to see all properties.
99
+
Use [Get-AzResourceProvider](/powershell/module/az.resources/get-azresourceprovider) to display the registration status for your subscription's resource providers.
106
100
107
101
The following command lists all the subscription's resource providers and whether they're `Registered` or `NotRegistered`.
108
102
109
-
```azurecli-interactive
110
-
az provider list --output table
103
+
```azurepowershell-interactive
104
+
Get-AzResourceProvider -ListAvailable
111
105
```
112
106
113
-
You can filter the output by registration state. Replace the query value with `Registered` or `NotRegistered`.
107
+
To list only `Registered` resource providers, omit the `ListAvailable` parameter. You can also filter the output by registration state. Replace the value with `Registered` or `NotRegistered`.
114
108
115
-
```azurecli-interactive
116
-
az provider list --query "[?registrationState=='Registered']" --output table
To register a resource provider, use the [az provider register](/cli/azure/provider#az_provider_register) command, and specify the _namespace_ to register.
121
+
To register a provider, use [Register-AzResourceProvider](/powershell/module/az.resources/register-azresourceprovider)and provide the resource provider's name.
0 commit comments