Azure Portal


Virtana recommends using the Azure CLI for the best integration experience.

  1. Create an Active Directory Application in Azure

    1. In a separate tab, open the Azure portal and select Azure Active Directory from the left or top menu.

    2. Select App registrations from the Manage options.

    3. Select + New Registration at the top.

    4. Provide a name for the application (e.g., CloudWisdom-Integration).

    5. Select Accounts in this organizational directory only (Default Directory only - Single tenant) for Supported Account Types.

    6. Find the Redirect URI (optional) section. Select Web and input

    7. Select Register at the bottom of the window.

  2. Get the Application ID, Application Key, and Tenant ID from Azure

    Once you have completed part 2, you are redirected to the CloudWisdom-Integration's overview page.

    1. Copy the Application (client) ID and paste the ID into the Client ID field in CloudWisdom. Then Copy the Directory (tenant) ID and paste it into the Tenant ID field.

    2. Select Certificates & secrets.

    3. Select + New client secret

    4. Provide a description and select an Expiration for the key.

    5. Select Add. The Secret is now listed in the Client secrets section.

    6. Copy the secret’s Value and return to the tab with CloudWisdom open. Paste it into the Access Key field. Once it’s pasted, return to the Azure tab.

      • Note: the access key is only shown in the Azure portal for a few minutes.

  3. Set Delegated Permissions in Azure

    1. In Azure, navigate to the API Permissions section of your CloudWisdom-Integration.

    2. Select + Add a permission. A side panel appears.

    3. Select the Azure Service Management card.

    4. Select Delegated Permissions.

      • Note: Granting delegated permissions authorizes the registered application (CloudWisdom) to make requests to the Azure API only. Details of what data can be read is configured in the next step.

    5. Enable the user_impersonation permission.

    6. Select Add permissions.

  4. Collect Subscription ID and Set Role

    1. Navigate to Home > Subscriptions in Azure.

    2. Select the Subscription Name your new app belongs to. While here, ensure the microsoft.insights resource provider is registered as it’s needed to gather performance metrics for your Azure objects. enable-microsoft-insights

    3. Copy the Subscription ID and return to the tab with CloudWisdom open. Paste it into the appropriate field. Once it’s pasted, return to the Azure tab. copy-subscription-id

    4. Navigate to this subscription’s Access Control (IAM) tab. access-control-tab

    5. Select Add > Add role assignment. A side panel appears. add-role-assignment

    6. Complete the following fields:

      • Role: Reader

      • Assign access to: Azure AD user, group, or service principal

      • Select: Enter the name of the app you created in section 2 and select the app.

    7. Select Save.

      • Note: You can verify the permissions by selecting Role Assignments and searching for the CloudWisdom application.

    8. Return to CloudWisdom, verify each field has been filled in accurately, and then click the Save button.


Follow the instructions on Guest OS Diagnostic Metrics to enable guest OS diagnostic metrics on your VMs. The additional metrics provided, such as memory utilization, are required for CloudWisdom’s Azure cost reports.Enable Guest OS Diagnostic Metrics