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.

az kusto cluster create fails with "Invalid SKU name provided"

See original GitHub issue

Describe the bug

Command Name az kusto cluster create

Errors:

Invalid SKU name provided

To Reproduce:

az kusto cluster create --location "Central US" --name MyClusterName --resource-group MyRGName --sku D11_v2 --capacity 1

Expected Behavior

Provision Kusto cluster.

Environment Summary

Windows-10-10.0.18362-SP0
Python 3.6.6
Installer: MSI

azure-cli 2.5.1

Additional Context

I tried all possible values of SKU allowed by the CLI but none of them seem to work. The error happens server-side, here is the relevant part of running with --debug on:

msrest.http_logger : Request headers:
msrest.http_logger :     'Accept': 'application/json'
msrest.http_logger :     'Content-Type': 'application/json; charset=utf-8'
msrest.http_logger :     'accept-language': 'en-US'
msrest.http_logger :     'Content-Length': '72'
msrest.http_logger :     'User-Agent': 'python/3.6.6 (Windows-10-10.0.18362-SP0) msrest/0.6.13 msrest_azure/0.6.3 azure-mgmt-kusto/0.3.0 Azure-SDK-For-Python AZURECLI/2.5.1 (MSI)'
msrest.http_logger : Request body:
msrest.http_logger : {"location": "centralus", "sku": {"name": "D11_v2", "tier": "Standard"}}
msrest.universal_http : Configuring redirects: allow=True, max=30
msrest.universal_http : Configuring request: timeout=100, verify=True, cert=None
msrest.universal_http : Configuring proxies: ''
msrest.universal_http : Evaluate proxies against ENV settings: True
urllib3.connectionpool : Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool : https://management.azure.com:443 "PUT /subscriptions/<redacted>/resourceGroups/<redacted>/providers/Microsoft.Kusto/clusters/<redacted>?api-version=2019-01-21 HTTP/1.1" 400 73
msrest.http_logger : Response status: 400
msrest.http_logger : Response headers:
...
msrest.http_logger : Response content:
msrest.http_logger : {"error":{"code":"InvalidSkuName","message":"Invalid SKU name provided"}}
msrest.exceptions : Invalid SKU name provided

Sounds like the API expects a different specification for the SKU name but CLI restricts this to a small set of values which don’t seem to work.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ilayrncommented, May 7, 2020

@vladris I’m glad to hear it worked for you. We’re going to release the documentation in the coming days and we’ll add an example to address your feedback. Thanks!

0reactions
SQLDataSidecommented, Jun 23, 2020

hi i did reinstall AZURE CLI and Kusto and it did work I gave you the code az kusto cluster create --name $AzureDataExplorer --resource-group … and you mentioned it worked , on kkmy side i had to change the code to az kusto cluster create --**cluster-**name $AzureDataExplorer --resource-group …

Feedback: when running anything related to “az kusto …” the first thing you get is a message in RED that is very very missleading maybe it can be changed, also the information in the --help needs to be updated .

Thank you Nik

Read more comments on GitHub >

github_iconTop Results From Across the Web

SKU not available errors - Azure Resource Manager
When a VM is deployed with an ARM template or Bicep file for a SKU that's not available, a validation error occurs. The...
Read more >
azure-cli 2.24.2 - PyPI
az webapp identity commands will return a proper error message if ResourceGroupName or App name are invalid. az webapp list fixed to return...
Read more >
Azure Resource Manager Overview | Microsoft Docs
az group create --name $resourceGroupName --location "$location" && az group deployment create --resource-group $resourceGroupName --template-file ...
Read more >
Storage Classes - Kubernetes
Introduction A StorageClass provides a way for administrators to describe the ... the name and other parameters of a class when first creating...
Read more >
All Azure Resource Provider Operations - AzAdvertizer
Resource Provider Resource Type Namespace IsDataAction Microsoft.AAD DomainServices Domain Services Resource Provider False Microsoft.AAD DomainServices Domain Services Resource Provider False Microsoft.AAD DomainServices Domain Services Resource Provider...
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