Click green + to create a new release definition.
![image image](https://lh3.googleusercontent.com/-ncN5PzRrZ-k/VpNm8A1Jx8I/AAAAAAAAGk0/EpciEBsRYmg/image_thumb%25255B5%25255D.png?imgmax=800)
Select Azure WebSite deployment and click Ok in the dialog box.
![image image](https://lh3.googleusercontent.com/-jxWYWNBmVeI/VpNm-NON8pI/AAAAAAAAGlE/OeTrmpgUITE/image_thumb%25255B6%25255D.png?imgmax=800)
This will create an environment with Azure Web App Deployment task. Rename the environment added to let’s say DevInt.
![image image](https://lh3.googleusercontent.com/-U76wMBAsjkU/VpNnAMdFJVI/AAAAAAAAGlU/jXfkKo84qAE/image_thumb%25255B11%25255D.png?imgmax=800)
In the Artifacts tab of the release definition, click on Link an artifact source.
![image image](https://lh3.googleusercontent.com/-nyX_7oDQO8U/VpNnB1t6wyI/AAAAAAAAGlk/0mthrhfo5WY/image_thumb%25255B12%25255D.png?imgmax=800)
Select the build we have created in Part1.
![image image](https://lh3.googleusercontent.com/-v62Su6qczUg/VpNnD4ryxjI/AAAAAAAAGl0/1w6GbuJ6_m8/image_thumb%25255B15%25255D.png?imgmax=800)
![image image](https://lh3.googleusercontent.com/-OcvT4V1FnJY/VpNnF2TX-dI/AAAAAAAAGmE/xjUCyZsm6q8/image_thumb%25255B18%25255D.png?imgmax=800)
In Azure Web App Deployment task set the parameters as shown below.
![image image](https://lh3.googleusercontent.com/-FHztz1yPGlU/VpNnICtbWUI/AAAAAAAAGmU/H_8v9HZwkFI/image_thumb%25255B21%25255D.png?imgmax=800)
To link Azure Subscription to your VS Team Services Team Project follow the instructions here. Web App Name is the Azure Web App Name. Use the App Service Location as the Web App Location.
![image image](https://lh3.googleusercontent.com/-9lvFxAko6NQ/VpNnKTP_SFI/AAAAAAAAGmk/kDOipcT08fI/image_thumb%25255B25%25255D.png?imgmax=800)
![image image](https://lh3.googleusercontent.com/-Fv5tDcDFdig/VpNnMpke0wI/AAAAAAAAGmw/hYxomrW4H48/image_thumb%25255B27%25255D.png?imgmax=800)
Select Deploy Package from linked artifact. How to publish build artifact is explained in Part1.
![image image](https://lh3.googleusercontent.com/-4hmCd3bjpDA/VpNnO_rq-tI/AAAAAAAAGnE/fqW29qK9xv8/image_thumb%25255B30%25255D.png?imgmax=800)
Trigger can be set to Continuous Deployment so that new artifact availability will trigger a deployment.
![image image](https://lh3.googleusercontent.com/-AIkg6bAH5mE/VpNnQ1HC5OI/AAAAAAAAGnU/Aj42fDLfelM/image_thumb%25255B33%25255D.png?imgmax=800)
Approvers can be assigned but let’s keep it automated.
![image image](https://lh3.googleusercontent.com/-pTeXKr4-0d4/VpNnTMUEVwI/AAAAAAAAGnk/6eS-Nm_WL0Q/image_thumb%25255B36%25255D.png?imgmax=800)
![image image](https://lh3.googleusercontent.com/-ng86v8FZZQw/VpNnVFadI8I/AAAAAAAAGn0/pNR-arg2kTg/image_thumb%25255B39%25255D.png?imgmax=800)
Let’s trigger a new build using build definition we have created in Part1.
![image image](https://lh3.googleusercontent.com/-aR0NEuMEyR0/VpNnXFRSGQI/AAAAAAAAGoE/_ydETFHpZD0/image_thumb%25255B43%25255D.png?imgmax=800)
![image image](https://lh3.googleusercontent.com/-ke4zf83bB0k/VpNnZUfElOI/AAAAAAAAGoU/kAu7U2ab_pc/image_thumb%25255B45%25255D.png?imgmax=800)
Once the build done release automatically get triggered and get completed.
![image image](https://lh3.googleusercontent.com/-LPVogApkNxs/VpNnbm0BCsI/AAAAAAAAGok/Qs-ucummhCU/image_thumb%25255B48%25255D.png?imgmax=800)
![image image](https://lh3.googleusercontent.com/-vcxxKZJqKTs/VpNndy2U22I/AAAAAAAAGo0/iJAQ2RJYZpI/image_thumb%25255B52%25255D.png?imgmax=800)
![image image](https://lh3.googleusercontent.com/-v0B4p4SpMXc/VpNngA1M7xI/AAAAAAAAGpE/l1NYxggMP5k/image_thumb%25255B55%25255D.png?imgmax=800)
Site is getting deployed to Azure Web App.
![image image](https://lh3.googleusercontent.com/-QxIMCfx6niE/VpNnjJkzhYI/AAAAAAAAGpU/7z6qCIB2ZGU/image_thumb%25255B58%25255D.png?imgmax=800)
2 comments:
Wow, what an informative post. Really helpful for web designers. Here described How we can setup a Release Pipeline in a good way so that It is easy to read and understand. Visual Studio Team Services Release Management, to deploy this web site as an Azure Web Application. Thanks a lot for sharing with us.I had some idea about asp.net when I hosted my business through Myasp.net.
@Smith Cole glad to hear my post helped you
Post a Comment