Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
This is the complete script for my blog post about the website diagnostic cmdlets in Windows Azure PowerShell
# Get the publish settings file for the subscription
# Import the *.publishsettings and make sure my default subscription is one I want
Import-AzurePublishSettingsFile c:\azure.publishsettings
# Create new website called adeek
New-AzureWebsite adeek
# Check the website
Show-AzureWebsite adeek
# Enable file system application diagnostics with verbose level
Enable-AzureWebsiteApplicationDiagnostic -Name adeek -File -LogLevel Verbose
# Getting the website information
Get-AzureWebsite adeek
# Start log streaming
Get-AzureWebsiteLog -Name adeek -Tail
# Enable application diagnostic on table storage
New-AzureStorageAccount adeekstorage -Location "West US"
Enable-AzureWebsiteApplicationDiagnostic -Name adeek -Storage -LogLevel Verbose -StorageAccountName adeekstorage
# Breaking out with logging
Disable-AzureWebsiteApplicationDiagnostic -Name adeek
# Cleanup (or angry!)
Remove-AzureWebsite adeek -Force
Remove-AzureStorageAccount adeekstorage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.