Dışarıya aktar (0) Yazdır
Tümünü Genişlet
EN
Bu içerik dilinizde bulunmamaktadır ancak İngilizce sürümüne buradan bakabilirsiniz.

Enable-AzureWebsiteApplicationDiagnostic

Updated: June 21, 2013

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Enable-AzureWebsiteApplicationDiagnostic

Enables application diagnostics on a Windows Azure website.

 

Parameter Set: FileParameterSet
Enable-AzureWebsiteApplicationDiagnostic [[-Name] <String> ] -File -LogLevel <LogEntryType> [-PassThru] [ <CommonParameters>]

Parameter Set: StorageParameterSet
Enable-AzureWebsiteApplicationDiagnostic [[-Name] <String> ] -LogLevel <LogEntryType> -Storage [-PassThru] [-StorageAccountName <String> ] [ <CommonParameters>]




 

This topic describes the cmdlet in the .6.19 version of the Windows Azure PowerShell module. To find out the version of the module you're using, from the Windows Azure PowerShell console, type (get-module azure).version.

Enables application diagnostics on a Windows Azure website, and allows you to configure storage of logs on a file system or on Windows Azure storage.

 

-File

Specifies that you want to use a file system to store the log files.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-LogLevel<LogEntryType>

The log level to store.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name<String>

The name of the Windows Azure website.


Aliases

none

Required?

false

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-PassThru

Flag to return true if the command succeeds.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Storage

Specifies that you want to use Windows Azure to store the log files.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-StorageAccountName<String>

The storage account to use for storing the logs. If not specified, the CurrentStorageAccount is used.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

 

Enable diagnostics using file system

This example enables application logging on file system with verbose level.


C:\PS>Enable-AzureWebsiteApplicationDiagnostic -Name MyWebsite -File -LogLevel Verbose

Enable logging using Windows Azure Storage

This example enables application logging using storage account named “myaccount” with logging level set to “information”.


C:\PS>Enable-AzureWebsiteApplicationDiagnostic -Name MyWebsite -Storage -LogLevel Information -StorageAccountName myaccount

Related topics

Show:
© 2014 Microsoft