Share via


az providerhub sku

Note

This reference is part of the providerhub extension for the Azure CLI (version 2.15.0 or higher). The extension will automatically install the first time you run an az providerhub sku command. Learn more about extensions.

Manage sku with providerhub.

Commands

Name Description Type Status
az providerhub sku create

Creates or updates the resource type skus in the given resource type. And Creates or updates the resource type skus in the given resource type. And Creates or updates the resource type skus in the given resource type. And Create the resource type skus in the given resource type.

Extension GA
az providerhub sku delete

Deletes a resource type sku. And Deletes a resource type sku. And Deletes a resource type sku. And Deletes a resource type sku.

Extension GA
az providerhub sku list

Gets the list of skus for the given resource type. And Gets the list of skus for the given resource type. And Gets the list of skus for the given resource type. And Gets the list of skus for the given resource type.

Extension GA
az providerhub sku show

Gets the sku details for the given resource type and sku name.

Extension GA
az providerhub sku show-nested-resource-type-first

Gets the sku details for the given resource type and sku name.

Extension GA
az providerhub sku show-nested-resource-type-second

Gets the sku details for the given resource type and sku name.

Extension GA
az providerhub sku show-nested-resource-type-third

Gets the sku details for the given resource type and sku name.

Extension GA

az providerhub sku create

Creates or updates the resource type skus in the given resource type. And Creates or updates the resource type skus in the given resource type. And Creates or updates the resource type skus in the given resource type. And Create the resource type skus in the given resource type.

az providerhub sku create --provider-namespace
                          --resource-type
                          --sku
                          --sku-settings
                          [--nested-first]
                          [--nested-resource-type-second]
                          [--nested-resource-type-third]

Examples

Skus_CreateOrUpdateNestedResourceTypeThird

az providerhub sku create --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --nested-resource-type-third "nestedResourceTypeThird" --sku-settings "[{\"name\":\"freeSku\",\"kind\":\"Standard\",\"tier\":\"Tier1\"},{\"name\":\"premiumSku\",\"costs\":[{\"meterId\":\"xxx\"}],\"kind\":\"Premium\",\"tier\":\"Tier2\"}]" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku"

Skus_CreateOrUpdateNestedResourceTypeSecond

az providerhub sku create --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --sku-settings "[{\"name\":\"freeSku\",\"kind\":\"Standard\",\"tier\":\"Tier1\"},{\"name\":\"premiumSku\",\"costs\":[{\"meterId\":\"xxx\"}],\"kind\":\"Premium\",\"tier\":\"Tier2\"}]" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku"

Skus_CreateOrUpdateNestedResourceTypeFirst

az providerhub sku create --nested-resource-type-first "nestedResourceTypeFirst" --sku-settings "[{\"name\":\"freeSku\",\"kind\":\"Standard\",\"tier\":\"Tier1\"},{\"name\":\"premiumSku\",\"costs\":[{\"meterId\":\"xxx\"}],\"kind\":\"Premium\",\"tier\":\"Tier2\"}]" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku"

Skus_CreateOrUpdate

az providerhub sku create --sku-settings "[{\"name\":\"freeSku\",\"kind\":\"Standard\",\"tier\":\"Tier1\"},{\"name\":\"premiumSku\",\"costs\":[{\"meterId\":\"xxx\"}],\"kind\":\"Premium\",\"tier\":\"Tier2\"}]" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku"

Required Parameters

--provider-namespace

The name of the resource provider hosted within ProviderHub.

--resource-type

The resource type.

--sku

The SKU.

--sku-settings

Expected value: json-string/@json-file.

Optional Parameters

--nested-first --nested-resource-type-first

The first child resource type.

--nested-resource-type-second --nested-second

The second child resource type.

--nested-resource-type-third --nested-third

The third child resource type.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--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.

az providerhub sku delete

Deletes a resource type sku. And Deletes a resource type sku. And Deletes a resource type sku. And Deletes a resource type sku.

az providerhub sku delete [--ids]
                          [--nested-first]
                          [--nested-resource-type-second]
                          [--nested-resource-type-third]
                          [--provider-namespace]
                          [--resource-type]
                          [--sku]
                          [--subscription]
                          [--yes]

Examples

Skus_DeleteNestedResourceTypeThird

az providerhub sku delete --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --nested-resource-type-third "nestedResourceTypeThird" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku"

Skus_DeleteNestedResourceTypeSecond

az providerhub sku delete --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku"

Skus_DeleteNestedResourceTypeFirst

az providerhub sku delete --nested-resource-type-first "nestedResourceTypeFirst" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku"

Skus_Delete

az providerhub sku delete --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku"

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--nested-first --nested-resource-type-first

