Thursday, October 27, 2016

Using Azure PowerShell to retrieve log files

You can download all the log iles using the Azure PowerShell cmdlet Save-AzureWebsiteLog, as shown in the code below. This code will download the log iles and store them in E:\Weblogs.zip on the client computer.
$wsName = "contoso-web"
Save-AzureWebsiteLog -Name $wsName -Output e:\weblogs.zip

NOTE :: SAVING LOG FILES TO LOCAL COMPUTER USING POWERSHELL
Using the Save-AzureWebsiteLog cmdlet to download log files will download all logs except the Failed Request logs. If you use this method for retrieving log files, you will need to use one of the other options to retrieve failed request logs separately.


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...