locked
Azure CLI: az: 'managementpartner' is not in the 'az' command group. See 'az --help'. RRS feed

  • Question

  • I tried within the Azure Shell and downloaded the Azure CLI  (version 2.0.63) and tried with two different tenants but every time if I run:

    az managementpartner show

    I get:

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

    While it should be available:
    https://docs.microsoft.com/en-us/cli/azure/ext/managementpartner/managementpartner?view=azure-cli-latest

    Any idea?

    Thanks.

    Wednesday, May 1, 2019 12:21 PM

Answers

  • Hello Erjen,

    Thanks for reaching out!

    Yes, you are right about the error you see, which, however, is expected if the extension isn't added.

    managementpartner is made available as an extension to the Azure CLI. The Azure CLI offers the capability to load extensions. Extensions are Python wheels that aren't shipped as part of the CLI but run as CLI commands. With extensions, you gain access to experimental and pre-release commands along with the ability to write your own CLI interfaces. This article covers how to manage extensions and answers common questions about their use.

    Please try adding the extension prior to running the mentioned command, if not done already:

    # This would list the extensions provided and maintained by Microsoft az extension list-available --output table

    # Install the extension by name az extension add --name managementpartner

    # You may verify the installation by running the list command again and checking the value of "Installed" column
    az extension list-available --output table


    It should look something like this:

    

    You may then execute the 'az managementpartner show' command.

    Hope this helps! Please revert if you still see issues.





    Wednesday, May 1, 2019 1:35 PM

All replies

  • Hello Erjen,

    Thanks for reaching out!

    Yes, you are right about the error you see, which, however, is expected if the extension isn't added.

    managementpartner is made available as an extension to the Azure CLI. The Azure CLI offers the capability to load extensions. Extensions are Python wheels that aren't shipped as part of the CLI but run as CLI commands. With extensions, you gain access to experimental and pre-release commands along with the ability to write your own CLI interfaces. This article covers how to manage extensions and answers common questions about their use.

    Please try adding the extension prior to running the mentioned command, if not done already:

    # This would list the extensions provided and maintained by Microsoft az extension list-available --output table

    # Install the extension by name az extension add --name managementpartner

    # You may verify the installation by running the list command again and checking the value of "Installed" column
    az extension list-available --output table


    It should look something like this:

    

    You may then execute the 'az managementpartner show' command.

    Hope this helps! Please revert if you still see issues.





    Wednesday, May 1, 2019 1:35 PM
  • Thanks! Works perfect now.
    Wednesday, May 1, 2019 1:43 PM
  • Thank you! Glad it did! :)
    Wednesday, May 1, 2019 1:45 PM