# First-run Config

## Find Bsure Insights web app URL

1. When deployment is done select **Go to resource.**<br>

   <figure><img src="/files/jOkOkdgEH54aAsM7y971" alt=""><figcaption></figcaption></figure>
2. Select the application

   <figure><img src="/files/hCKQpQolJv7rVQPRow0j" alt=""><figcaption></figcaption></figure>
3. Select the **Managed resource group.**

   <figure><img src="/files/0E7rggikFaLkKoHoWCft" alt=""><figcaption></figcaption></figure>
4. Open the **Container App** called **customer-app-\<random string>.**<br>

   <figure><img src="/files/q6aJUK91w8RD92AOEDUg" alt=""><figcaption></figcaption></figure>
5. Open the **Application Url.**<br>

   <figure><img src="/files/p6pLezxgMojcbj0VRfjI" alt=""><figcaption></figcaption></figure>
6. Wait until configuration page is loaded.<br>

   <figure><img src="/files/SDzufUOOcygiPhW9rOW9" alt=""><figcaption><p>Configuration Wizard start page</p></figcaption></figure>

## Grant permissions

In this part you will give Bsure Insights permissions to read data from your tenant through Microsoft Graph.&#x20;

<figure><img src="/files/SDzufUOOcygiPhW9rOW9" alt=""><figcaption><p>Configuration Wizard start page</p></figcaption></figure>

1. (Optional) Select **Show Script** to read the script.
2. Select **Copy Script** to add the script to your clipboard.
3. Select **Launch Azure Cloud Shell**
   * Opens in a new tab
   * Make sure to sign in with a user with **Global Administrator** role.
   * If prompted, select a subscription to run the cloud shell from
4. Right-click and paste the script in the shell window.<br>

   <div align="center"><figure><img src="/files/R01RjvPXh7l0BRIEovjv" alt=""><figcaption></figcaption></figure></div>
5. Copy the **device code**, go to the device login page and authenticate with your Global Administrator account.

   <figure><img src="/files/oKcdqo8dQOr1ylXRyYJn" alt=""><figcaption></figcaption></figure>
6. Paste the device code and select Next.<br>

   <figure><img src="/files/wlZfOLP1xzIdofAJZGHT" alt=""><figcaption></figcaption></figure>
7. Sign-in with your Global Administor account<br>

   <figure><img src="/files/i0iqQSJG3Gs5v6Eg6Kq3" alt=""><figcaption></figcaption></figure>
8. Select Continue.<br>

   <figure><img src="/files/hvkzOzaVr8GJekHHxC3s" alt=""><figcaption></figcaption></figure>
9. Close the windows/tab and return to the cloud shell.<br>

   <figure><img src="/files/VVwQsEoZ5c4rtIC4zro8" alt=""><figcaption></figcaption></figure>
10. Wait for the script to finish. You can watch the log output while it is running.<br>

    <figure><img src="/files/8ruv0eDzAeQAAf4H9XrZ" alt=""><figcaption></figcaption></figure>
11. Go back to Bsure app configuration tab in your browser, and select **Continue.** (You can close the Azure Cloud Shell tab)
12. If prompted, sign in with your Global Administrator user.

## Create Azure SQL database

1. Select **Let's start.**<br>

   <div align="center"><figure><img src="/files/XhhqcnjcypktlbZfX1Hr" alt=""><figcaption></figcaption></figure></div>
2. Select **Configure** to set up the Azure SQL Database<br>

   <div align="center"><figure><img src="/files/FrAM6oFcdYsG2x22K24K" alt=""><figcaption></figcaption></figure></div>

   This might take a few minutes...<br>

   <div align="center"><figure><img src="/files/mNR7cirPYNXOaY0VNYjY" alt=""><figcaption></figcaption></figure></div>
3. When done, select **Next step.**<br>

   <div align="center"><figure><img src="/files/TvNOeIqEv9XLi2iXp7oI" alt=""><figcaption></figcaption></figure></div>

## Set Retention Settings

1. Configure **Retention Settings** and select **Save.**

   * **USER STORAGE TIME**: How long Bsure Insights will store information about users.
   * **SIGN-IN DATA STORAGE TIME**: How long Bsure Insights will store information from sign-in logs.

   <div align="center"><figure><img src="/files/GTXFeTAPfZLlRJYwFH4T" alt=""><figcaption></figcaption></figure></div>
2. Select **Next step.**\ <br>

   <div align="center"><figure><img src="/files/9g5Tfk7AWgoZMEtJzft9" alt=""><figcaption></figcaption></figure></div>

## Create Power BI workspace

1. Create your Power BI Workspace
   * Select **Launch Power BI to verify** to check that you have access to Power BI. In Power BI, look at your profile (top right) and verify you have minimum a Power BI Pro license

     <div align="center"><figure><img src="/files/NKdJhFuOAQ9USX06ttbJ" alt=""><figcaption></figcaption></figure></div>
   * Return to the Bsure app tab in your browser and select **Create Power BI Workspace.**<br>

     <figure><img src="/files/f65n95t2tnAWXroztYly" alt=""><figcaption></figcaption></figure>
   * This will take up to 10 minutes - be patient...

     <div align="center"><figure><img src="/files/luHDHnXHak7PChTMM26L" alt=""><figcaption></figcaption></figure></div>
   * When it is done, go to the application<br>

     <figure><img src="/files/Fio8uqbjEZg7wh271TWb" alt=""><figcaption></figcaption></figure>

## Data collection starts automatically

Data collection will start automatically. How long it will take depends on your organization's size. You can follow the status on the Bsure Insights system status landing page.&#x20;

When both Power BI and Data Collector are in sync, you can start exploring our reports.&#x20;

<figure><img src="/files/v8gJ4kIqOJS8m4x996eM" alt=""><figcaption></figcaption></figure>

## Next steps: Add users and set your subscription prices

After installation and data collection is complete, follow these guides to add users to Bsure, and set your own subscription prices:

* Follow our [User management](/user-guides/customer-settings/user-management.md) guide to add other users to Bsure.
* Follow our [Subscriptions](/user-guides/customer-settings/subscriptions.md) guide to add your own license prices.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bsure.io/getting-started/installation-guide/first-run-config.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
