Build CI/CD pipeline and Deploy Node.js app to Azure in 5 min with Azure DevOps Project

Lets take the challenge of building CI/CD pipeline and Deploy to Azure cloud in 5 min!

  1. If you have Azure access then login to Azure otherwise lets Signup Azure cloud
  2. Login to Azure with the outlook account.
  3. Add subscription with credit card details.
  4. Login to https://portal.azure.com
  5. Search for DevOps Project and select DevOps Project resource Screenshot_4
  6. Click on Create to create new DevOps ProjectScreenshot_1
  7. Select your preferred language, Azure support multiple languages like .Net Core, Node.js, Python, PHP, Java, Static Website. For this Demo lets Select Node.js and click on NextScreenshot_2
  8. Choose Node.js application framework, Azure supports Express.js, Sails.js and plain Node.js. For this Demo lets select Express.js and hit NextScreenshot_13
  9. Select Azure service to Deploy either Containers and Web App. If your application is Containerised then choose Containers. For this Demo we will choose Web AppScreenshot_14.png
  10. Its time to create Microsoft VSTS account for CI/CD pipeline. If you already have VSTS account then select existing account, otherwise select Create New. for this Demo we will select Create New and enter name for your account, enter Project Name as NodeSampleProject and click Done button.Screenshot_15
  11. It will take 1 or 2 minutes to create the Resources, Click on the Notifications to see the status.Screenshot_16
  12. Once Deployment is done, select Go to ResourceScreenshot_17
  13. Sample Node.js application is deployed and CI/CD pipeline created in less than 5 minScreenshot_18
  14. Click on the Browse to visit your website.Screenshot_19.png
  15. You have successfully Deployed and Created CI/CD pipeline for your Node.js app.Screenshot_20.png
  16. So far we have uploaded sample code to Git Version Control, Created Continuous Integration, Continuous Deployment pipeline and Deployed app to Azure Platform as a Service and Added App insights Monitoring.Screenshot_23

Next step

will look into this apps DevOps CI/CD pipeline in Microsoft VSTS.

 

Reference/further reading 

https://azure.microsoft.com/en-in/features/devops-projects/https://docs.microsoft.com/en-in/azure/app-service/app-service-web-overview

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s