Step 2 — Connect Your Azure Environment
Provide a Service Principal with Reader access to the subscriptions you want to scan.
🔧 How to create a Service Principal with Reader access
az ad sp create-for-rbac \
--name "guardia-ai-reader" \
--role "Reader" \
--scopes /subscriptions/<YOUR_SUB_ID> \
--sdk-auth
🎉 You're all set!
Your Guardia AI subscription is active. Save your API key — it won't be shown again.
✅ Subscription activated successfully. Your API key is below.
Pass this key as the X-API-Key header on every API request.
Quick start:
curl -X POST https://<your-app>.azurecontainerapps.io/scan/dry-run \
-H "X-API-Key: gai-..." \
-H "Content-Type: application/json" \
-d '{"frameworks": ["iso42001", "sr11_7"]}'