---
title: Create the Synapse B2B user (PowerShell)
canonical: "https://cloudmonitor.ai/docs/installing-cloudmonitor/powershell-how-create-cloudmonitor-synapse-b2b-user/"
description: "Azure PowerShell automation for Step 2 Part 1: invite synapse@cloudmonitor.ai as a Guest B2B user in your Azure AD tenant so the analytics engine can connect."
---

:::tip
The next steps will cover how to add **synapse@cloudmonitor.ai** as a **Guest B2B User** in your tenant.

We will also be assigning the "Reader Role" at BillingAccount/BillingProfile scope to the new User too.
:::

### Step 1

Please find the "1_AddSynapseB2BUser.ps1" from the ConfigureB2BSynapseCloudMonitorUser folder and execute it in the PowerShell.

Please provide the necessary inputs when required.

### Step 2

If the final output looks like below,\
\
**Successfully invited the CloudMonitor Synapse User (synapse@cloudmonitor.ai) as a Guest B2B user to your tenancy.**

It means the user creation is successful.

:::tip
The next steps will cover how to assign the "Reader Role" at BillingAccount/BillingProfile scope to the CloudMonitor Synapse B2B User.
:::

### Step 3


After the successful execution of PowerShell script, Please move to the [Azure Portal](//portal.azure.com) and follow the next steps,

\
Open the "Cost Management + Billing" section in the Azure Portal. Note: This is not at the Subscription level and you will need to be a Global Azure Admin to do this.

![\ Open the "Cost Management + Billing" section in the Azure Portal](../../../../assets/docs/installing-cloudmonitor/powershell-how-create-cloudmonitor-synapse-b2b-user-01.jpeg)

### Step 4


Select the Billing scope you want to grant a Billing account reader role to.

![Select the Billing scope you want to grant a Billing account reader role to](../../../../assets/docs/installing-cloudmonitor/powershell-how-create-cloudmonitor-synapse-b2b-user-02.jpeg)

### Step 5


Click "Access control (IAM)" and click " + Add"

![Click "Access control (IAM)" and click " + Add"](../../../../assets/docs/installing-cloudmonitor/powershell-how-create-cloudmonitor-synapse-b2b-user-03.jpeg)

### Step 6


Choose "Billing account reader". This does not have any permissions to write any data.

![Choose "Billing account reader". This does not have any permissions to write any data](../../../../assets/docs/installing-cloudmonitor/powershell-how-create-cloudmonitor-synapse-b2b-user-04.jpeg)

### Step 7


Lastly, select the B2B Synapse User you added for CloudMonitor and click on Add.

![Lastly, select the B2B Synapse User you added for CloudMonitor and click on Add](../../../../assets/docs/installing-cloudmonitor/powershell-how-create-cloudmonitor-synapse-b2b-user-05.jpeg)

:::tip
You may now proceed with the next steps to [Configure CloudMonitor Synapse : CloudMonitor Helpdesk](https://cloudmonitor.ai/docs/installing-cloudmonitor/powershell-configure-cloudmonitor-synapse/)
:::
