Azure Utilities

This section describes the utilities used for Azure VM.
This section describes the utilities used for Azure VM.
Use the wa-agent to reset the root password on Gateway.
To reset the password, use the following command:
$vm = Get-AzureVM -ServiceName 'MyServiceName' -Name 'MyVMName'
#Enter your current user name and new password
$UserName = "MyCurrentUserName"
$Password = "MyNewPassWord"
[hashtable][email protected]{};
$Param['username'] = $UserName;
$Param['password'] = $Password;
$Param['expiration'] = '2016-01-01';
$PrivateConfig = ConvertTo-Json $Param;
#Begin execution
$ExtensionName = 'VMAccessForLinux'
$Publisher = 'Microsoft.OSTCExtensions'
$Version = '1.*'
Set-AzureVMExtension -ExtensionName $ExtensionName -VM $vm -Publisher $Publisher -Version $Version -PrivateConfiguration $PrivateConfig | Update-AzureVM
Azure Storage Explorer
Storage Explorer allows you to view and interact with your Azure Storage resources. The following are few benefits of using storage explorer:
  • You can view blob properties.
  • Upload large files to the storage account of
    Layer7 API Gateway
  • Upload, download, delete, and copy blobs and folders.
  • Drag and drop files to upload.
  • Rename blobs.
  • You can generate the log files.
  • You can perform schedule backups.
For more information about Azure storage explorer, see Getting started with Storage Explorer.
Monitoring Azure Virtual Machine
You can monitor Azure VM through the Azure web portal or you can access the data directly through the Azure diagnostics extension. You can monitor certain basic VM-level metrics to ensure that your servers and services are healthy. The following four are the most relevant metric types:
  • CPU usage
  • Disk I/O
  • Memory utilization
  • Network traffic
Monitoring will also involve triggering alarms when certain conditions are met, and providing diagnostic data to help in troubleshooting and root cause analysis.
Follow these steps:
  1. Login to Azure Portal.
  2. Install the VM Agent upon VM creation.
    This step is applicable only when the VM Agent is not installed during VM creation.
  3. Select the VM.
  4. Under Monitoring section, select
    Diagnostics settings
    , and change the Status to
    The diagnostics is enabled.
  5. Enable Monitoring
  6. To configure metrics, select the required diagnostics metrics.
    The portal provides rich charts with any of the metrics collected from the VM.
  7. You can also set the Alert rules on CPU usage, Disk I/O and Memory utilization.
  8. You can also export the metrics by using the Power BI reports in the portal.
    You can use Microsoft OMS backup and recovery tools to monitor VM.
For more information about monitoring the VM, see Microsoft Azure Virtual Machine Monitoring with Azure Diagnostics Extension.