# Connect Azure Billing Account

{% hint style="warning" %}
You willI need permissions within your organization to set up IAM access to your billing data. Contact your security team for assistance.
{% endhint %}

To connect an Azure billing account to Sedai, navigate to **Integrations** and click **Add Integration.** Choose **Billing Account** then **Azure** for your provider.

{% hint style="info" %}
Since you can add multiple Azure billing accounts to Sedai, you will be asked to give your integration a unique nickname — this helps you easily identify it within Sedai.
{% endhint %}

When integrating your billing account, you will need to select your preferred data access. You can select one or both of the following options:

* **Billing API**: Used to create purchasing commitment recommendations
* **Usage + Charges Reports**: Used to provide spending insights and optimization opportunities

To receive optimal cost optimizations, it’s best to integrate both.

You can provide access to your billing account by connecting either [client credentials](#integrate-with-client-credentials) or a [storage access key](#integrate-with-storage-access-key).&#x20;

### Integrate with Client Credentials

To integrate with client credentials, you will need to provide the following information:

<table><thead><tr><th width="212">Required</th><th>Description</th></tr></thead><tbody><tr><td><strong>Subscription ID</strong></td><td>Navigate to the <strong>Subscriptions</strong> page. You will see a list of your subscriptions and their corresponding IDs. </td></tr><tr><td><strong>Tenant ID</strong></td><td>This can be found from the Overview page of the Sedai application you created, or you can search for <strong>Microsoft Entra ID</strong> in your Azure portal and select it. Under <strong>Basic Information</strong>, you will see the Tenant ID.</td></tr><tr><td><strong>Client ID</strong></td><td>This can be found from the Overview page of the Sedai application you created, or from the left-hand navigation panel within Microsoft Entra ID (click <strong>App registrations</strong> or <strong>Enterprise applications,</strong> depending on where your application is registered).</td></tr><tr><td><strong>Client Secret</strong></td><td>This can be found from the Overview page of the Sedai application you created. Click <strong>Certificates &#x26; secrets</strong> on the lefthand panel to see your client secret.</td></tr></tbody></table>

If you selected **Usage + Charge Reports** for data access, you will additionally need to copy the following information:

<table><thead><tr><th width="212">Required</th><th>Description</th></tr></thead><tbody><tr><td><strong>Blob Endpoint</strong></td><td>You can find this in your Azure portal on the <strong>Storage Accounts</strong> page. Choose the desired account, then search for and select <strong>Endpoints</strong> in the left-hand search bar. This will show your Blob Service Endpoint, typically in the format: ‘https://yourstorageaccount.blob.core.windows.net’</td></tr><tr><td><strong>Container Name</strong></td><td>This can be found in your Azure portal within your storage account. Select <strong>Containers</strong> in the left-hand search menu. Click on the container that houses your Usage &#x26; Cost Reports data. The container name is visible in the "Name" column on the container's details page. </td></tr><tr><td><strong>Report Path Prefix</strong> </td><td>This is the Report Path Prefix used within your own application or data management process.</td></tr></tbody></table>

Once all inputs are populated, click the **Test Connection** button to verify your connection works. If the connection fails, please double-check that you've entered the correct information in each field. Cost analysis and savings opportunities will populate in the Cost pages once the necessary data has been gathered (this may take awhile).

***

### Integrate with Storage Access Key

To integrate with a storage access key, you will need to provide the following information:

<table><thead><tr><th width="212">Required</th><th>Description</th></tr></thead><tbody><tr><td><strong>Access Key</strong></td><td>Add an access key for Sedai to access your billing information. You can do this from your Azure portal under <strong>Access Keys</strong>. <a href="https://learn.microsoft.com/en-us/azure/storage/common/storage-account-keys-manage?tabs=azure-portal">Learn more</a> about Azure storage access keys</td></tr><tr><td><strong>Connection String</strong></td><td>This can be found in your Azure portal within your storage account under <strong>Access Keys</strong>.</td></tr></tbody></table>

If you selected **Usage + Charge Reports** for data access, you will additionally need to copy the following information:

<table><thead><tr><th width="212">Required</th><th>Description</th></tr></thead><tbody><tr><td><strong>Container Name</strong></td><td>This can be found in your Azure portal within your storage account. Select <strong>Containers</strong> in the left-hand search menu. Click on the container that houses your Usage &#x26; Cost Reports data. The container name is visible in the "Name" column on the container's details page. </td></tr><tr><td><strong>Report Path Prefix</strong></td><td>This is the Report Path Prefix used within your own application or data management process.</td></tr></tbody></table>

Once all inputs are populated, click the **Test Connection** button to verify your connection works. If the connection fails, please double-check that you've entered the correct information in each field. Cost analysis and savings opportunities will populate in the Cost pages once the necessary data has been gathered (this may take awhile).
