This template contains performance & statistics counters for monitoring Microsoft Azure Virtual Machine Scale Sets.
Prerequisites:
- PowerShell modules:
Az
andAz.Accounts
have to be installed prior to running this template on target machine. - To connect with Azure account following parameters are required:
subcriptionID
ApplicationID
TenantID
Secret Key
Note: Any Azure App (with its name & ID) having minimum role as 'Read-Only.'
- Application name for which metrics have to be calculated and its Resource Group Name.
- Time interval for which data has to be fetched (in hours).
- PowerShell 5.1 or greater
Script Arguments:
- Login credentials to access Azure Portal. Azure details have to be passed in script arguments as per prerequisites (comma separated)
Example:<SubscriptionID>
[string in GUID format]<TenantID>
[string in GUID format]<ApplicationID>
[string in GUID format]<secretKey>
[string]<VirtualMachineName>
[string]<ResourceGroupName>
[string]<TimeInterval>
[decimal] number of hours to pull for data<NumRetries>
[int] (Optional) [Default: 3]<WaitTime>
[decimal] number of seconds before retry (Optional) [Default: 0.5]
Notes:
- To install
Azure Az
PowerShell module, refer to: Install the Azure Az PowerShell module - Administrator rights on the machine where template would be running. Script should run with administration privilege.
- The
ApplicationID
with which you are making a connection to Azure portal (as mentioned in Credential/Prerequisites) must be registered in Azure Active Directory as contributor or reader role for the monitored application.
Reference link: Tips for adding an Azure AD app for cloud monitoring in the Orion Platform
Portions of this document were originally created by and are excerpted from the following sources:
- Windows virtual machines in Azure
- Supported metrics with Azure Monitor
- Tutorial: Create a virtual machine scale set and deploy a highly available app on Windows
Last Updated: 2019-JUL-25
Deprecation Notice
Previous Template: Azure Virtual Machine Scale Set - Application Monitor Templates - Server & Application Monitor has been deprecated