Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
)
class Create(AAZCommand):
"""Create the resource type skus in the given resource type.
:example: Create a sku in the resource type.
az providerhub sku nested-resource-type-third create --provider-namespace Microsoft.Contoso --resource-type testResourceType --nested-resource-type-first nestedResourceTypeFirst --nested-resource-type-second nestedResourceTypeSecond --nested-resource-type-third nestedResourceTypeThird --name testSku --sku-settings "[{name:freeSku,tier:Tier1,kind:Standard},{name:premiumSku,tier:Tier2,kind:Premium,costs:[{meter-id:xxx}]}]"
Copy link

Copilot AI Jul 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The JSON in the --sku-settings parameter is malformed. Property names should be quoted. The correct format should be: --sku-settings "[{"name":"freeSku","tier":"Tier1","kind":"Standard"},{"name":"premiumSku","tier":"Tier2","kind":"Premium","costs":[{"meter-id":"xxx"}]}]"

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

Copilot uses AI. Check for mistakes.
"""

_aaz_info = {
Expand Down
Loading