Skip to content

Instantly share code, notes, and snippets.

@joegasper
Last active September 2, 2016 23:33
Show Gist options
  • Save joegasper/f1acdfa0f601088497d60ea0a255f5e8 to your computer and use it in GitHub Desktop.
Save joegasper/f1acdfa0f601088497d60ea0a255f5e8 to your computer and use it in GitHub Desktop.
Sync an Azure Web Site using Continuous Deployment with PowerShell
Import-Module AzureRM.Websites
Login-AzureRmAccount
$MyResourceGroup = 'myresourcegroupname'
$MyResourceName = 'myresourcename'
Invoke-AzureRmResourceAction -ResourceGroupName $MyResourceGroup -ResourceType Microsoft.Web/sites -ResourceName $MyResourceName -Action sync -ApiVersion 2015-08-01 -Force -Verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment