0
votes

I am writing an auto deployment service and I am already able to create my App Service resource via ARM Template using the ARM API but now I need to deploy the content there, Im planning use the Kudu Zip deployment API (https://github.com/projectkudu/kudu/wiki/Deploying-from-a-zip-file) but Im missing how to set or get the deploy username and password automatically through some api based process (not using the UI).

I know the site credentials are actually account-tied users, if you know a different kind of credential can be used to deploy, please point me the direction that would allow me release without a specifc person-oriented credential (an app credential instead)

1
which automated process? there are a bunch of way of doing that, i would imagine4c74356b41
I meant through API instead UIJairo Andres Velasco Romero
github.com/projectkudu/kudu/wiki/Deploying-from-a-zip-file this is the api call you are looking for4c74356b41

1 Answers

1
votes

If you want to get the publish credentials, you could use the Web Apps - List Publishing Credentials Rest API to do that.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/publishingcredentials/list?api-version=2016-08-01

About how to call the Azure Resource Manager REST API, please refer to this tutorial.

We also could use Azure SDK to get the publish credentials. For more information about how to use Kudu API or Azure SDK to get the publish credential, please refer to another SO thread.