How to build one AI inventory across AWS, Azure and Google Cloud
Would rather we looked for you? We run a free one-time audit scan of one cloud account and go through the results with you. No charge, no commitment.
Free audit scanMonday, 09:15, a hypothetical question with a familiar shape. "How many AI models do we run, who owns them, and what can they reach?" Nobody has the number. AI comes into each cloud through at least three doors: hosted models you call by API, endpoints you deploy yourself, and agents that run with their own identity. This page gives you the commands to list all three on AWS, Azure and Google Cloud, and a single table to merge them into.
To build one AI inventory across AWS, Azure and Google Cloud, list three kinds of resource in each cloud. First, hosted models your accounts call: Bedrock model IDs from CloudTrail, Azure OpenAI and Foundry deployments, and Gemini calls on Google's AI platform. Second, endpoints you run: SageMaker endpoints, Azure Machine Learning online endpoints and Vertex AI endpoints. Third, agents: Bedrock agents, AgentCore runtimes and Agent Engine (reasoning engines). Then normalise them into one table with five fields: owner, data reached, guardrail attached, run-as identity and public exposure.
We checked every command and field below against the provider's own CLI and API reference on 28 November 2026, and link each one. Google now calls Vertex AI "Gemini Enterprise Agent Platform"; the gcloud ai commands and API names are unchanged. Onam sells a platform that builds this inventory; our section is labelled.
The three doors, per cloud
| Door | AWS | Azure | Google Cloud |
|---|---|---|---|
| Hosted models you call | Bedrock foundation models, custom and imported models, provisioned throughput, inference profiles | Azure OpenAI and Foundry (AIServices) accounts and their model deployments | Gemini and partner models called by API, Model Garden endpoints |
| Endpoints you run | SageMaker endpoints and their models | Azure Machine Learning online endpoints | Vertex AI endpoints and models |
| Agents | Bedrock agents, AgentCore runtimes | Foundry Agent Service agents | Agent Engine (now Agent Runtime) reasoning engines |
| Notebooks | SageMaker notebook instances and domains | Azure Machine Learning workspaces | Vertex AI Workbench instances |
Google's renames are listed on its name changes page: for example, Vertex AI Agent Engine became "Agent Runtime on Gemini Enterprise Agent Platform".
AWS: Bedrock, SageMaker and AgentCore
Hosted foundation models are not resources in your account, so a resource list will not show which ones you use. CloudTrail will. AWS logs Bedrock InvokeModel, InvokeModelWithResponseStream, Converse and ConverseStream as management events (AWS: Bedrock and CloudTrail), and lookup-events searches management events from the last 90 days (AWS CLI: lookup-events).
REGION=us-east-1
# Which models were called in the last 90 days, and how often
# (repeat with Converse, InvokeModelWithResponseStream, ConverseStream)
aws cloudtrail lookup-events --region $REGION \
--lookup-attributes AttributeKey=EventName,AttributeValue=InvokeModel \
--max-items 1000 --query "Events[].CloudTrailEvent" --output json \
| jq -r '.[] | fromjson | .requestParameters.modelId' | sort | uniq -c | sort -rn
# Models you own or pay for capacity on
aws bedrock list-custom-models --region $REGION
aws bedrock list-imported-models --region $REGION
aws bedrock list-provisioned-model-throughputs --region $REGION
aws bedrock list-inference-profiles --type-equals APPLICATION --region $REGION
# Agents, with the guardrail each one carries
aws bedrock-agent list-agents --region $REGION \
--query "agentSummaries[].{agent:agentName,id:agentId,guardrail:guardrailConfiguration.guardrailIdentifier}" --output table
aws bedrock-agent get-agent --agent-id <agent-id> --region $REGION \
--query "agent.{role:agentResourceRoleArn,model:foundationModel}"
aws bedrock-agent list-knowledge-bases --region $REGION
# AgentCore runtimes: run-as role and network mode (PUBLIC or VPC)
aws bedrock-agentcore-control list-agent-runtimes --region $REGION
aws bedrock-agentcore-control get-agent-runtime --agent-runtime-id <runtime-id> --region $REGION \
--query "{role:roleArn,network:networkConfiguration.networkMode}"
# SageMaker endpoints, then the model and execution role behind each
aws sagemaker list-endpoints --region $REGION --query "Endpoints[].EndpointName"
aws sagemaker describe-endpoint --endpoint-name <endpoint-name> --region $REGION \
--query "EndpointConfigName"
aws sagemaker describe-endpoint-config --endpoint-config-name <config-name> --region $REGION \
--query "ProductionVariants[].ModelName"
aws sagemaker describe-model --model-name <model-name> --region $REGION \
--query "{role:ExecutionRoleArn,vpc:VpcConfig}"
aws sagemaker list-notebook-instances --region $REGIONCheck the modelId path against one raw event before you trust the count. Command references: bedrock (including list-inference-profiles, where APPLICATION means a profile "created by a user"), bedrock-agent and get-agent, bedrock-agentcore-control and get-agent-runtime, sagemaker and describe-model. Bedrock agent invocations (InvokeAgent) are data events, so they appear in CloudTrail only if you log data events for agent aliases.
Azure: Azure OpenAI, Foundry and Azure Machine Learning
Microsoft now calls Azure AI services "Foundry Tools", and the multi-service Foundry resource has the kind AIServices (Microsoft Learn: Foundry resource). A standalone Azure OpenAI resource has the kind OpenAI (Microsoft Learn: create a resource).
# Every AI account across the subscriptions you can read, with exposure and identity
az graph query --first 1000 -q "resources
| where type =~ 'microsoft.cognitiveservices/accounts'
| project name, kind, resourceGroup, subscriptionId, location,
publicNetworkAccess=properties.publicNetworkAccess,
disableLocalAuth=properties.disableLocalAuth,
identity=identity.type, owner=tags.owner"
# Model deployments in one account, with the guardrail (RAI policy) on each
az cognitiveservices account deployment list -g <resource-group> -n <account> \
--query "[].{deployment:name,model:properties.model.name,version:properties.model.version,guardrail:properties.raiPolicyName}" -o table
# Azure Machine Learning workspaces, then online endpoints in each
az ml workspace list --query "[].{name:name,rg:resource_group}" -o table
az ml online-endpoint list --resource-group <resource-group> --workspace-name <workspace> -o table
az ml online-endpoint show --name <endpoint> --resource-group <resource-group> --workspace-name <workspace> \
--query "{auth:auth_mode,public:public_network_access,identity:identity.type}"References: az graph query (part of the resource-graph extension, which installs on first use), the account properties publicNetworkAccess and disableLocalAuth, az cognitiveservices account deployment, az ml workspace, az ml online-endpoint, and the online endpoint fields auth_mode, identity and public_network_access. The tags.owner column assumes you tag owners that way; use your own tag name.
Google Cloud: endpoints, models, agents and notebooks
The gcloud ai commands are regional, so loop over the regions you use.
PROJECT=<project-id>
for REGION in us-central1 europe-west4; do
echo "== $REGION"
# Endpoints, the model behind each deployment, and the service account it runs as
gcloud ai endpoints list --project=$PROJECT --region=$REGION --format=json \
| jq -r '.[] | [.displayName, (.deployedModels // [] | map(.model + " as " + (.serviceAccount // "default")) | join("; ")), (.network // "no VPC peering")] | @tsv'
# Models uploaded to the registry
gcloud ai models list --project=$PROJECT --region=$REGION
# Agent Engine (Agent Runtime) reasoning engines
curl -s -H "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://$REGION-aiplatform.googleapis.com/v1/projects/$PROJECT/locations/$REGION/reasoningEngines"
# Workbench notebook instances
gcloud workbench instances list --project=$PROJECT --location=$REGION-a
doneReferences: gcloud ai, endpoints list, models list, the Endpoint resource (the serviceAccount a deployed model "runs as", plus network, privateServiceConnectConfig and labels), the reasoningEngines list method, and workbench instances list. Google's own example passes a zone (us-central1-a) as the Workbench location, so change the -a suffix to the zones you use.
Two details matter here. If a deployed model has no serviceAccount, Google says the container "runs as a service account that doesn't have access to the resource project". For reasoning engines without their own identity, Google warns that the default service agent "is shared across all Reasoning Engines in the project" (Google Cloud: ReasoningEngine resource). So a permission granted for one agent can be used by every other agent in the project.
Calls to Google's hosted models go to a publisher model path (.../publishers/google/models/...), as Google's generateContent example shows (Google Cloud: Model Armor and Agent Platform). They are not an endpoint in your project, so the endpoint list will not show them. Pair the list with your usage or billing data to find projects that call hosted models.
Normalise it into one table
Merge the output into one row per AI resource. These columns let you answer the CISO's follow-up questions without going back to the CLI.
| Column | Why it matters | AWS source | Azure source | Google Cloud source |
|---|---|---|---|---|
| cloud, account, region | Where to act | CLI profile and Region | subscriptionId, location | project, region |
| kind | Model API, endpoint, agent or notebook | Command you ran | kind, resource type | Command you ran |
| model | What is actually answering | modelId, foundationModel, ModelName | properties.model.name | deployedModels[].model |
| owner | Who answers for it | Resource tags (list-tags-for-resource, list-tags) | tags | labels |
| identity | What it can do if misused | agentResourceRoleArn, roleArn, ExecutionRoleArn | identity.type | serviceAccount |
| data reached | What a prompt could pull out | Knowledge bases, and what the role can read | What the managed identity can read | What the service account can read |
| guardrail | Whether harmful prompts are screened | guardrailConfiguration, account enforcement | raiPolicyName | Model Armor floor setting for the project |
| exposure | Who can reach it | networkMode, VpcConfig | publicNetworkAccess, public_network_access | network, privateServiceConnectConfig |
A CSV header that works in any spreadsheet:
cloud,account,region,kind,name,model,owner,identity,data_reached,guardrail,exposure,last_seenThe five fields that matter most, and why
- Owner. An AI resource without an owner is the one nobody patches, rotates or retires. Tags are the cheapest fix: make an owner tag mandatory at creation.
- Data reached. A model is only as sensitive as what it can read. Follow the run-as identity to the stores it can read, and list each Bedrock knowledge base's data source.
- Guardrail attached. Bedrock agents carry a
guardrailConfiguration, and Azure deployments carry araiPolicyName. On Google Cloud, check the project's Model Armor floor setting. Our guardrail comparison has the commands for all three. - Identity it runs as. Agents act on your behalf. An agent role with admin or wide write access turns a prompt injection into a change in your account. Check every
roleArn, managed identity and service account the same way you check human admins. - Public exposure. An endpoint with public network access and key-based auth can be called by anyone with the key. Azure's
disableLocalAuthand AgentCore'snetworkModetell you which you have.
Checklist before you call it done
- Every Region, subscription and project is in the loop, including sandboxes.
- CloudTrail model counts cover all four Bedrock inference event names.
- Every row has an owner, or "unknown, needs triage".
- Every agent row has its run-as identity and a note on what that identity can write.
- Every row has a guardrail value, even if the value is "none".
- Rows with public exposure and key auth are flagged for review.
- The inventory has a date and a plan to refresh it. A one-off list is out of date within weeks.
Where Onam fits (that is us)
Onam builds this inventory for you and keeps it current. It covers managed AI on AWS (SageMaker, Bedrock), Azure (Azure AI services including Azure OpenAI, and Azure Machine Learning) and Google Cloud (Vertex AI) in one AI inventory. For each service it checks whether the provider's guardrail is present (Bedrock Guardrails, Azure content filters, Google Model Armor) and links AI workloads to the data they can reach. It treats AI agents as identities, with findings when an agent has admin or wide write permissions. AI apps found in connected SaaS platforms, such as Microsoft Copilot and Claude in Google Workspace, appear in the same inventory. AI security does not read prompt or answer text unless an admin turns on prompt-text detection, which is off by default. Onam never reads training data or model weights.
- The honest limit: Onam's AI security does not cover AI services on OCI, Alibaba Cloud or IBM Cloud. If you run AI there, those rows still come from your own scripts.
Our prices are public: $20 per unit a month for Complete, which includes data security; $14 per unit a month for Posture; and $39 per active developer a month for code security, with a 25-unit minimum. There is no time-limited trial. Instead there is a free plan of up to 25 units with API-based scanning only, and a free one-time audit scan of one cloud account.
Frequently asked questions
How do I list all Bedrock models used in my AWS account?
Foundation models are not resources in your account, so use CloudTrail. Bedrock logs InvokeModel, InvokeModelWithResponseStream, Converse and ConverseStream as management events. Run aws cloudtrail lookup-events for each event name in each Region and count the modelId values. Lookup covers the last 90 days. Add list-custom-models, list-imported-models and list-provisioned-model-throughputs for models you own.
How do I list all Azure OpenAI deployments across subscriptions?
Use Azure Resource Graph (az graph query) to find every account where the kind is OpenAI or AIServices, then run az cognitiveservices account deployment list for each account. The deployment output includes the model name, version and raiPolicyName.
How do I list Vertex AI endpoints in every region?
gcloud ai endpoints list is regional, so loop over regions with --region. Google now calls Vertex AI endpoints "Gemini Enterprise Agent Platform Endpoints", but the command is the same.
Do AI agents need their own identity?
Each platform runs agents under an identity: a Bedrock agent resource role, an AgentCore runtime role, an Azure managed identity or a Google service account. Google warns that reasoning engines without their own identity share one default service agent across the project. Give each agent its own identity with the least access it needs.
What fields should an AI inventory include?
At minimum: cloud, account, region, kind, model, owner, run-as identity, data reached, guardrail attached and public exposure, plus the date you last saw the resource.
Is a spreadsheet enough for an AI inventory?
For a first pass, yes. The weakness is freshness: new deployments and agents appear every week, so either schedule the scripts or use a tool that reads the cloud APIs continuously.
Corrections
Every command and field above was checked against the provider's own reference pages on 28 November 2026. CLIs change, and Google's product names changed recently, so check the linked page if a command fails. If anything here is wrong, email hello@onamsecurity.com and we will correct it.
Read next
- Is every model behind a guardrail?Bedrock Guardrails, Azure content filters and Model Armor compared, with the commands to check each one is attached.
- Which AI apps can read our mail and files?Find the AI apps connected to Google Workspace and Microsoft 365.
- See the AI inventory in the productManaged AI on AWS, Azure and Google Cloud in one list, with guardrail presence and data links.
Try it on your own cloud
Start free. The free plan covers up to 25 units of cloud security, with API-based scanning only: posture (CSPM), identity and permissions (CIEM), data stores found through cloud APIs (DSPM checks, no content classification) and AI-SPM. Posture scanning connects through read-only cloud roles, the free plan deploys no agent or scanner, and no card is needed. Register, and the team emails you the login.