This SAM template contains statistics counters for monitoring Azure Compute and Network Resources.
Note: This template was updated on April 1, 2020, to update to the calling the requests via API. It also added more core types from the previous version.
PowerShell is not needed.
To connect with the Azure account, you'll need the TenantId, SubcriptionID ApplicationID, TenantID, and Secret Key. Any Azure App (with its name and ID) with minimum role of 'Read Only' on the Subscription.
Create a new Credential with AppID Name (for convenience)
UserName = <ApplicationId>
Password = <Secret Value>
· The ApplicationID with which you are connecting to Azure portal must be registered in Azure Active Directory as reader role for the monitored subscription.
Before we can start gathering the appropriate data per region, we need to put the regions into the template. In order to do this we need to test the script to provide the answers – to an extent. There is a limitation of 10 areas that can be pulled in. If you have need to pull from more, please contact me or update the script to look at the first 10 regions and duplicate the template and do it for the next 10 and so on.
In Application Monitor Templates, choose the Template to update (you by default have 2 that you will need to do this to) and select Edit.
You will notice that there are no Custom Properties to fill out, we need to add the Tenant ID and Subscription ID to each of the Components you may be monitoring.
For each Component your Subscription has data for (it only returns if the number actually live is greater than 0) enable the component.
Expand the component so you see all the settings. Select Edit Script.
In Script Arguments make sure you add to the Resource Name “,<TenantId>,<SubscriptionID>” (minus the quotes).
Will Run against is one of your Windows Nodes.
Credential will be the Friendly Name of your Application ID you created in the Prerequisites.
Choose Get Script Output.
When the Output Results return – hopefully there is data, if not try another resource – click Save.
You need to remove the “,TenantID, SubscriptionID” you entered in Step 4a from the Script Arguments, Convert Credential Monitoring back to None (unless you only have one AppID) and if you typically don’t have this component enabled – disable the component. Update your Warning and Critical Thresholds (number is %) and click Save and Continue Working.
Move onto the next component as needed. Start with Step 4.
Once the template is complete click Submit. Move onto the next Template or move onto On-Boarding Subscription.
Detail troubleshooting steps (specific for components)
“Test failed with “Unknown” status on <<Node>>”
The allocated number of resources for this resource is 0. If the resource will not have additional assets, then disable the monitor. Opposite of this as this does not automatically identify new assets you need to manually enable on resources that are now in the subscription that were not there when you deployed.
“Test failed with “Unknown” status… Output: Message… Statistic…”
A new region has shown up on this component. You will need to On-board Template to add a new region. It will then be picked up by all subscriptions.
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community.
More than 150,000 members are here to solve problems, share technology and best practices, and directly
contribute to our product development process.
Learn more today by joining now.