如何通过VS Team Services自动部署Azure Webjob-版本 [英] How to deploy azure webjob automatically via VS Team Services - release

查看:53
本文介绍了如何通过VS Team Services自动部署Azure Webjob-版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用 Visual Studio团队服务的构建和发布管理来部署Azure Webjob. 我已经创建了一个webjob项目,并且已经从Visual Studio进行了部署,并且希望实现自动部署.

I want to deploy azure webjob using build and release management of visual studio team services. I have created a webjob project and I already deployed from visual studio and I am looking to make the deployment automatic.

谢谢!

推荐答案

请参阅以下步骤来发布/部署Web作业:

Refer to these steps to publish/deploy web job:

  1. 打开VS 2015并创建一个Web Job项目(例如WebJob1)
  2. 右键单击项目>作为Azure WebJob发布",然后它将创建webjob-publish-settings.json文件(这是必需的)
  3. 创建构建定义,步骤:
    • NuGet安装程序(解决方案或packages.config的路径:**\*.sln;安装类型:Restore)
    • Visual Studio构建(解决方案:**\*.sln,MSBuild参数:/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\")
    • 发布构建工件(发布路径:$(build.artifactstagingdirectory);工件名称:drop;工件类型:Server)
  1. Open VS 2015 and create a Web Job project (e.g. WebJob1)
  2. Right click the project > Publish As Azure WebJob, then it will create webjob-publish-settings.json file (This is required)
  3. Create a build definition, steps:
    • NuGet Installer (Path to solution or packages.config: **\*.sln; Installation type: Restore)
    • Visual Studio Build (Solution: **\*.sln, MSBuild Arguments: /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)

另一方面,要配置Azure服务终结点,可以引用此博客:

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.

这篇关于如何通过VS Team Services自动部署Azure Webjob-版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