简体   繁体   English

如何通过VS Team Services自动部署azure webjob - 发布

[英]How to deploy azure webjob automatically via VS Team Services - release

I want to deploy azure webjob using build and release management of visual studio team services. 我想使用visual studio团队服务的构建和发布管理来部署azure webjob I have created a webjob project and I already deployed from visual studio and I am looking to make the deployment automatic. 我已经创建了一个webjob项目,我已经从visual studio部署了,我希望自动部署。

Thank you! 谢谢!

Refer to these steps to publish/deploy web job: 请参阅以下步骤以发布/部署Web作业:

  1. Open VS 2015 and create a Web Job project (eg WebJob1) 打开VS 2015并创建Web作业项目(例如WebJob1)
  2. Right click the project > Publish As Azure WebJob, then it will create webjob-publish-settings.json file ( This is required ) 右键单击项目> Publish As Azure WebJob,然后它将创建webjob-publish-settings.json文件( 这是必需的
  3. Create a build definition, steps: 创建构建定义,步骤:
    • NuGet Installer (Path to solution or packages.config: **\\*.sln ; Installation type: Restore) NuGet安装程序(解决方案的路径或packages.config: **\\*.sln ;安装类型: Restore)
    • Visual Studio Build (Solution: **\\*.sln , MSBuild Arguments: /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\\\" ) Visual Studio Build(解决方案: **\\*.sln /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\\\" ,MSBuild参数: /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\\\"
    • Publish Build Artifacts (Path to Publish: $(build.artifactstagingdirectory) ; Artifact Name: drop ; Artifact Type: Server ) 发布构建工件(发布路径: $(build.artifactstagingdirectory) ;工件名称: drop ;工件类型: Server
  4. Queue build 队列构建
  5. Create a release definition and link to that build definition(Artifacts tab), tasks: 创建发布定义并链接到该构建定义(工件选项卡),任务:
  6. Azure App Service Deploy (Specify Azure Subscription and App Service name; Package or Folder: $(System.DefaultWorkingDirectory)\\**\\WebJob1.zip Azure App Service Deploy(指定Azure订阅和App Service名称;包或文件夹: $(System.DefaultWorkingDirectory)\\**\\WebJob1.zip
  7. Create a new release 创建一个新版本

On the other hand, to configure the Azure service endpoint, you can refer to this blog: Automating Azure Resource Group deployment using a Service Principal in Visual Studio Online: Build/Release Management . 另一方面,要配置Azure服务端点,可以参考此博客: 使用Visual Studio Online中的服务主体自动执行Azure资源组部署:构建/发布管理

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Node.js Azure WebJob:如何通过持续交付从Visual Studio Team Services进行部署 - Node.js Azure WebJob: How to deploy from Visual Studio Team Services with Continuous Delivery 团队服务部署到Azure应用 - Team Services deploy to Azure App 如何从Visual Studio Team Services将静态网站部署到Azure - How to deploy a static website to Azure from Visual Studio Team Services 如何使用 Octopus 部署 azure webjob - How to deploy azure webjob using Octopus 如何通过VSTS将Azure WebJob和App部署到同一个App Service? - How do you deploy an Azure WebJob and App to the same App Service via VSTS? 如何通过Git将Azure WebJob与.NET Core Web App一起部署? - How do I deploy an Azure WebJob alongside a .NET Core Web App via Git? 部署Azure WebJob的子文件夹 - Deploy subfolders for Azure WebJob VS Team Services和Azure Continuous delivery子目录 - VS Team Services and Azure Continuous delivery subdirectory 如何打包和部署包含来自Visual Studio Team Services(以前称为VS Online)的多个虚拟应用程序的单个Azure Web应用程序? - How do I package and deploy a single Azure web app containing several virtual apps from Visual Studio Team Services (previously VS Online)? 如何在 Azure WebJob 中通过 DI 配置日志记录 - How to configure Logging via DI in Azure WebJob
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM