> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Microsoft Azure

> Microsoft Azure, often referred to as Azure, is a cloud computing service operated by Microsoft for application management via Microsoft-managed data centers.

## Creating an Azure connection

Create the connection by using one of the following methods:

* [OAuth](#using-oauth)
* [App Registration](#using-app-registration)

### Using OAuth

This method will not work if your Azure User Type is ***Guest***.

#### Creating your connection

1. In the Blink platform, navigate to the **Connections** page > **Add connection**. A New Connection dialog box opens displaying icons of external service providers available.
2. Select the **Azure** icon. A dialog box with name of the connection and connection methods appear.
3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.
4. Click **Azure** to authenticate using OAuth.
5. Sign in using your credentials.

<Info>
  Need admin approval? please refer to the [Need Admin
  Approval](/docs/integrations/azure/admin-approval) guide.
</Info>

### Using App Registration

To create the connection you need:

* An APP ID
* A client secret
* A subscription ID

#### Obtaining the credentials

1. Log into the [Azure Portal](https://portal.azure.com/#home).

2. Go to the *Microsoft Entra ID* resource.

   <img src="https://mintcdn.com/blinkops-2/LiDiL34PEmIGHJGK/img/ActiveDirectory/azure_active_directory.png?fit=max&auto=format&n=LiDiL34PEmIGHJGK&q=85&s=57246fca73df6e9ce3f39594b5c944bf" alt="Azure Active Directory Resource" width="2760" height="1602" data-path="img/ActiveDirectory/azure_active_directory.png" />

3. In the left-hand menu, click **App registrations**.

   <img src="https://mintcdn.com/blinkops-2/LiDiL34PEmIGHJGK/img/ActiveDirectory/app_registrations.png?fit=max&auto=format&n=LiDiL34PEmIGHJGK&q=85&s=aa4834712de9b57c079d56adb68abc7f" alt="App Registrations" width="495" height="853" data-path="img/ActiveDirectory/app_registrations.png" />

4. Create a new application registration or click on one of your existing applications.

   <img src="https://mintcdn.com/blinkops-2/LiDiL34PEmIGHJGK/img/ActiveDirectory/my_app1.png?fit=max&auto=format&n=LiDiL34PEmIGHJGK&q=85&s=bc11b1db3698cb119e105eaa7e699f6b" alt="My App" width="2628" height="1138" data-path="img/ActiveDirectory/my_app1.png" />

5. Navigate to **Overview** and Copy your **client ID** and **tenant ID**.

   <img src="https://mintcdn.com/blinkops-2/LiDiL34PEmIGHJGK/img/ActiveDirectory/client_tenant.png?fit=max&auto=format&n=LiDiL34PEmIGHJGK&q=85&s=7faa71341ef29fce86e62d436472e630" alt="Client ID & Tenant ID" width="3438" height="1266" data-path="img/ActiveDirectory/client_tenant.png" />

#### Assign the Reader role to your app registration within your subscription

6. Navigate back to [Microsoft Azure Portal home](https://portal.azure.com/#home).

7. Click **Subscriptions**.

   <img src="https://mintcdn.com/blinkops-2/jvPpkxHoVyF7Qykg/img/Azure/Untitled6.png?fit=max&auto=format&n=jvPpkxHoVyF7Qykg&q=85&s=1957712261b0e207983d2a208bba45db" alt="Untitled" width="1138" height="767" data-path="img/Azure/Untitled6.png" />

8. Select a **subscription** to link your app to.

   <img src="https://mintcdn.com/blinkops-2/jvPpkxHoVyF7Qykg/img/Azure/subscriptions_azure.png?fit=max&auto=format&n=jvPpkxHoVyF7Qykg&q=85&s=63e2dee3fc70a1d326811e61d6763a3b" alt="Subscriptions" width="3026" height="1368" data-path="img/Azure/subscriptions_azure.png" />

9. Navigate to **Access control** > **Role assignments** > **Add** > **Add role assignment**.

   <img src="https://mintcdn.com/blinkops-2/jvPpkxHoVyF7Qykg/img/Azure/add_role_azure.png?fit=max&auto=format&n=jvPpkxHoVyF7Qykg&q=85&s=1fd8a1c66f58a7c083a3dfda27fd343b" alt="Subscriptions" width="2926" height="1720" data-path="img/Azure/add_role_azure.png" />

10. Under the **Role** tab, select the `Reader` role.

    <img src="https://mintcdn.com/blinkops-2/jvPpkxHoVyF7Qykg/img/Azure/reader_azure.png?fit=max&auto=format&n=jvPpkxHoVyF7Qykg&q=85&s=7bf68538896b364a159e8b4af33b004a" alt="Subscriptions" width="2220" height="1216" data-path="img/Azure/reader_azure.png" />

11. Under the **Members** tab > **Assign access to** > select **User, group, or service principal**. Click on **Select members**, and select your app.

    <img src="https://mintcdn.com/blinkops-2/jvPpkxHoVyF7Qykg/img/Azure/assign_azure.png?fit=max&auto=format&n=jvPpkxHoVyF7Qykg&q=85&s=ff94e0a826a36b56e952c5b12bb6d4fd" alt="Subscriptions" width="3428" height="1744" data-path="img/Azure/assign_azure.png" />

12. Under **Review + assign** confirm your app has been added and click **Review + assign** on the bottom left edge.

    <img src="https://mintcdn.com/blinkops-2/jvPpkxHoVyF7Qykg/img/Azure/result_azure.png?fit=max&auto=format&n=jvPpkxHoVyF7Qykg&q=85&s=3b43133fe091db624725a35bde00ee19" alt="Subscriptions" width="2606" height="1048" data-path="img/Azure/result_azure.png" />

#### Create and copy a secret

13. Go back to your app's **Overview** page, and create a new **client secret**.

    <img src="https://mintcdn.com/blinkops-2/LiDiL34PEmIGHJGK/img/ActiveDirectory/secret.png?fit=max&auto=format&n=LiDiL34PEmIGHJGK&q=85&s=9d1dfac219ab431a28a8c0d5219b96f1" alt="Client Secret" width="3250" height="1252" data-path="img/ActiveDirectory/secret.png" />

14. Copy the **secret value**.

    <img src="https://mintcdn.com/blinkops-2/LiDiL34PEmIGHJGK/img/ActiveDirectory/secret_value.png?fit=max&auto=format&n=LiDiL34PEmIGHJGK&q=85&s=8c7709585443b3044f2c17e3e9493ed9" alt="Client Secret" width="2672" height="1312" data-path="img/ActiveDirectory/secret_value.png" />

#### Copy the subscription ID

15. Navigate back to [Microsoft Azure Portal home](https://portal.azure.com/#home).

16. Click **Subscriptions**.

    <img src="https://mintcdn.com/blinkops-2/jvPpkxHoVyF7Qykg/img/Azure/Untitled6.png?fit=max&auto=format&n=jvPpkxHoVyF7Qykg&q=85&s=1957712261b0e207983d2a208bba45db" alt="Untitled" width="1138" height="767" data-path="img/Azure/Untitled6.png" />

17. Copy the **subscription ID** of the subscription you want to use.

    <img src="https://mintcdn.com/blinkops-2/jvPpkxHoVyF7Qykg/img/Azure/sub_id_azure.png?fit=max&auto=format&n=jvPpkxHoVyF7Qykg&q=85&s=cb9b8b97baa28519f2cbab69ff1b9d78" alt="Untitled" width="2698" height="948" data-path="img/Azure/sub_id_azure.png" />

#### Creating your connection

1. In the Blink platform, navigate to the **Connections** page > **Add connection**. A New Connection dialog box opens displaying icons of external service providers available.

2. Select the **Azure** icon. A dialog box with name of the connection and connection methods appear.

3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.

4. Select **App Registration** as the method to make the connection.

5. Fill in the parameters:

   * The APP ID
   * The client secret
   * The subscription ID

6. (Optional) Click **Test Connection** to test it.

7. Click **Create connection**. The new connection appears on the **Connections** page.

### Interactive Tutorial Guides

You can also refer to the following tutorial guides for a more in-depth understanding of how to create a Azure connection.

[Creating an Azure Connection](https://demo.arcade.software/St4b039Bw4Y7bI631gZF?embed\&show_copy_link=true)

[Creating an Azure Connection in Blink Ops](https://demo.arcade.software/x5NEAEuBsfNmBnkofLGV?embed\&show_copy_link=true)
