Diagnostics
Use diagnostics extension to monitor Web roles
To monitor the work of your Web roles, you should add a diagnostics extension and use some diagnostics monitoring tool.
We prepared a configuration file for diagnostics extension and a PowerShell script that automates the installation of the diagnostics extension.
Download DiagnosticsExtension.zip
Preparing
- Download and unzip the DiagnosticsExtension.zip.
- Edit the
PaaSDiagnostics.CmsWebRole.PubConfig.xml
file. - Locate and replace the {ACCOUNT_NAME} placeholder with the name of the storage account associated with the web role you are going to monitor.
<StorageAccount>{ACCOUNT_NAME}</StorageAccount>
- Save the changes.
Installing the diagnostics extension
- Run the PowerShell script from the DiagnosticsExtension.zip:
InstallDiagnosticExtension.ps1
- Follow the steps as suggested by the script:
- Log in to your Azure account if prompted and download the
publishSettings
file for the account. (Normally, it should download automatically.) - Browse to, and open, the downloaded
publishSettings
file. - Select your subscription (if many)
- Select the storage associated with the web role
- Select the cloud service where the web role is running.
- Browse to, and open, the
PaaSDiagnostics.CmsWebRole.PubConfig.xml
from the DiagnostcsExtension.zip, which you’ve updated with the proper storage account name (see above). - Press
ENTER
.
- Log in to your Azure account if prompted and download the
- Wait for the installation to complete.
Now you can go on to use some 3rd party diagnostics tool to monitor the web role, for example, Azure Diagnostics Viewer.