Reputation: 41
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.
Thank you!
Upvotes: 3
Views: 5158
Reputation: 33738
Refer to these steps to publish/deploy web job:
webjob-publish-settings.json
file (This is required)**\*.sln
; Installation type: Restore)
**\*.sln
, MSBuild Arguments: /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactstagingdirectory)\\"
)$(build.artifactstagingdirectory)
; Artifact Name: drop
; Artifact Type: Server
)$(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.
Upvotes: 8