How does one go about translating an Azure permissions error message into the actual permissions needed to solve the problem?
I'm getting an error message when trying to run a WebJob:
The client does not have authorization to perform action 'Microsoft.Web/sites/config/list/action' over scope '/subscriptions/[redacted]/resourceGroups/[redacted]/providers/Microsoft.Web/sites/[redacted]/config/publishingcredentials'
Based on this information, how do I determine which role to add, and where?
Note: I do NOT want to grant Contributor access to my registered application. I see that such advice is provided in this answer, but I consider that to be a sloppy approach to security; I prefer the 'least privilege' rule in these matters.
My question is about how to translate the information from the error message (e.g. "Microsoft.Web/sites/config/list/action") into the actual IAM permissions I must grant to my application.
Basically I'm looking for something like this, but for Azure instead of AWS.