Skip to content

Instantly share code, notes, and snippets.

@justinyoo justinyoo/deploy-package.ps1 Secret
Created May 1, 2016

What would you like to do?
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
You can’t perform that action at this time.