No az iot central and no az iot central commands
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.
- ID: 149e918e-db5e-736c-0d6c-92f985d7ddae
- Version Independent ID: 97344c62-24a6-2047-cd27-8612930b7a9b
- Content: az iot pnp
- Content Source: src/azure-cli/azure/cli/command_modules/iot/_help.py
- Service: iot-hub
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @rkmanda, @chieftn.
routing to appropriate team
@Azure/azure-iot-cli-triage
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
Closed as @prbans stated the resolution of first having the IoT extension installed as a pre-requisite.
Yes I had the extensions installed.
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 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.
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).