question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Mooncake]Cannot create Premium CDN profile with Premium_ChinaCdn SKU with CLI 2.0

See original GitHub issue

Description

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:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
devignedcommented, Mar 22, 2019

This issue should stay open until the new API version is available in the specs repo and generated.

0reactions
t-bzhancommented, Apr 22, 2022

The issue is fixed now

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found