August 2026 release is live Read More

Step 2: Execute the script from the Azure Cloud Shell.

Steps to Execute the Script from Azure Cloud Shell

  1. Copy the script and Execute the command provided below from within the Azure Cloud Shell terminal window, which is shown at the bottom part of the Azure Console launched in the earlier step.

Azure Cloud Shell onboarding entry point
Azure Cloud Shell onboarding entry point
  1. It will ask to select the environment (Select as per your choice)

Select the Azure environment in Cloud Shell
Select the Azure environment in Cloud Shell
  1. Paste in Cloud Shell Editor and click Enter

To onboard a subscription as a billing account, append the command with --sub as a suffix.

Run the onboarding command in Azure Cloud Shell
Run the onboarding command in Azure Cloud Shell
  1. It will ask for the account type, select & click enter. (Follow this link to know your account type https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/view-all-accounts#check-the-type-of-your-account )

Select the Azure account type
Select the Azure account type
  1. Enter 'y' to confirm account & subscription

  1. Script will run automatically

Confirm the account and run the onboarding script
Confirm the account and run the onboarding script

Ignore Bad request syntax or unsupported method retrying messages.

  1. Click on the Done button in Mavvrik, after the script running is successfully completed.

Mark the Cloud Shell setup as complete in Mavvrik
Mark the Cloud Shell setup as complete in Mavvrik
  1. The onboarded Enrollment Account will be displayed with the list of All linked Subscription accounts.

Onboarded enrollment account and linked subscriptions
Onboarded enrollment account and linked subscriptions
  1. Go to the Menu option and Click Cost to view the cost data.

  1. Data will display immediately after successful ingestion.

Azure cost data after successful ingestion
Azure cost data after successful ingestion