In this guide, we are going to go over how we can setup Turbonomic to manage Microsoft Azure.
- Administrator or Co-Administrator on Azure
- Access to Azure Management portal (manage.windowsazure.com)
- Access to Azure Portal (portal.azure.com)
- Root Access
- You must have root access to be able to modify the config files. If you are deploying Turbonomic using Azure Marketplace then you will need to use the username "azureuser" when deploying the VM to get root access.
- Firewall configured to allow Turbonomic to access Azure resources
- Basic Metrics enabled for the VMs
Generating the Certificates
For this step, we will use the Python Script to automatically generate and configure your Turbonomic instance.
- Download the attached script at the end of this page and upload it to your Turbonomic instance.
- SSH into Turbonomic
- Go to tmp (cd /tmp)
- Create an Azure folder (mkdir Azure)
- Go to the Azure folder (cd Azure)
Running the script
After uploading the script, SSH into your Operations Manager server with root privileges. Then execute the following command: "python Turbo_Azure.pyc"
- Download the generated certificate file from the Operations Manager server to your local machine.|
- The script output shows that the script saved the certificate file to/tmp/Azure/Azure_Turbonomic.cer on your Operations Manager server.
- From your local machine, navigate to your Azure Management Portal.
- Use the portal user interface to upload the certificate file from your local machine
After you upload the certificate make sure the certificate matches the subscription ID you are going to be entering in Turbonomic later on otherwise we will not discover the locations in Azure.
Make a note of the Subscription ID because you will need to enter that in Turbonomic later on.
Creating Web Application
- Login to Microsoft Azure
- Navigate to Azure Active Directory
- Under Manage click on App registrations
- Now click on the Add button
- Now enter the required details in the fields and then click Create
- Name: Web Application name. This can be any name you like. In this example I used Turbonomic.
- Application/Type: Keep that as Web app/API
- Sign-on URL: Enter your Turbonomic URL.
Now we have created the App registration. Make a note of the Application ID.
You will need to make sure the application id is saved because you will need to enter this in Turbonomic.
- Now click on the Settings button.
- Click on Keys
Now you will see a new Window.
- Fill in the required fields to generate a key and then click Save
- Description: Turbonomic
- Expires: Never expires
Make sure you make a note of the Key. You will need this key when you add Azure to Turbonomic.
- Now click on Required Permissions
- Click Add
- Add the required API access and then click on Select and then Done
- Then delegate permission.
- At the end, you should see yours will look like the screenshot below.
- Now click on Endpoints to get the Tenant ID
Only copy the UUID number.
The Web Application is now created and configured on Azure. Now we need to add the Web application as a user in Azure Portal.
- Click on the subscription.
- Click on 'Settings'.
- Click on 'Control Access(IAM)'.
- Click on 'Add' on the top
- Select role as either 'Owner' OR 'Contributor'
- Choose this Web Application that you have for just created for Turbonomic to access resources from your Azure's Subscription.
- Click Select and then 'OK'.
After you assigned the role to the application you should see it as a User in your Users list as shown in the screenshot below.
You should now see the new user.
At the end, you should have the following information to enter in Turbonomic.
- Subscription ID
- Secret Key
- Tenant ID
- App ID
|Tenant ID||Tenant ID|
|Client/App ID||Application ID|
|Client Secret Key||Keys|
Enabling Basic Metrics
Once you have configured your Turbonomic instance to connect to your Azure subscription you will now need to make sure you have Basic Metrics enabled for each VM you want Turbonomic to manage.
- Select the VM you want us to get the stats for
- Click on Diagnostics Settings
- Enable Basic metrics
- Select your storage account
- Click Save