Skip to content

Instantly share code, notes, and snippets.

@joegasper
Last active September 2, 2016 23:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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