Collecting metrics from an Azure service
Prerequisites
- You must have access to the Global Admin role for performing these tasks. Request your admin for access.
- You must already have an application, or you can create an application key.
To create an application key
If you do not have an application, complete the following procedure to the create an application key.
Navigate to https://manage.windowsazure.com.
- Select Active Directory from the navigation pane and then click Default Directory from the list.
- Select the Applications tab and click Add
- Select Add an application my organization is developing
- Type a Name for the application, and select Web Application And/Or Web API
- Type https://truesight.bmc.com for the Sign-on URL, APP ID URI, and Reply URL.
To create credentials to access Azure
To create the credentials, you must get the client ID, client secret, and tenant ID. For more information, see the Azure documentation.
Navigate to https://manage.windowsazure.com.
- Select Active Directory from the navigation pane.
- Click Default directory from the list.
- Click the Applications link, and select your application.
- From the Configure section, select Access Web APIs in other applications.
Copy the ID from the Update your code with your client ID field to the clipboard.
- From Create a key, click Configure key to generate a key used to access the Microsoft Azure Active Directory web APIs.
- Select the duration from the drop-down list
- The permissions to other applications section should have Windows Azure Active Directory.
- From the Application Permissions menu, select:
- Read and write devices
- Read and write directory data
- Read and write domains
- Read directory data.
- From the Delegated Permissions menu, select:
- Read all users' basic profiles
- Read all users' full profiles
- Read all groups
- Read and write all groups
- Read and write directory data
- Read directory data.
- Click Add application, and select Windows Azure Service Management API.
- Ensure that no value is selected from the Application Permissions menu.
- From the Delegated Permissions drop-down list, select Access Azure Service Management as organiza...
Click Save to generate and display the value for the client secret.
- Click View endpoints to get a list of the App Endpoints.
Copy the value from any of the fields to the clipboard. This is the endpoint used to obtain the tenant ID.
To add owners to the application
- Navigate to Active Directory > Default Directory > Applications > Select the Application
- Click the Owners link from the top of the page.
- Click Add owners
- From the list, select the owners you want to add to the application
To associate the required roles for the application
Navigate to https://portal.azure.com.
Ensure that you enable diagnostics for virtual machines to collect metrics. For more information, see https://blogs.technet.microsoft.com/canitpro/2016/05/31/step-by-step-enable-diagnostics-on-an-azure-virtual-machine.- From the navigation pane, click Subscriptions
From the Subscriptions page, double-click the Subscription ID or click Subscription Name.
To monitor multiple subscriptions, repeat the following steps for each subscription.
- From the Settings pane, click Access control (IAM)
- Click Add, and select one role at a time:
- Owner
- Reader
- Classic Storage Account Contributor
- Storage Account Contributor
- Search the name of the application that you created for integrating with TrueSight Intelligence, and associate it to the selected role.
- Repeat Step 5 and 6 for each of the roles listed in Step 5.
To configure the integration
- Click
> Data Collection > Azure and click Add to integrate and collect data from your Azure cloud instance.
- Use the Azure Configuration section to provide the details required to configure data collection from Azure:
- Type a Name for the Azure instance.
- Type a Description for your reference.
- Set the Polling Frequency (mins) used for polling the Azure instance.
- Type the Tenant Id for your Azure instance.
- Type the Client Id for your Azure user.
- Type the Client Secret for the Azure user.
For more information on getting the values for the Tenant Id, Client Id and Client Secret, see To create credentials to access Azure, earlier in this topic. - Select the TrueSight Intelligence App Name to which the Azure data will be associated or type the name for a new App.
Click Validate and Continue to validate the details and open the Azure Services section to select the Azure services.
Elastic Pool
SQL
Virtual Machine
Click Continue to open the Azure Metrics section.
The [confluence_table-filter] macro is a standalone macro and it cannot be used inline. Click on this message for details.
Alternately, click Start Over if you want to start over with the configuration.- Select one or more metrics, or select all metrics to collect data. Use the search box to filter and display metrics that contain specific keywords.
- Click Save to save the integration.
Alternately, click Start Over if you want to start over with the configuration.