Set Up an Azure Cloud Connection¶
To run an Azure Cloud Pentest, you'll first need to connect NodeZero to your Azure tenant and subscriptions.
Navigate to Cloud Connections¶
In the NodeZero Portal, navigate to Pentests > Cloud Connections. On your first visit, you'll see the empty state with a + Connection button.
Create an Azure Connection¶
Open the Create Form¶
Click + Connection and select Azure from the modal.
Add Tenant and Subscriptions¶
Fill in your Tenant Name and Tenant ID. Then add the subscriptions you want to authorize. You have two options:
Add IDs — enter one or more Subscription IDs directly. Click + Add Another Subscription to add more.
Upload CSV — switch to the Upload CSV tab and drag-and-drop or browse to a CSV file containing your subscription IDs.
Info
Your CSV must have a column header named id. Each row should contain one subscription ID.
Finding your Subscription IDs¶
Use Azure Resource Graph Explorer to export all your subscription IDs as a CSV. Run the following query, then click Download as CSV in the Results tab.
ResourceContainers
| where type == "microsoft.resources/subscriptions"
| project id = subscriptionId
Once uploaded, the form shows the file name, size, and number of subscriptions detected.
Once you've filled in the form, click Create Connection. You'll be redirected to Azure to grant admin consent.
Grant Admin Consent¶
Review the permissions requested by Horizon3 Cloud Connector and click Accept.
Why does it say 'unverified'?
The Horizon3 Cloud Connector app currently shows as unverified in Microsoft's consent screen. Horizon3 is enrolled in the Microsoft Partner Network (MPN) and the verified publisher badge will appear once our MPN ID is confirmed by Microsoft.
If the consent prompt doesn't appear and you see an error instead, see Admin consent shows AADSTS700016 in the Troubleshooting guide. If you see a Microsoft error page after clicking Accept, see Admin consent returns a Microsoft error page.
After accepting, you'll be redirected back to NodeZero.
Create the Custom Role¶
NodeZero presents a PowerShell script that creates the "Horizon3 Cloud Connector Custom Role" in your subscriptions. Open Azure Cloud Shell, paste the script, and run it.
Setting up Azure Cloud Shell for the First Time¶
When you open Cloud Shell, select PowerShell if prompted to choose a shell type.
If this is your first time using Cloud Shell, you'll also be asked to select a subscription to get started. Choose any subscription and click Apply.
Once the script finishes, return to NodeZero and click Verify.
Verify the Connection¶
NodeZero will check that the role was created and that the managed identity can authenticate. Keep the window open while verification runs.
Once complete, the status updates to Connected. You can now click Run Pentest or Add Another Tenant if you need to set up additional connections.
What's Next¶
Your connection now appears on the Cloud Connections page, showing the tenant name, Azure Tenant ID, authorization timestamp, and a table of authorized subscriptions.
From here you can:
- Run an Azure Cloud Pentest
- Manage your Azure connection — add or remove subscriptions, verify, repair, or delete the connection











