简体   繁体   中英

Develop on Azure DevOps and deploy to another cloud service

We have been developing an Angular application on Azure DevOps. My company wants to have the app running on another cloud service. Can anyone tell me: Can we create a pipeline that will deploy the production version of our application from build in Azure to this other cloud service? What are the pitfalls or potential obstacles? Is anyone doing it already that could speak to it from your experience? Thanks in advance.

If you want to deploy Angular application on Azure DevOps to Azure App Service via Azure Pipelines, you could follow below steps.

  1. Create a build pipeline, add a npm task to install the npm packages required by the Angular application
  2. use npm task to build the application and produce the assets to be published on the web server
  3. Add a Publish Build Artifact task that generates the artifacts which will be provided later on as an input to release definition
  4. The last step is to add a CD pipeline which will deploy the artifacts created by the build to the Azure Web App by using this Azure App Service Deploy task . See this tutorial for details.

If want to deploy to other cloud service, this doc provides the system-defined tasks, you could review it to find if there are existing available tasks. If not, you may need to develop a custom pipelines task extension or find if there are existing extensions in the Azure DevOps Marketplace .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM