-
-
Save justinyoo/fecae47954228cbf2e36c064db57434b to your computer and use it in GitHub Desktop.
Azure DevOps Series
This file contains 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
$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