Connect Microsoft Azure
To configure the Cloudability credentials to access Azure cost management data by exporting a CSV file from the Azure Portal. The CSV file captures cost and usage data and saves it to Azure storage. The user is then provided the Cloudability access to that storage to read the data.
-
Set up cost management
Set up CSV formatted billing data to be automatically exported to Azure storage on a daily basis.
- Learn about Connecting with Azure (MCA) - Cost Management Exports
- Learn about Connecting with Azure (EA) - Cost Management Exports
-
Learn about Connecting with Azure (MCA) - Cost Details API
-
Learn about Connecting with Azure (EA) - Cost Details API
- Enable rightsizing and RI planning
Provide Cloudability with information about your billing data setup from your Azure Portal.
- Learn about Setup Azure Rightsizing and RI Planning
- Enable collection of memory metrics
Provide Cloudability read-only access to the cost & usage data on your Azure storage.
-
- Learn about Setup Azure Memory Metrics Collection
An example of the type of information Cloudability requires from the Azure Portal is listed below;
- tenant id
- subscription id
- resource group name
- storage account name
- container name
- directory name
- cost export name
- amortized export name
Before you start
Before you begin to set up the Cloudability credentials, confirm that you are a Cloudability Administrator and meet the following requirements.
Ensure that you have one of the following Azure Active Directory roles in your organization:
- Global Administrator
- Application Developer
- Cloud Application Administrator
- Azure Savings Plan Reader (For Cloudability Premium customers)
For the Azure portal, you must have permissions provided by one of these Azure scopes to create the billing data export.
Learn about https://docs.microsoft.com/en-us/azure/cost-management-billing/costs/understand-work-scopes
- Owner (can view/manage everything, including cost configuration)
- Contributor (can view/manage everything, including cost configuration, excluding access control)
- Cost Management Contributor (can view/manage cost configuration)
In order to successfully apply the “Enrollment Reader” permission to the IAM role (required for advanced features such as Savings Plans and Reserved Instance Planning), the user account running the power shell script must be at least of “Enrollment Writer” role them self under EA.
For Azure Storage accounts:
- You must have "write" permissions to change the configured storage account (regardless of permissions on the export).
- The storage account must be configured for blob or file storage. If possible, Cloudability you must create a new storage account dedicated to cost management data.
For Azure Savings Plan Reader role:
If you have savings plans for your Azure workloads, enable access for Turbonomic to these savings plans by assigning the built-in Savings Plan Reader role to Cloudability's service principal.
Before performing the steps below, the Cloudability application's service principal must already exist in the Azure tenant(s) where the Savings Plan Reader role will be assigned. Follow the steps in Connecting with Azure (EA) - Cost Management Exports, Connecting with Azure (EA) - Cost Details API , Connecting with Azure (MCA) - Cost Management Exports, Connecting with Azure (MCA) - Cost Details API , and/or Set up Azure Rightsizing and Reserved Instance Planning sections first to create the Cloudability service principal in the tenant(s).
-
Sign in to the Azure portal with a user account that has permissions to assign roles to savings plans https://portal.azure.com .
Be sure that you are working in the correct Azure directory where you will assign the Savings Plan Reader role.
-
Browse to the Savings plans page: https://portal.azure.com/#view/Microsoft_Azure_Reservations/ReservationsBrowseBlade/productType/SavingsPlan
-
In the Savings Plans page, choose Role Assignment .
-
In the Access Control page, choose Add Role Assignment .
-
In the Add Role Assignment page:
-
Choose the Role tab.
-
In the search bar, type Savings Plan Reader as your search keyword.
-
Choose Savings Plan Reader from the list of built-in roles that display and then choose Next.
-
In the Members tab, choose + Select members .
-
Search for the CloudabilityUtilizationDataCollector service principal.
-
Add the service principal. Optionally, specify a description for this role assignment and then choose Next .
-
In the Review + Assign tab, review your settings and then choose Review + Assign .
-
Upon upgrading to Cloudability Premium , the Billing Reports and Advanced Reports status for each of the Azure (EA or MCA) accounts in the listing page will not change. However, your Cloudability admin needs to edit each subscription account following the steps enabling Cloudability share these accounts with Turbonomic .
This page requires admin permissions to access it.
-
In Cloudability , navigate to Settings > Vendor Credentials > Azure .
-
Hover your cursor over the icon of the account for which you want to download the template. Additional options are displayed.
-
Select the
icon to open Edit a Credential. -
The Edit a Credential panel opens.
-
Click Optimize Resources in the toggle button.
-
Generate setup script.
-
Update the permissions by executing the script.
-
Re-verify the account.
There are additional Turbonomic permissions that gets added to basic (Billing Data), advanced (Util- ization Data) and Optimize Resources (execute actions). Once your account is verified, the list of permissions can be viewed by choosing the Details option on each Azure account listed under Cloudability.
Credentials Status
Cloudability Vendor credential screen displays both account status from:
- Cloudability
- Turbonomic
Once the latest templates are run the account status should be in sync between Cloudability and Turbonomic. For details on the account status please check account details section.
