Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Enable-AzureWebsiteApplicationDiagnostic

Enable-AzureWebsiteApplicationDiagnostic

microsoft.windowsazure.commands.dll

Synopsis

Enables the website's application diagnostics

Syntax

Enable-AzureWebsiteApplicationDiagnostic [-Name] [-File] [-Storage] [-StorageAccountName] [-LogLevel] [-PassThru] [-Slot] [<CommonParameters>]

Detailed Description

Enables the website's application diagnostics on file system or on Microsoft Azure Storage

Parameters

-Name <>

The name of the Azure website

Aliases

None

Required?

false

Position

1

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-File <>

Indicates using file system to store the log files

Aliases

None

Required?

false

Position

2

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Storage <>

Indicates using Microsoft Azure Storage to store the log files

Aliases

None

Required?

false

Position

2

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-StorageAccountName <>

The storage account to use for storing the logs. If not specified, the CurrentStorageAccountName will be used

Aliases

None

Required?

false

Position

3

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-LogLevel <>

The log level to store

Aliases

None

Required?

false

Position

3

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-PassThru <>

Flag to return true if succeeded

Aliases

None

Required?

false

Position

4

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

-Slot <>

The slot name

Aliases

None

Required?

false

Position

5

Default value

None

Accept pipeline input?

true (ByPropertyName)

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

-------------- Enable diagnostics using file system --------------

C:\PS>

Enables application logging on file system with verbose level

Enable-AzureWebsiteApplicationDiagnostic -Name MyWebsite -File -LogLevel Verbose

-------------- Enable logging using Microsoft Azure Storage --------------

C:\PS>

Enables application logging using storage account myaccount with logging level set to information

Enable-AzureWebsiteApplicationDiagnostic -Name MyWebsite -Storage -LogLevel Information -StorageAccountName myaccount

New-AzureWebsite
Get-AzureWebsite
Start-AzureWebsite
Remove-AzureWebsite
Disable-AzureWebsiteApplicationDiagnostic