Storage Blob Data Reader
Scope: Storage Account that holds the billing exports
The ability to list all blobs in that storage account (Billing - Method A - billing exports)
Microsoft Azure onboarding
Choose automated or manual setup, connect billing data, and configure the Azure access your CloudHiro features need.
Review the setup paths before you begin. The automated script supports EA/MACC agreements only.
Keep the Cloud Shell open until you have copied the parameters and downloaded the PEM file.
Use the automated process or create the service principal manually.
Choose one setup path
In Azure portal, open the Cloud Shell and switch to bash.
Run the python script and follow the instructions.
Once the onboarding script is done, follow the instructions at the end and use the parameters to register to CloudHiro.
Continue to the Register to CloudHiro section below.
The following guide will show you how to set up your account to allow CloudHiro to access it in a secure manner. We will create a Service Principal for CloudHiro.
Use Azure CLI to set the active subscription:
az account set --subscription ""Use Azure CLI to Create the Service Principal:
az ad sp create-for-rbac -n "CloudHiro" --create-certYou should get a response similar to:
Creating a role assignment under the scope of "/subscriptions/"
{
"appId": "XXX",
"displayName": "CloudHiro",
"fileWithCertAndPrivateKey": "/path/to/certificate/tmp123abc_v.pem"
"name": "http://CloudHiro",
"password": "YYY",
"tenant": "ZZZ"
}Please save the response. We will need some of the properties for the registration step.
For manual setup: choose Method A (exports) or Method B (API).
There are two methods:
You control what CloudHiro can see, but billing data is available for up to 3 months in the past.
CloudHiro can access up to 12 months of billing data in the past.
There is an Azure guide for this.
Create a storage account for CloudHiro to be able to read from.
Create billing exports at the highest level possible (billing account preferred). A total of 6 exports should be created:
Daily export - month to date:
One-time export of the last 2 months:
Just grant the"Enrollment reader" permission to the service principal - Add it manually.
For manual setup or permissions not added by the script.
You can use a role-assignment script provided by your CloudHiro contact from the Azure CLI to quickly assign the role to all subscriptions.
If you did not use the script, navigate to Subscriptions → Access Control (IAM) → Role Assignments. Add the following role assignments to the service principal:
For the Storage accounts that hold all the billing exports:
Auto-RI is automated Reservation Management.
Auto-RI setup
These permissions enable management and purchases
Auto-RI is our automated Reservation Management.
Create a new subscription for our purchases. If you already have a subscription for purchases, you can use that one.
Grant Reservations Administrator and Savings plan contributor at the Tenant level. Azure's manual on how to add permissions at the tenant level -use this link
Grant Reservations Purchaser and Savings plan purchaser on the subscription you have created above.
Grant Reservations Reader and Savings plan reader at the tenant level to see all reservations purchased.
Add the data.read permission to the service principal’s app registration.
After creating the service principal, go to the app registration of the service principal created → API permissions → add a permission → APIs my organization uses → log analytics API → add data.read permission.
Keep your Client ID, tenant ID, and certificate ready.
Use the registration link provided by your CloudHiro contact. If using a reseller, use their provided link or add"?partner=[reseller-name]" to the URL.
You will need the following values from the previously saved response:
After registering, confirm the email and login.
In CloudHiro go to System → Settings and update the Azure RI's subscription ID field.
Configure billing export and Azure-RI settings after registration.
Go to system→settings and update the four fields required for Bill CSV Location & the Azure RIs Subscription ID field. Update all at once. If you do not have a subscription ID, you can simply use 123 as a placeholder.
Tick off each item as you complete it. Checkmarks apply to this page visit only.
Contact your CloudHiro representative to validate the connection and walk through your reports.
Scope: Storage Account that holds the billing exports
The ability to list all blobs in that storage account (Billing - Method A - billing exports)
Scope: Billing Account
Ability to read billing data from API (Billing - Method B - API)
Scope: Subscriptions
The ability to list and get all resources and their properties
Scope: Subscriptions
The ability to view metrics and see the usage of log analytics
Scope: Storage Account that holds the billing exports
The ability to view the blobs' content
Scope: App registration
Reach log analytics API and show how much each resource is sending to log analytics workspaces
Scope: Tenant
The ability to view and manage the reservations at the Tenant level, so all reservations will be visible to CloudHiro. The ability to manage RIs correctly by splitting, exchanging, refunding, etc.
Scope: Purchasing Subscription
The ability to calculate the cost of the reservation and to purchase the reservation in that billing subscription
Scope: Tenant
The ability to see all reservations
Scope: Tenant
The ability to view and manage savings plans at the Tenant level
Scope: Purchasing Subscription
The ability to purchase savings plans in the purchasing subscription
Scope: Tenant
The ability to see all savings plans