INTERNET APPLICATION DEVELOPMENT
MID MARKET ERP DEVELOPMENT
by Joe Zhou
It is essential for a .NET web developer to be equipped with knowledge about event logging and diagnostics. It remains true when it comes to Windows Azure, even though nowadays Azure developers can get away from configuring IIS and dealing with VMs most of time. Here are the steps to download log files without using FTP. I will use PowerShell instead.
1. First of all, you can search for Windows Azure PowerShell using the built-in search capability on Windows 8 and run it as an administrator.
2. When you see the dark blue background command prompt, type in Get-AzurePublishSettingsFile and hit Enter.
3. It will redirect you to a login page for Windows Azure. You will be asked to download a copy of the publishSettings file after you have logged in to Windows Azure.
4. Import the downloaded publishSettings file as shown in Figure 2.
5. Use the Get-AzureSubscription command to get your subscription information to confirm PowerShell is now associated with your Azure account.
6. Go to the directory where you want to download the log files.
7. Type in the command to save the website log files to your local drive.
Save-AzureWebSiteLog –Name website
8. Use Windows Explorer to open the directory to which you saved the file. As you can see from this screenshot, a ZIP file named logs.zip now can be found in that directory.
9. Happy logging and log analysis!
If you have any questions about this, please contact me.