[英]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作业:
webjob-publish-settings.json
file ( This is required ) webjob-publish-settings.json
文件( 这是必需的 ) **\\*.sln
; Installation type: Restore)
**\\*.sln
;安装类型: Restore)
**\\*.sln
, MSBuild Arguments: /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\\\"
) **\\*.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)\\\\"
) $(build.artifactstagingdirectory)
; Artifact Name: drop
; Artifact Type: Server
) $(build.artifactstagingdirectory)
;工件名称: drop
;工件类型: Server
) $(System.DefaultWorkingDirectory)\\**\\WebJob1.zip
$(System.DefaultWorkingDirectory)\\**\\WebJob1.zip
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.