[Mooncake]Cannot create Premium CDN profile with Premium_ChinaCdn SKU with CLI 2.0
See original GitHub issueDescription
Outline the issue here:
I can create premium CDN profile in Ibiza portal, when I run az cdn profile list
, I can see the SKU name is **Premium_ChinaCdn ** as below:
C:\Users\v-johch>az cdn profile list
[
{
"id": "/subscriptions/cc124843-d4b8-4a3a-8edf-1314908bda90/resourcegroups/premiumcdn/providers/Microsoft.Cdn/profiles/testcdn",
"location": "ChinaEast",
"name": "testcdn",
"provisioningState": "Succeeded",
"resourceGroup": "premiumcdn",
"resourceState": "Active",
"sku": {
"name": "Premium_ChinaCdn"
},
"tags": {},
"type": "Microsoft.Cdn/profiles"
}
]
However, when I try to create another new premium CDN profile with the same SKU via CLI, it says invalid the SKU is invalid:
C:\Users\v-johch>az cdn profile create -g premiumcdn -n testpremium --sku Premium_ChinaCdn
az cdn profile create: error: argument --sku: invalid choice: Premium_ChinaCdn
usage: az cdn profile create [-h] [--output {json,tsv,table,jsonc}]
[--verbose] [--debug] [--query JMESPATH]
--resource-group RESOURCE_GROUP_NAME --name NAME
[--sku {Standard_Verizon,Premium_Verizon,Custom_Verizon,Standard_Akamai,Standard_ChinaCdn}]
[--location LOCATION] [--tags [TAGS [TAGS ...]]]
Environment summary
Install Method: How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)
Answer here: MSI
CLI Version: What version of the CLI and modules are installed? (Use az --version
)
Answer here: azure-cli (2.0.17)
OS Version: What OS and version are you using?
Answer here: Win 10 version 1703 (OS Build 15063.608)
Shell Type: What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)
Answer here: cmd.exe
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Create an Azure CDN profile and endpoint using the Azure CLI
Azure CLI sample scripts to create an Azure CDN profile, endpoint, origin group, origin, and custom domain.
Read more >What is the correct Azure CLI command for creating HTTP ...
This will ensure that the user always downloads the latest version of the client application. To Start with, I create the CDN and...
Read more >How To Create an Azure CDN Profile and Endpoint - YouTube
Your browser can't play this video. Learn more. Switch camera.
Read more >azure.azcollection.azure_rm_cdnprofile module – Manage a ...
Create, update and delete a Azure CDN profile. Requirements . The below requirements are needed on the host that executes this module....
Read more >Purging CDN endpoint returns Bad Request #8303 - GitHub
through an Azure CLI release task on Azure DevOps Release pipeline. To Reproduce. Create Premium Verizon CDN endpoint, pointing to an Azure ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue should stay open until the new API version is available in the specs repo and generated.
The issue is fixed now