Skip to content

Instantly share code, notes, and snippets.

@shawnmclean
Created September 18, 2014 05:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shawnmclean/40ec81407d3367c02a7e to your computer and use it in GitHub Desktop.
Save shawnmclean/40ec81407d3367c02a7e to your computer and use it in GitHub Desktop.
Swap Azure staging and production
Import-Module Azure
Import-AzurePublishSettingsFile "C:\Certificate\Azure.publishsettings"
Write-Host "Swapping staging and production slots..."
Switch-AzureWebsiteSlot -Name "griklyapi" -Slot1 "production" -Slot2 "staging" -Force
Write-Host "Swap complete"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment