Tuesday, October 4, 2016

Enabling diagnostics logs using the management portal

In the management portal, you can enable application and site diagnostic logs by opening the Website blade for your website and clicking the Diagnostics Logs part under the Operations section. This will open the Logs blade, where you can enable the logs and configure the logging level, as shown in Figure



Enabling diagnostics logs using Azure PowerShell cmdlets You can enable and disable diagnostic logs using the Set-AzureWebsite cmdlet. As an example, the code shown here enables the web server logging and the failed request tracing.

$wsName = "contoso-web"
Set-AzureWebsite -Name $wsName -RequestTracingEnabled $true -HttpLoggingEnabled $true










Featured Posts

Adding Accesspolicy to KeyVault for Service Principal Using Portal and Powershell

  Scripts path : https://drive.google.com/drive/folders/1sbBpnVFgXhUIXLdf2E9heyWDeU2f9427?usp=sharing  Adding Accesspolicy to KeyVault for S...