Azure Cloud
Last updated
Last updated
Copyright ©2024 OX Security. All rights reserved.
Make sure you are logged into your Azure Portal on the correct Tenant you want to connect and that you have a \"User Access Administrator\" Role which is required in order to run this script.
You can either run the script from the Azure Portal (Cloud Shell) or locally on your machine if you have Azure CLI installed.
If running locally you can run the following command to log in: 'az login --tenant $TENANT_ID --use-device-code --output none'.
Click the 'Download Script' button In the OX Connector window to download the script.
Run the downloaded script by executing `./azure-connector.sh -t TENANT_ID -s SUBSCRIPTION_ID` in the terminal. TENANT_ID is the ID of the tenant you want to connect (this parameter is required), SUBSCRIPTION_ID is the ID of the Subscription you want to connect (this parameter is optional, if no SUBSCRIPTION_ID has been entered the default Subscription will be chosen).
Once the script completes, it will output the Client ID and Client Secret that has been created.
In the OX Connector fields below, enter your Tenant ID and the values you got from running the script (Client ID and Client Secret).
Click Connect.
You should receive a message that the connection was successful, if not please repeat the steps above or contact support.
○ Note - if you want to create the required assets manually please follow the instructions below.
Log in to your Azure portal.
Navigate to Microsoft Entra ID → App registrations → New registration.
You should be in the following screen:
In the Register an application screen:
Enter a name for the application, e.g. "ox-security-connector-sp".
Keep the single tenant option selected in the Supported account types.
Click Register.
Note the generated values:
Note down the Application (client) ID and Directory (tenant) ID.
Navigate to Subscriptions → Your subscription → Access control (IAM) → Add → Add role assignment.
In the Add role assignment screen:
Role tab - Click the “Reader” role and then click next.
Members tab - Click “Select Members”, search for the app you created in step 3, click it and then click select so it will be added.
Click “Review + assign”.
Navigate back to App registrations → Your app → Certificates & secrets → New client secret.
Enter a description for the secret and set the expiration for the desired time period (note that if the secret expires you will have to reconnect again in the OX platform) and click “Add”.
Note down the Value of the client secret.
In the Ox Connector, enter the Tenant ID, Client ID, and Client Secret.
Click Connect.
You should receive a message that the connection was successful, if not please repeat the steps above or contact support.