Cloudability Set up Cost Management for Cloudability Azure Microsoft Customer Agreement (MCA) customers
Cloudability recommends using Azure exports for credentialing Microsoft Azure.
Microsoft Azure also recommends using exports as a best practice for large datasets (more than 2 GB month-to-month).
Cloudability Credential Setup for Azure MCA Customers
- Creates a CSV file for actual cost data.
- Creates a CSV file for amortized cost data.
- Creates a custom IAM role called CloudabilityCostDataReader for getting the cost and usage data
using the permissions as mentioned below:
- Azure built in Storage Blob Data Reader that includes:
- Microsoft.Storage/storageAccounts/blobServices/containers/read
- Azure built in Storage Blob Data Reader that includes:
- Microsoft.Storage/storage.Accounts/blobServices/generateUserDelegationKey/action
- Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read
- Microsoft.Authorization/roleAssignments/read
- Enrollment Reader permission to access the Azure data
- Adds Cloudability’s Service Principal “CloudabilityUtilizationDataCollector” and assigns “CloudabilityCostDataReader” role to it
- Adds Cloudability ’s Billing Account Reader Service Provider to your MCA. This is a read-only role and enables Cloudability to view products purchased for your account, such as Azure Reservation purchases, Azure Marketplace purchases, and information like Azure product price sheets and taxes.
Both CSV formatted files are required by the� Cloudability platform and must be present in the storage account used to collect cost management data.
Before you begin the steps below, ensure you log in to the Azure portal and have access to your organization's billing account for your MCA . For example:
- From the Azure Portal, search for Cost Management + Billing and select it from the
list to open the Billing Scope page. For example:
- From the Cost Management + Billing page, ensure you have selected the correct Billing Scope. If you have multiple, select the scope with the majority of your cloud spend.
- From the Cost Management + Billing console, select Exports
from the navigation panel to open the Azure export utility.
- Select Create to open the export page for creating a new CSV export. Note:
We don't support FOCUS spec data ingestion yet.
-
Create a new export for Actual cost:
- Type of data: Cost and Usage details (actual)
- Export name: Customer Defined Unique File Name
- Dataset version: 2021-10-01
- Frequency: Daily export of month to date costs
- Export Description: Optional
- Click Add
- Select Destination
- Choose the Format as CSV .
- Choose the Compression type as None .
- Storage type: Azure blob storage
- Destination and storage: Select to use an existing subscription and resource group or create new
- Subscription: Select destination subscription
- Storage account: Select storage account
- Container: Enter a valid container name meeting your naming standards
- Directory path: Enter a valid directory name meeting your naming standards
- File partitioning: Leave as is
- Overwrite data: Leave as is
-
Click Review and Create
-
Click Create
For example:
- Create a new export for an Amortized Cost report:
- Type of data: Cost and Usage details (amortized)
- Export name: Customer Defined Unique File Name
- Dataset version: 2021-10-01
- Frequency: Daily export of month to date costs
- Export Description: Optional
Both CSV formatted files are required by the� Cloudability platform and must be present in the storage account used to collect cost management data.
Ensure the below setting are applied for the Storage account configured for exports:
Network Access: Enable public access from all networks
Encryption Type: Microsoft managed keys (MMK)
Enable infrastructure encryption: Disabled
Gather billing data information for your� Cloudability credential setup
After you've created a billing data export, you need some information from your Azure Portal for the� Cloudability credential setup.
What information does� Cloudability need?
You can find the list of all properties� Cloudability in the Azure Portal Cost Management console:
Property Name� | How to find it� |
---|---|
Billing account id |
"?> |
Tenant id � |
Search for Microsoft Entra ID and select it to load the Active Directory Overview page. Copy and save the tenant id, as in the given examples:
|
Subscription ID Storage account name Container name � Directory name Cost export name Amortized export name |
|
Resource group name |
|
Configure your� Cloudability credential using the billing data information
Once you’ve gathered the information listed in the table, you can enter it into Cloudability to update your MCA credential.
- In Cloudability , navigate to Settings >
Vendor Credentials > Add Datasource > AZURE . The Add AZURE Account
panel opens.
Or
In Cloudability , navigate to Settings > Vendor Credentials > AZURE . Select Add a Credential . The Add a Credential panel opens.
- Select Microsoft Customer Agreement (MCA) .
- Enter the information gathered from your Azure Portal into the corresponding fields.
- Select Generate Setup Script to download the new script file.
- Select Close . You will return to verify the changes later.
Grant� Cloudability access from the Azure Portal
The next step is to grant� Cloudability access to read the cost and usage data from your Azure storage by running the setup script in your Azure Portal Cloud Shell.
These commands will create and enable the CloudabilityCostDataReader role for� Cloudability to access the storage account that contains the exported CSV files.
- Log in to the Azure Portal and switch to the required tenant
(the directory that is the at highest level in Azure for the target enrollment). - From the Azure Portal, launch the Cloud Shell and select PowerShell as the scripting language.
- From the Azure Portal, launch the Cloud Shell and select PowerShell as the scripting language.
- After the Cloud Shell has initialized, select Upload from the Cloud Shell terminal
menu.
- Upload the setup script file provided by� Cloudability.
- Run the script by typing:
>: ./<YOUR_SCRIPT_NAME_HERE>.ps1
- Return to your account billing scope in the Azure Portal and open the Cost Management + Billing console.
- Navigate to Access Control (IAM) .
- From the Access Control page, select Add , then select the Billing
account reader role from the panel.
- Search for Cloudability 's SP
CloudabilityUtilizationDataCollector by typing in the first few letters, then select it from
the search results.
- Select Save .
Confirm your credentials are set
- Return to the� Cloudability credentials Azure page at Settings > Vendor Credentials> AZURE .
- Select the edit icon next to your MCA credential.
- Select Verify Credential in the panel that opens; your Azure credential has a green checkbox under the Billing Reports column after it has been validated.
Click here to Set up Azure Rightsizing and Reserved Instance Planning