azure-cli: az kusto cluster create fails with "Invalid SKU name provided"
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.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22 (1 by maintainers)
@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!