Azure / Azure/azure-cli

[Reference feedback]: az acr run - is SOURCE_LOCATION optional or not?

Open
#32,065 3 comments 0 reactions 1 assignee Claimed by @leodewang View on GitHub
act-observability-squad Auto-Assign Container Registry customer-reported Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

### Type of issue

Other (describe below)

### Reference command name

az acr run -r blah --cmd "acr purge --help"

### Feedback

The documentation at `https://learn.microsoft.com/en-us/cli/azure/acr?view=azure-cli-lts#az-acr-run` lists `SOURCE_LOCATION` under the optional parameters. However the tool seems to demand that it is present, and accepts the string `/dev/null` if it is not actually needed.

It would be preferable to make it optional if it is optional, or to clarify both the documentation, and the error message from the tool if it is truly required. The use of `/dev/null` for an irrelevant non-optional optional parameter is particularly non-obvious on a Windows system.

### Page URL

https://learn.microsoft.com/en-us/cli/azure/acr?view=azure-cli-lts#az-acr-run

### Content source URL

_No response_

### Author

_No response_

### Document Id

_No response_

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.