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