azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

No az iot central and no az iot central commands

Open djaus2 opened this issue 6 years ago • 9 comments

When trying to run az iot central app show --name XXXX I got az iot: 'central' is not in the 'az iot' command group

Yet they are listed: https://docs.microsoft.com/en-us/cli/azure/ext/azure-cli-iot-ext/iot/central?view=azure-cli-latest

Same problem with PNP


PS C:\Users\DavidJones\source\repos\az-iothub-ps\PS> az iot central

. See 'az iot --help'. PS C:\Users\DavidJones\source\repos\az-iothub-ps\PS> az iot pnp

az iot: 'pnp' is not in the 'az iot' command group. See 'az iot --help'.

Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

djaus2 avatar Apr 27 '20 13:04 djaus2

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @rkmanda, @chieftn.

ghost avatar Apr 27 '20 13:04 ghost

routing to appropriate team

yungezz avatar Apr 27 '20 13:04 yungezz

@Azure/azure-iot-cli-triage

yiyiguo avatar Sep 15 '20 22:09 yiyiguo

Have you installed the az iot cli extension? It's not part of the base azure cli

https://docs.microsoft.com/en-us/azure/iot-central/core/howto-manage-iot-central-from-cli#install-the-extension

ghost avatar Sep 15 '20 22:09 ghost

Closed as @prbans stated the resolution of first having the IoT extension installed as a pre-requisite.

digimaun avatar Sep 15 '20 23:09 digimaun

Yes I had the extensions installed.

djaus2 avatar Sep 16 '20 04:09 djaus2

I did have the extensions installed.

David Jones MVP


From: Paymaun [email protected] Sent: Wednesday, September 16, 2020 9:21:10 AM To: Azure/azure-cli [email protected] Cc: David Jones (MVP) [email protected]; Author [email protected] Subject: Re: [Azure/azure-cli] No az iot central and no az iot central commands (#13203)

Closed #13203https://github.com/Azure/azure-cli/issues/13203.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli/issues/13203#event-3770673794, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC7U2ELREZMHJBP5QKH2ZW3SF7ZGNANCNFSM4MR5KVVQ.

djaus2 avatar Sep 16 '20 04:09 djaus2

@djaus2 Are you still experiencing this issue? Something to point out (as a double check) is the IoT extension is called azure-iot. The legacy IoT extension azure-cli-iot-ext has been deprecated for awhile and should no longer be used. It's scheduled for deletion.

digimaun avatar Sep 16 '20 16:09 digimaun

These are the docs for the PnP commands (which are entirely in the IoT extension) https://docs.microsoft.com/en-us/cli/azure/ext/azure-iot/iot/central?view=azure-cli-latest and these are the docs for the central commands in the extension https://docs.microsoft.com/en-us/cli/azure/ext/azure-iot/iot/central?view=azure-cli-latest. Note you do not need the IoT extension for the basic central app management commands (create/delete/list/show/update) https://docs.microsoft.com/en-us/cli/azure/iot/central/app?view=azure-cli-latest.

Taking this into account, if you are still running into issues can you provide the version of Azure CLI and IoT extension you are using? Also in general we recommend using the latest packages (if your environment can support it).

digimaun avatar Sep 16 '20 16:09 digimaun