Azure / Azure/azure-cli-extensions

az iot hub command not support the api-version of China Cloud

Open
#781 0 comments 0 reactions 0 assignees View on GitHub
customer-response-expected extension/iot Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

> ### `az feedback` auto-generates most of the information requested below, as of CLI version 2.0.66

**Describe the bug**
Run the following command for AzureChinaCloud:
az iot hub show-connection-string --hub-name iothub123

got the error message:
InvalidResourceType - The resource type 'IotHubs' could not be found in the namespace 'Microsoft.Devices' for api version '2019-03-22-preview'. The supported api-versions are '2015-08-15-preview,2016-02-03,2017-01-19,2017-07-01,2018-01-22,2018-04-01,2018-04-01-preview,2018-12-01-preview'.

**Environment summary**
Azure CLI 2.0.66
azure-cli-iot-ext 0.7.0
OS: Azure CloudShell (login to AzureChinaCloud)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.