Onam
AI Security

How to build one AI inventory across AWS, Azure and Google Cloud

By Anup Yadav, Founder & CEO•November 28, 2026•11 min read

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 scan
Monday, 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

DoorAWSAzureGoogle Cloud
Hosted models you callBedrock foundation models, custom and imported models, provisioned throughput, inference profilesAzure OpenAI and Foundry (AIServices) accounts and their model deploymentsGemini and partner models called by API, Model Garden endpoints
Endpoints you runSageMaker endpoints and their modelsAzure Machine Learning online endpointsVertex AI endpoints and models
AgentsBedrock agents, AgentCore runtimesFoundry Agent Service agentsAgent Engine (now Agent Runtime) reasoning engines
NotebooksSageMaker notebook instances and domainsAzure Machine Learning workspacesVertex 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 $REGION

Check 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
done

References: 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.

ColumnWhy it mattersAWS sourceAzure sourceGoogle Cloud source
cloud, account, regionWhere to actCLI profile and RegionsubscriptionId, locationproject, region
kindModel API, endpoint, agent or notebookCommand you rankind, resource typeCommand you ran
modelWhat is actually answeringmodelId, foundationModel, ModelNameproperties.model.namedeployedModels[].model
ownerWho answers for itResource tags (list-tags-for-resource, list-tags)tagslabels
identityWhat it can do if misusedagentResourceRoleArn, roleArn, ExecutionRoleArnidentity.typeserviceAccount
data reachedWhat a prompt could pull outKnowledge bases, and what the role can readWhat the managed identity can readWhat the service account can read
guardrailWhether harmful prompts are screenedguardrailConfiguration, account enforcementraiPolicyNameModel Armor floor setting for the project
exposureWho can reach itnetworkMode, VpcConfigpublicNetworkAccess, public_network_accessnetwork, privateServiceConnectConfig

A CSV header that works in any spreadsheet:

cloud,account,region,kind,name,model,owner,identity,data_reached,guardrail,exposure,last_seen

The five fields that matter most, and why

  1. 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.
  2. 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.
  3. Guardrail attached. Bedrock agents carry a guardrailConfiguration, and Azure deployments carry a raiPolicyName. On Google Cloud, check the project's Model Armor floor setting. Our guardrail comparison has the commands for all three.
  4. 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.
  5. Public exposure. An endpoint with public network access and key-based auth can be called by anyone with the key. Azure's disableLocalAuth and AgentCore's networkMode tell 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

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.

Start free · Book a demo

See this on your own cloud, free

The free plan covers up to 25 units of cloud security with read-only cloud API scanning. It deploys no agent or scanner and needs no card. Register, and the team emails you the login.