---
title: Configure Storage for Exports (PowerShell)
canonical: "https://cloudmonitor.ai/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports/"
description: "Azure PowerShell automation that provisions the storage account CloudMonitor uses to receive scheduled cost-data exports, with all role assignments included."
---

:::tip
For CloudMonitor to receive cost data, the below is required of customers:

1. Grant **Storage Account Contributor** role to Managed Resource Group.

2. Grant **Storage Blob Data Contributor** role to Synapse Workspace on CMSLND Storage Account.

3. Register **Microsoft.CostManagementExports** Resource Provider on the CMSLND Storage Account.

Proceed for step-by-step instructions.
:::

### Step 1


Navigate the CloudMonitor Managed Application and Click on the **Managed Resource Group.**

![Navigate the CloudMonitor Managed Application and Click on the Managed Resource Group](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-01.jpeg)

### Step 2


Click "Access control (IAM)"

![Click "Access control (IAM)"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-02.jpeg)

### Step 3


Click on "**+Add**" and then select "**Add role assignment**".

![Click on "+Add" and then select "Add role assignment"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-03.jpeg)

### Step 4


Search and select "Storage Account Contributor"

![Search and select "Storage Account Contributor"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-04.jpeg)

### Step 5


Click "Next"

![Click "Next"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-05.jpeg)

### Step 6


Click "Select members"

![Click "Select members"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-06.jpeg)

### Step 7


Select the CloudMonitor Service Principal which was used in the installation. \
In this case we are selecting "CloudMonitor-SP"

![Select the CloudMonitor Service Principal which was used in the installation. \ In this case we are selecting "CloudMonitor-SP"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-07.jpeg)

### Step 8


Click "Select"

![Click "Select"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-08.jpeg)

### Step 9


Click "Review + assign"

![Click "Review + assign"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-09.jpeg)

:::tip
Now you have provided **Storage Account Contributor** role to the Managed Resource Group.

Next Step is to Grant **Storage Blob Data Contributor** role to Synapse Workspace on CMSLND Storage Account
:::

### Step 10


Now go back to your CloudMonitor Managed Resource Group

![Now go back to your CloudMonitor Managed Resource Group](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-10.jpeg)

### Step 11


Search for "**cmslnd**" in the search box and select the storage account which appears.

![Search for "cmslnd" in the search box and select the storage account which appears](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-11.jpeg)

### Step 12


Click "Access Control (IAM)"

![Click "Access Control (IAM)"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-12.jpeg)

### Step 13


Click on "**+Add**" and then select "**Add role assignment**".

![Click on "+Add" and then select "Add role assignment"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-13.jpeg)

### Step 14


Search and Select "Storage Blob Data Contributor"

![Search and Select "Storage Blob Data Contributor"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-14.jpeg)

### Step 15


Click "Next"

![Click "Next"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-15.jpeg)

### Step 16


Select "Managed Identity".

![Select "Managed Identity"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-16.jpeg)

### Step 17


Click "Select members"

![Click "Select members"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-17.jpeg)

### Step 18


Click the "Managed Identity" drop down and select "Synapse workspace".

![Click the "Managed Identity" drop down and select "Synapse workspace"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-18.jpeg)

### Step 19


Click on the "Select" dropdown and select the synapse workspace appearing.

![Click on the "Select" dropdown and select the synapse workspace appearing](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-19.jpeg)

### Step 20


Click "Select"

![Click "Select"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-20.jpeg)

### Step 21


Click "Review + assign"

![Click "Review + assign"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-21.jpeg)

:::tip
Now you have provided **Storage Blob Data Contributor** role to Synapse Workspace on CMSLND Storage Account

Next Step is to register **Microsoft.CostManagementExports** Resource Provider on the CMSLND Storage Account.
:::

### Step 22


Navigate to the CloudMonitor Managed Application and select the Subscription ID.

![Navigate to the CloudMonitor Managed Application and select the Subscription ID](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-22.jpeg)

### Step 23


Select "Resource providers"

![Select "Resource providers"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-23.jpeg)

### Step 24


Search for "Microsoft.CostManagementExports" and select it.

![Search for "Microsoft.CostManagementExports" and select it](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-24.jpeg)

### Step 25


Then, Search for "Microsoft.CognitiveServices" and select it.

![Then, Search for "Microsoft.CognitiveServices" and select it](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-25.jpeg)

### Step 26


Click "Register"

![Click "Register"](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-26.jpeg)

### Step 27


You will receive a notification for successfully registering the Resource Provider.

![You will receive a notification for successfully registering the Resource Provider](../../../../assets/docs/installing-cloudmonitor/powershell-configuring-storage-cloudmonitor-schedule-exports-27.jpeg)

:::tip
Now you have registered **Microsoft.CostManagementExports** Resource Provider on the CMSLND Storage Account.\
\
Next Step: [Step 4: Raise a Support Ticket : CloudMonitor Helpdesk](https://cloudmonitor.ai/docs/installing-cloudmonitor/step-4-raise-support-ticket/)
:::
