Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created May 1, 2016 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justinyoo/fecae47954228cbf2e36c064db57434b to your computer and use it in GitHub Desktop.
Save justinyoo/fecae47954228cbf2e36c064db57434b to your computer and use it in GitHub Desktop.
Azure DevOps Series
$ResourceGroupName = "my-resource-group"
$ResourceName = "my-azure-webapp"
$PublishPath = "C:\Temp\publish"
$AppName = "MyWebApp"
# Downloads the applicatioin publish profile.
$pubSettings = "$ResourceName.PublishSettings"
Get-AzureRmWebAppPublishingProfile `
-ResourceGroupName $ResourceGroupName `
-Name $ResourceName `
-OutputFile "$PublishPath\$pubSettings" `
-Format WebDeploy
# Deployes the app to Azure Website.
# Assumes that WAWSDeploy is installed at C:\WAWSDeploy.
C:\WAWSDeploy\WAWSDeploy.exe "$PublishPath\$AppName" "$PublishPath\$pubSettings" /t "D:\home\site" /d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment