There are different ways to deploy Azure web app in DevOps. The following steps to be followed for configuring DevOps release pipline to deploy azure web app using cURL kudu zipdeploy,
Get the publish profile from azure web app
In azure portal, navigate to the web app overview and click on Get publish profile. This will download the json file. The json file will have the credentials for publishing the application the azure web app service.
Note down the following settings values from json file:
1. msdeploySite
2. userName
3. userPWD
Add task “cURL upload files” to release pipeline
While creating release pipeline select empy template and then navigate to tasks. Add new task by clicking the ‘+’ icon near Agent job. Search for curl in the search bar and select “cURL upload files” task
Configure “cURL upload files” task
Update the config fields with the following
Display name | Any Name |
Files | $(System.DefaultWorkingDirectory)/*.zip (depends on your build location) |
Authentication Method | Username and password |
Username | <userName> (taken from publish profile json) |
Password | <userPWD> (taken from publish profile json) |
URL | https://<msdeploySite>.scm.azurewebsites.net/api/zipdeploy (taken from publish profile json) |
Nice blog! Thanks you all star articles good story!