Repository
aidr-azure-api-management
CrowdStrike AIDR + Azure API Management integration.
README
Azure API Management policy for AIDR
This Azure API Management policy integrates with CrowdStrike AIDR to protect LLM
inputs and outputs by validating and optionally transforming content before it
reaches the LLM or is returned to the client.
Prerequisites
-
AIDR: You need an active AIDR account with a valid API token.
-
Named Values: Configure the following named values in the Azure API Management instance:
ai-guard-url: AI Guard URL (e.g.https://api.eu-1.crowdstrike.com/aidr/aiguard).ai-guard-token: AI Guard token.
To configure named values:
- Go to your API Management instance in Azure Portal.
- Navigate to APIs > Named values.
- Create new named values with the names above.
-
Request/Response Format: The policy expects requests and responses to
follow the OpenAI Responses API
format.
Installation
- Copy the contents of
ai-guard-policy.xml - In the Azure API Management instance:
- Navigate to your API operation
- Select the Policy code editor icon next to the Policies heading.
- Replace the contents with the contents of
ai-guard-policy.xml, or merge
them with any existing policies. - Save the policy.