Cloud · 7 min read · Updated November 30, 2026
How to inventory AI agents in AWS, Azure and Google Cloud
The short answer
In the cloud, an AI agent inventory has two halves: the AI services themselves (Bedrock, SageMaker, Azure OpenAI, AI Foundry, Vertex AI) and the workloads whose identities can call them. List both in every account and region, then read each identity’s permissions to see what the agent can reach.
Why the AI service alone isn’t enough
An agent is often a Lambda function, a container or a VM that calls a model. What it can damage depends on its role or managed identity, not on the model. So the inventory has to connect each AI service to the code that uses it, and that code to its permissions.
AWS
- List Bedrock agents in every enabled region with
aws bedrock-agent list-agents, and SageMaker endpoints withaws sagemaker list-endpoints. - Find IAM roles allowed to call
bedrock:InvokeModelorsagemaker:InvokeEndpoint, and the Lambda functions, ECS tasks and EC2 instances that use them. - For each role, check for admin access, wildcard permissions,
iam:PassRoleor secrets access. IAM Access Analyzer helps with unused access.
Azure
- Query Azure Resource Graph for
microsoft.cognitiveservices/accounts(Azure OpenAI and AI Services),microsoft.machinelearningservices/workspacesandmicrosoft.botservice/botservices. - List Function apps, App Service apps and Container Apps with managed identities.
- Check those identities’ role assignments for Owner, Contributor or User Access Administrator at subscription scope.
Google Cloud
- Use Cloud Asset Inventory:
gcloud asset search-all-resources --scope=organizations/ORG_ID --asset-types=aiplatform.googleapis.com/Endpoint,aiplatform.googleapis.com/ReasoningEngine. - List Cloud Run services, Cloud Functions and VMs, and the service accounts they run as.
- Look for Owner or Editor roles, and workloads using the default compute service account.
Doing it automatically
Phantm does this across every account, subscription and project with read-only access, links AI services to the workloads that call them, and explains each identity’s reach in plain language. See AWS, Azure and Google Cloud.
Questions
Do we need to scan every region?
Yes. AI services are regional, and agents created for a test often sit in a region nobody checks.
Keep reading
See every AI agent with access, in minutes.
Connect one tool for free. Read-only, no agents to install, and nothing to change in your environment.