The first child resource type.

--nested-resource-type-second --nested-second

The second child resource type.

--nested-resource-type-third --nested-third

The third child resource type.

--provider-namespace

The name of the resource provider hosted within ProviderHub.

--resource-type

The resource type.

--sku

The SKU.

--subscription

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

--yes -y

Do not prompt for confirmation.

default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--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.

az providerhub sku list

Gets the list of skus for the given resource type. And Gets the list of skus for the given resource type. And Gets the list of skus for the given resource type. And Gets the list of skus for the given resource type.

az providerhub sku list --provider-namespace
                        --resource-type
                        [--nested-first]
                        [--nested-resource-type-second]
                        [--nested-resource-type-third]

Examples

Skus_ListByResourceTypeRegistrationsNestedResourceTypeThird

az providerhub sku list --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --nested-resource-type-third "nestedResourceTypeThird" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType"

Skus_ListByResourceTypeRegistrationsNestedResourceTypeSecond

az providerhub sku list --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType"

Skus_ListByResourceTypeRegistrationsNestedResourceTypeFirst

az providerhub sku list --nested-resource-type-first "nestedResourceTypeFirst" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType"

Skus_ListByResourceTypeRegistrations

az providerhub sku list --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType"

Required Parameters

--provider-namespace

The name of the resource provider hosted within ProviderHub.

--resource-type

The resource type.

Optional Parameters

--nested-first --nested-resource-type-first

The first child resource type.

--nested-resource-type-second --nested-second

The second child resource type.

--nested-resource-type-third --nested-third

The third child resource type.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--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.

az providerhub sku show

Gets the sku details for the given resource type and sku name.

az providerhub sku show [--ids]
                        [--provider-namespace]
                        [--resource-type]
                        [--sku]
                        [--subscription]

Examples

Skus_Get

az providerhub sku show --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku"

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--provider-namespace

The name of the resource provider hosted within ProviderHub.

--resource-type

The resource type.

--sku

The SKU.

--subscription

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--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.

az providerhub sku show-nested-resource-type-first

Gets the sku details for the given resource type and sku name.

az providerhub sku show-nested-resource-type-first [--ids]
                                                   [--nested-first]
                                                   [--provider-namespace]
                                                   [--resource-type]
                                                   [--sku]
                                                   [--subscription]

Examples

Skus_GetNestedResourceTypeFirst

az providerhub sku show-nested-resource-type-first --nested-resource-type-first "nestedResourceTypeFirst" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku"

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--nested-first --nested-resource-type-first

The first child resource type.

--provider-namespace

The name of the resource provider hosted within ProviderHub.

--resource-type

The resource type.

--sku

The SKU.

--subscription

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--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.

az providerhub sku show-nested-resource-type-second

Gets the sku details for the given resource type and sku name.

az providerhub sku show-nested-resource-type-second [--ids]
                                                    [--nested-first]
                                                    [--nested-resource-type-second]
                                                    [--provider-namespace]
                                                    [--resource-type]
                                                    [--sku]
                                                    [--subscription]

Examples

Skus_GetNestedResourceTypeSecond

az providerhub sku show-nested-resource-type-second --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku"

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--nested-first --nested-resource-type-first

The first child resource type.

--nested-resource-type-second --nested-second

The second child resource type.

--provider-namespace

The name of the resource provider hosted within ProviderHub.

--resource-type

The resource type.

--sku

The SKU.

--subscription

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--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.

az providerhub sku show-nested-resource-type-third

Gets the sku details for the given resource type and sku name.

az providerhub sku show-nested-resource-type-third [--ids]
                                                   [--nested-first]
                                                   [--nested-resource-type-second]
                                                   [--nested-resource-type-third]
                                                   [--provider-namespace]
                                                   [--resource-type]
                                                   [--sku]
                                                   [--subscription]

Examples

Skus_GetNestedResourceTypeThird

az providerhub sku show-nested-resource-type-third --nested-resource-type-first "nestedResourceTypeFirst" --nested-resource-type-second "nestedResourceTypeSecond" --nested-resource-type-third "nestedResourceTypeThird" --provider-namespace "Microsoft.Contoso" --resource-type "testResourceType" --sku "testSku"

Optional Parameters

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--nested-first --nested-resource-type-first

The first child resource type.

--nested-resource-type-second --nested-second

The second child resource type.

--nested-resource-type-third --nested-third

The third child resource type.

--provider-namespace

The name of the resource provider hosted within ProviderHub.

--resource-type

The resource type.

--sku

The SKU.

--subscription

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

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

--output -o

Output format.

accepted values: json, jsonc, none, table, tsv, yaml, yamlc
default value: json
--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.