Skip to content

[Reference feedback]: az cli command doesn't work as documented #31201

Closed

Description

Type of issue

Code doesn't work

Reference command name

https://learn.microsoft.com/en-us/cli/azure/batch/pool/supported-images?view=azure-cli-latest#az-batch-pool-supported-images-list
az batch pool supported-images list

az : ERROR: Specify batch account in command line or environment variable.
At line:1 char:1

  • az batch pool supported-images list
  •   + CategoryInfo          : NotSpecified: (ERROR: Specify ...nment variable.:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    

Feedback

The az cli command "az batch pool supported-images list only" documentation shows that the command only has optional parameters in order to retrieve all batch account supported images, However the command fails without --account-name and --account-endpoint parameters.

Page URL

https://learn.microsoft.com/en-us/cli/azure/batch/pool/supported-images?view=azure-cli-latest

Content source URL

https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-autogen/Latest-version/latest/batch/pool/supported-images.yml

Author

Mike F. Robbins (@mikefrobbins)

Document Id

ba8f9748-293e-84da-9a93-37fa1560fe5c

Activity

  1. added
    needs-triage
    on Apr 4, 2025
  2. yonzhan commented on Apr 4, 2025

    @yonzhan
    Collaborator

    Thank you for opening this issue, we will look into it.

  3. added
    customer-reported
    Auto-Assign
    Batch
    Service Attention
    on Apr 4, 2025
  4. jah29m commented on Apr 4, 2025

    @jah29m
    Author

    If this az cli command could also provide example for making call that works with EntraID auth, instead of requiring --account-key (which we have disabled with entraid auth only enabled), that would be great!

  5. mskeyansong commented on Nov 3, 2026

    @mskeyansong
    Contributor

    Thanks for the feedback, you're right. The command needs a Batch account, and the help didn't say so. Either select one first:

    az batch account login -g MyResourceGroup -n MyBatchAccount
    az batch pool supported-images list
    

    or pass it in the command:

    az batch pool supported-images list --account-name MyBatchAccount --account-endpoint https://mybatchaccount.westus.batch.azure.com
    

    Neither needs --account-key: without a key, the CLI uses your Microsoft Entra ID sign-in from az login. #34322 (in review, December 2026 milestone) adds this to the help with both examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignBatchService Attentionact-observability-squadcustomer-reportedneeds-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions