< Back
Enable-AzureWebsiteApplicationDiagnostic
Post
NAME Enable-AzureWebsiteApplicationDiagnostic
SYNOPSIS
Enables the website's application diagnostics
SYNTAX
Enable-AzureWebsiteApplicationDiagnostic [[-Name] <String>] [[-File] <SwitchParameter>] [[-Storage] <String>] [[-StorageAccountName] <String>]
[[-LogLevel] <String>] [[-PassThru] <SwitchParameter>] [[-Slot] <String>] [<CommonParameters>]
DESCRIPTION
Enables the website's application diagnostics on file system or on Microsoft Azure Storage
PARAMETERS
-Name <String>
The name of the Azure website
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-File <SwitchParameter>
Indicates using file system to store the log files
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Storage <String>
Indicates using Microsoft Azure Storage to store the log files
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-StorageAccountName <String>
The storage account to use for storing the logs. If not specified, the CurrentStorageAccountName will be used
Required? false
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-LogLevel <String>
The log level to store
Required? false
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-PassThru <SwitchParameter>
Flag to return true if succeeded
Required? false
Position? 4
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Slot <String>
The slot name
Required? false
Position? 5
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Keywords: azure, azuresm, servicemanagement, management, service, utilities
-------------- Enable diagnostics using file system --------------
C:\\PS>Enable-AzureWebsiteApplicationDiagnostic -Name MyWebsite -File -LogLevel Verbose
Enables application logging on file system with verbose level
-------------- Enable logging using Microsoft Azure Storage --------------
C:\\PS>Enable-AzureWebsiteApplicationDiagnostic -Name MyWebsite -Storage -LogLevel Information -StorageAccountName myaccount
Enables application logging using storage account myaccount with logging level set to information
RELATED LINKS
New-AzureWebsite
Get-AzureWebsite
Start-AzureWebsite
Remove-AzureWebsite
Disable-AzureWebsiteApplicationDiagnostic
SYNOPSIS
Enables the website's application diagnostics
SYNTAX
Enable-AzureWebsiteApplicationDiagnostic [[-Name] <String>] [[-File] <SwitchParameter>] [[-Storage] <String>] [[-StorageAccountName] <String>]
[[-LogLevel] <String>] [[-PassThru] <SwitchParameter>] [[-Slot] <String>] [<CommonParameters>]
DESCRIPTION
Enables the website's application diagnostics on file system or on Microsoft Azure Storage
PARAMETERS
-Name <String>
The name of the Azure website
Required? false
Position? 1
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-File <SwitchParameter>
Indicates using file system to store the log files
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Storage <String>
Indicates using Microsoft Azure Storage to store the log files
Required? false
Position? 2
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-StorageAccountName <String>
The storage account to use for storing the logs. If not specified, the CurrentStorageAccountName will be used
Required? false
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-LogLevel <String>
The log level to store
Required? false
Position? 3
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-PassThru <SwitchParameter>
Flag to return true if succeeded
Required? false
Position? 4
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
-Slot <String>
The slot name
Required? false
Position? 5
Default value
Accept pipeline input? true (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
NOTES
Keywords: azure, azuresm, servicemanagement, management, service, utilities
-------------- Enable diagnostics using file system --------------
C:\\PS>Enable-AzureWebsiteApplicationDiagnostic -Name MyWebsite -File -LogLevel Verbose
Enables application logging on file system with verbose level
-------------- Enable logging using Microsoft Azure Storage --------------
C:\\PS>Enable-AzureWebsiteApplicationDiagnostic -Name MyWebsite -Storage -LogLevel Information -StorageAccountName myaccount
Enables application logging using storage account myaccount with logging level set to information
RELATED LINKS
New-AzureWebsite
Get-AzureWebsite
Start-AzureWebsite
Remove-AzureWebsite
Disable-AzureWebsiteApplicationDiagnostic