Created
June 30, 2017 19:28
-
-
Save sdurandeu/f17869407ad813bee373a126796ddf74 to your computer and use it in GitHub Desktop.
Publish an Azure WebJob with MsBuild from Powershell script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Notice the '' around the username to escape the $ sign | |
| $queueDefaultAssetsWebjobProjectPath = Resolve-Path -Path $queueDefaultAssetsWebjobProjectPath | |
| $arguments= "$queueDefaultAssetsWebjobProjectPath /p:Configuration=Release /p:DeployOnBuild=true /p:DeployTarget=MsDeployPublish /p:MsDeployServiceUrl=$($configuration.ApiPublishingUrl) '/p:UserName=$($configuration.ApiPublishingUserName)' /p:Password=$($configuration.ApiPublishingPassword) /p:DeployIisAppPath=$($configuration.ArmParameters.AppServiceApiName) /p:SkipExtraFilesOnServer=true" | |
| Write-Host "Publishing webjob 'QueueDefaultAssetsWebJob' with MSDeploy..." | |
| iex "&$msBuild $arguments" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment