Azure / Azure/azure-cli

[Reference feedback]: Need acceptable values for `--resource` arg on `az rest` command

Open
#31,473 2 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
act-platform-engineering-squad Auto-Assign customer-reported DevOps 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

Other (describe below)

### Reference command name

az rest

### Feedback

First, thanks for this excellent cli extension.
I am highly using azure cli for purpose about Azure Devops operations. For our one of requirement, I need to compare two branches of a repo with `az repos` but it hasn't any command for that. Then I tried to rest API of repo diffs via `az rest` command but I cannot succeed because of missed `--resource` argument. After hours, thanks to Copilot, I found the correct resource argument for dev.azure.com as `--resource "499b84ac-1321-427f-aa17-267ca6975798"`.
I think that `az rest` can use on very wide area but the documentation limits us.

### Page URL

https://learn.microsoft.com/en-us/cli/azure/reference-index?view=azure-cli-latest

### Content source URL

https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/docs-ref-autogen/Latest-version/latest/reference-index.yml

### Author

@mikefrobbins

### Document Id

87992d8a-9ca1-bc38-c929-ebd6732d75b4

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.