Automate Deployments in Azure for Github Repository or TFS (Team Foundation Server)
Automating the deployment saves lot of time in the development process of an application. If you are using Github or TFS repository then you can automate the deployment to Azure. This deployment will be triggered when there is a new check in. Before going into auto deployment please go through my previous article How to Deploy Asp.net Web Application to Azure using Visual Studio?.
Prerequisites:
1. Visual Studio Team Service Account.
2. Github or TFS Repository.
Steps to Automate Deployment to Azure App Service:
Step #2:
Go to App Services then select "Continuous Delivery". Right side you will see "Configure" button.
Step #3:
Click on Source code and select GitHub from Code repository. And also make sure that your repository and branches are correct. If you want to use TFS then select that option in Code repository drop down.
In the Build section you are required to use "Visual Studio Team Service Account". In case if you don't have that account you can sign up here.
Step #4:
Leave Test and Deploy options as default. Finally click on Ok button.
Now the auto deployment configuration is done. It will take some time to configure and it will do first time build and sends an email with the status of the build.
How to see the deployed files?
if you want to see the deployed files you can see with the following steps. Sometimes it will be helpful to troubleshoot if there are any deployment issues.
if your app url is something like this "https://autodeplymentusingtfs.azurewebsites.net" then add .scm to the url.
Example:
https://autodeplymentusingtfs.scm.azurewebsites.net
Hit the url which has been added .scm and then Go to Debug console -> CMD->Site.
Demo
Comments
Post a Comment