Azure / Azure/azure-cli

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

Open
#31,201 2 comments 0 reactions 0 assignees View on GitHub
act-observability-squad Auto-Assign Batch customer-reported needs-triage Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

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

@mikefrobbins

### Document Id

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

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.