Package: Invicti AppSec Core (on-demand)
Azure API Management
Invicti AppSec Core can connect to Azure API Management to automatically import Swagger 2 and OpenAPI 3 specifications into your API catalog.
This document explains how to register an app in Azure, configure the required permissions, and set up the Azure API Management source in Invicti AppSec Core.
Why this matters
Azure API Management already governs which APIs your organization exposes. Connecting it to Invicti AppSec Core brings those APIs directly into your security workflow, so you don't have to maintain a separate inventory or manually upload specifications every time something changes.
Prerequisites
Before you begin, make sure you have a Microsoft Azure account with permission to register apps and configure credentials.
Step 1: Register an app in Azure
- In the Azure Portal, go to Azure Active Directory > App registrations.
- Click + New registration.
- Enter a name for the app.
- Select the supported account types.
- Click Register.
After registration, note the Application (client) ID and Directory (tenant) ID from the app's Overview page. You'll need these in Step 5.
Step 2: Assign a role to the app
-
In the Azure Portal, go to your API Management service.
-
Select Access control (IAM).
-
Click + Add > Add role assignment.
-
Assign a custom role that grants the following permission:
Microsoft.ApiManagement/service/*/read -
Select the app you registered in Step 1 as the member, then save.
Step 3: Add API permissions
- In the app registration, go to API permissions.
- Click + Add a permission.
- Select Azure Service Management.
- Enable the
user_impersonationscope. - Click Add permissions.
Step 4: Create a client secret
- In the app registration, go to Certificates & secrets.
- Click + New client secret.
- Enter a description and set an expiration period.
- Click Add and copy the secret value immediately. You can't retrieve it after leaving the page.
Step 5: Configure Azure API Management in Invicti AppSec Core
- Select Discovery > API sources from the left-side menu.
- Click Add source.
- Select the Azure API Management source type card.
- Click Continue.
- Enter the Application (client) ID, Directory (tenant) ID, and client secret.
- Click Authenticate and save.
Step 6: Synchronize
To run an immediate sync, click the sync icon next to the source on the API sources page.
Invicti AppSec Core automatically synchronizes with Azure API Management every 24 hours.
Need help?
Invicti Support team is ready to provide you with technical help. Go to Help Center