Get-WebsiteLog - Name "MySite" -Tail
Tuesday, May 10, 2016
Deploying and Managing Azure Websites with Powershell Commands
Extract from : MSDN
| Name | Description |
|---|---|
| Get-AzureWebsite | Gets information about websites in Azure associated with the current subscription. |
| Get-AzureWebsiteDeployment | Gets the deployments for a website in Azure. |
| Get-AzureWebsiteLocation | Gets all available website locations. |
| New-AzureWebsite | Create a new website to run in Azure. |
| Remove-AzureWebsite | Removes the specified website from Azure. |
| Restart-AzureWebsite | Stops and then restarts the specified website. |
| Restore-AzureWebsiteDeployment | Redeploys a previous deployment of a website in Azure. |
| Save-AzureWebsiteLog | Downloads and saves the logs for a specified website. |
| Set-AzureWebsite | Configures a website running in Azure. |
| Show-AzurePortal | Show the Azure Management Portal. |
| Show-AzureWebsite | Opens a browser on a specified website. |
| Start-AzureWebsite | Starts the specified website. |
| Stop-AzureWebsite | Stops the specified website. |
Powershell commands for Deployment slots
1. Powershell commands to set 2 app settings "Sticky to a Slot":
SET-AzureWebsite -Name "mySite" -SlotStickyAppSettingsName @("mySlot", "mySlot2")
2. Powershell Command for Autoswap between Staging and Production Slot:
SET- AzureWebsite -Name "mySite" -SlotStaging - AutoSwapSlotName Production
3. Poweshell Command to set 2 connection strings as "Sticky to a Slot":
Set-AzureWebsite -Name "mySite" -SlotStickyConnectionStringName @("myConn","MyConn2")
SET-AzureWebsite -Name "mySite" -SlotStickyAppSettingsName @("mySlot", "mySlot2")
2. Powershell Command for Autoswap between Staging and Production Slot:
SET- AzureWebsite -Name "mySite" -SlotStaging - AutoSwapSlotName Production
3. Poweshell Command to set 2 connection strings as "Sticky to a Slot":
Set-AzureWebsite -Name "mySite" -SlotStickyConnectionStringName @("myConn","MyConn2")
Subscribe to:
Comments (Atom)