How can I add the authorization header for Azure App Service API?
I’m trying do some Azure Web Job management (i.e. List, Run, Stop) from a web app and am having trouble finding an example of the Authorization header to use for Azure App Service API.
I’m attempting to follow the documentation
Also, is this the recommended way of doing this or should I be using Kudu API?
Both of the two documents you provided is right.
The Azure Resource Manager API is used for general-purpose operations that are not service specific, such as list and get. And it use Azure Active Directory OAuth2 Flow to authenticate.
While the KUDU API is using Deployment credentials to authenticate.
How can I add the authorization header for Azure App Service API?
You can use Postman to set up your authorization header for Azure App Service API as below:
For rest api, you can choose Bearer Token and send your token in it:
For Kudu api, you can choose Basic Auth and send your username and password as Deployment credentials said. Then it will automatically generate token.