Submit a ticketCall us

WebinarVisual Monitoring Tactics: Getting More Log Search Value from SolarWinds Log & Event Manager with nDepth Webcast

Do things seem to make more sense when they are visualized? Are you an IT professional or security expert with a wish for more cybersecurity tools that provide an intuitive visual experience? Join Alexis Horn and Jamie Hynds from SolarWinds as they demonstrate how the nDepth feature in LEM can help make visualizing log search results a reality.

Register now.

Home > Success Center > Server & Application Monitor (SAM) > SAM - Knowledgebase Articles > Using a Script to Create or Extract Credentials for Azure Cloud Monitoring (SAM and VMAN)

Using a Script to Create or Extract Credentials for Azure Cloud Monitoring (SAM and VMAN)

Table of contents

Updated June 5, 2017


Before you can monitor Microsoft Azure VMs in the Orion Web Console with the Cloud Infrastructure Monitoring feature, Azure must be configured to interact with the Orion Platform. The cloud account requires sufficient Azure Active Directory (AD) and subscription permissions to add an AD app in the Azure Portal so the Orion Platform can retrieve status and metrics for Azure VMs. Identify and Access Management (IAM) permissions must also be configured. The Orion Platform also requires the Azure account credentials. 

The Configure Microsoft Azure for cloud monitoring in the Orion Platform article describes how to integrate Azure with the Orion Platform. You can also use the Get-AzureSamCreds.ps1 script that leverages Azure PowerShell cmdlets downloaded from the Microsoft Azure Downloads page to automate the integration of Azure and the Orion Platform. When executed, the script will request the Username and Password for the default Azure subscription and then integrate the Orion Platform with Azure.

Before using this script, note these details:

  • The script is designed for use with a single Azure subscription and a single tenant. It will create an AD app and link it to the subscription with a Reader role
  • If you need to run the script again, be sure to remove any remnants left behind after running the script the first time. 

Disclaimer: Please note, any content posted herein is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment.  You elect to use third party content at your own risk, and you will be solely responsible for the incorporation of the same, if any.


Applies to either:

  • SAM 6.5 or later
  • VMAN 8.1 or later


To install the Azure PowerShell cmdlets used in the script:

  1. Navigate to the Microsoft Azure Downloads page.
  2. Under Command Line Tools, click Windows Azure PowerShell.
  3. When prompted to run or save the .exe file, choose the Run button.
  4. Follow the online instructions to complete the installation.


After you install Azure PowerShell cmdlets, run the Get-AzureSamCreds.ps1 script at the command line to request the Azure credentials required for integration with the Orion Platform.


As you work with Azure accounts in the Orion Web Console, you'll be prompted to provide various Azure credentials. See Find Microsoft Azure account credentials for reference.



Last modified