Reputation: 33
I have two azure Accounts [Account1 and Account2].
Account1 has less than 10 functions and Apps
Account2 has 1000+ functions and Apps.
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.
Upvotes: 1
Views: 227
Reputation: 5294
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:
P.S. Same is with Function rest api too.
Hope it helps.
Upvotes: 0