Skip to content

az rest command is returning incorrect values when querying via azure cli #24244

@garudapnx

Description

@garudapnx

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command
az rest -m get -u /subscriptions//providers/Microsoft.Web/sites?api-version=2022-03-01 2>&1 | grep -i '"id": "/subscriptions//resourcegroups//' | wc -l

Describe the bug
When running the command it doesn't match the returned count of Web App in the specified subscription and resource group vs. what is in the Azure environment.

To Reproduce
N/A

Expected behavior
Expected behavior should match the returned count vs. the web app count that is in the Azure environment.

Environment summary
Azure CLI version 2.41.0

Additional context

azcli

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionThis issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatrestaz rest

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions