0
votes

API execution Screenshot link

I have two azure Accounts [Account1 and Account2].

Account1 has less than 10 functions and Apps

  • Following API execution works fine and getting proper response

Account2 has 1000+ functions and Apps.

  • Following API execution doesn't work and response is empty.

GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Web/sites?api-version=2019-08-01

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions?api-version=2019-08-01

Is it a problem with azure API or I'm I missing something here.

1

1 Answers

0
votes

I tried the api for getting the websites list , it worked for me. Under my subscription , i have 93 websites and overall resulting data was 42.84 KB in size.

I would suggest you to check the Bearer token and the permission set for the service principal you are using to query the data:

enter image description here

enter image description here

P.S. Same is with Function rest api too.

Hope it helps.