Issue with Listing Specific Azure Web App Using Azure CLI

Harish S 0 Reputation points
2025-02-19T10:18:31.6266667+00:00

Hello,

I am facing an issue where my customer is unable to locate a specific web app resource using the Azure CLI. Below are the details of the commands executed and the observed behaviour:

Command to list all web apps in a subscription:

az rest --method get --url https://management.azure.com/subscriptions/db2a93d4-166a-4ac4-8da6-b3da2dc68e0a/providers/Microsoft.Web/sites?api-version=2024-04-01

This command executes successfully but does not list the specific web app we are interested in.

Command to list all web apps by resource group:

az rest --method get --url https://management.azure.com/subscriptions/db2a93d4-166a-4ac4-8da6-b3da2dc68e0a/resourceGroups/RG_13238_NEXTGEN_DEV/providers/Microsoft.Web/sites?api-version=2024-04-01

This command lists the web app easychat successfully.

Could you please assist in understanding why the specific web app easychat does not appear when listing all apps in the subscription but does appear when querying within the resource group? What could be missing or misconfigured?

Thank you for your help!

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,339 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Manu Philip 19,586 Reputation points MVP
    2025-02-19T16:13:26.0933333+00:00

    Hi Harish S

    I can see some reference says that the az cli can give different results due to the issue with the previous CLI versions. Could you please update az cli version and check the issue again?

    I have checked both commands and looks works as expected

    Here is my az cli version details

    User's image

    Hope this helps.


    --please don't forget to upvote and Accept as answer if the reply is helpful--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.