Connecting Azure
To scan your Azure environment, you need to create a Service Principal in Azure Active Directory and provide its credentials to Amnify.
Prerequisites
Before you begin, make sure you have:
- An Azure account with permission to create App Registrations in Azure AD
- At least one Azure subscription you want to scan
- The following values ready:
- Tenant ID — your Azure AD tenant identifier
- Application (Client) ID — from the App Registration
- Client Secret — a secret created for the App Registration
Step 1: Create an App Registration
If you don't already have a Service Principal:
- Go to Azure Portal → Azure Active Directory → App registrations
- Click New registration
- Name it (e.g., "Amnify Security Scanner")
- Set the supported account type to Single tenant
- Click Register
- Note the Application (client) ID and Directory (tenant) ID
Step 2: Create a Client Secret
- In your App Registration, go to Certificates & secrets
- Click New client secret
- Set a description and expiration
- Click Add
- Copy the secret value immediately — it won't be shown again
Step 3: Assign Permissions
Grant the Service Principal Reader access to the subscriptions you want to scan:
- Go to the subscription in Azure Portal
- Navigate to Access control (IAM) → Add role assignment
- Select Reader role
- Assign it to your App Registration
tip
For comprehensive scanning, the Reader role is sufficient. Amnify does not require write access to your Azure resources.
Step 4: Add the Integration in Amnify
- Navigate to Integrations and click Create integration
- Select Azure as the provider
- Fill in:
- Display Name (optional) — a friendly label for this connection
- Tenant ID — your Azure AD tenant ID (GUID format)
- Application ID — the App Registration client ID (GUID format)
- Client Secret — the secret value you copied earlier
- Click Next
- Amnify discovers your subscriptions — toggle on the ones you want to scan
- Click Finish
What Happens Next
Once connected, you can:
- Run a scan against your Azure subscriptions
- Set up a schedule for automatic scanning
- View results on the Dashboard
Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
| No subscriptions discovered | Service Principal lacks Reader access | Assign Reader role on target subscriptions |
| Authentication failed | Incorrect credentials | Verify Tenant ID, App ID, and Client Secret |
| Expired secret | Client Secret has expired | Create a new secret in Azure AD and recreate the integration |