Azure AI Foundry
The Azure integration can discover Azure AI Foundry projects across your subscriptions and sync project data-plane resources into Port. Use it to build an AI agent registry, track model deployments, or relate Foundry assets to the rest of your software catalog.
Foundry sync is available on Hosted by Port installations (with incremental resync). Self-hosted Azure installs can use the same mapping kinds; live Event Grid updates apply to ARM cloud resources, not Foundry data-plane APIs.
Foundry kinds are not part of the default Azure integration mapping and blueprints are not created at install time.
- In Data model, create blueprints for each Foundry entity type you plan to sync. Create projects and deployments before agents so relation targets exist. Copy blueprint JSON from the explorer below.
- In Connectors, open your Azure integration and append the matching
resourcesentries from the combined mapping block (below) or from each resource in the explorer.
Prerequisites
- An Azure integration installed with credentials that can read subscriptions and Cognitive Services accounts.
- Role assignments on each subscription that contains Foundry projects (for example Reader on the subscription plus data-plane access for the integration identity on the Foundry account).
- Optionally map
subscription(default Azure mapping) soazureFoundryProjectcan relate toazureSubscription. - For workflow actions, enable actions processing on the integration (enabled by default on Hosted by Port).
Installation settings
| Setting | Description |
|---|---|
createFoundryWebhooks | When true, registers Foundry account webhooks on startup so invoke_agent / invoke_model runs with reportInvocationStatus: true can complete from response.* events. Leave false unless you use those actions with status reporting. Requires a reachable integration base URL on self-hosted installs. |
azureFoundry* blueprints, not system agent blueprintsMap Foundry agents and conversations to azureFoundryAgent and azureFoundryConversation. Do not map Foundry sync into factory system blueprints _agent or _agent_session. Those back generic agent/session UIs. Workflow entity pickers in the examples target the dedicated Foundry blueprints.
Supported kinds, API links, and example blueprint identifiers are listed on the main Azure integration page.
Full Foundry mapping configuration (all kinds) (click to expand)
resources:
- kind: Microsoft.CognitiveServices/accounts/projects
selector:
query: 'true'
port:
entity:
mappings:
identifier: .id
title: .name
blueprint: '"azureFoundryProject"'
properties:
endpoint: .__foundryProjectEndpoint
accountName: .accountName
subscriptionId: .subscriptionId
resourceGroupName: .resourceGroupName
location: .location
tags: .tags // {}
relations:
subscription: >-
"/subscriptions/" + (.subscriptionId | ascii_downcase)
- kind: foundry-agent
selector:
query: 'true'
port:
entity:
mappings:
identifier: .id
title: .name
blueprint: '"azureFoundryAgent"'
properties:
kind: .versions.latest.definition.kind
# prompt: definition.model; hosted: AZURE_AI_MODEL_DEPLOYMENT_NAME env
model: >-
.versions.latest.definition.model
// .versions.latest.definition.environment_variables.AZURE_AI_MODEL_DEPLOYMENT_NAME
// ""
instructions: .versions.latest.definition.instructions // ""
description: .versions.latest.description // ""
status: .state
configurationState: .configuration_state
version: .versions.latest.version
versionStatus: .versions.latest.status
agentGuid: .versions.latest.agent_guid
tools: .versions.latest.definition.tools // []
metadata: .versions.latest.metadata // {}
entraPrincipalId: .versions.latest.instance_identity.principal_id
entraClientId: .versions.latest.instance_identity.client_id
identityBlueprintId: .versions.latest.blueprint_reference.blueprint_id
createdAt: .versions.latest.created_at
relations:
modelDeployment: >-
(.versions.latest.definition.model
// .versions.latest.definition.environment_variables.AZURE_AI_MODEL_DEPLOYMENT_NAME)
as $m | if $m then .__foundryProjectName + "/" + $m else empty end
foundryProject: .__foundryProjectId
toolboxes: >-
[.versions.latest.definition.tools[]?
| select((.type // "") == "mcp")
| (.server_url // "")
| capture("/api/projects/(?<p>[^/]+)/toolboxes/(?<tb>[^/?]+)")?
| select(. != null)
| .p + "/" + .tb]
- kind: foundry-model-deployment
selector:
query: 'true'
port:
entity:
mappings:
identifier: .__foundryProjectName + "/" + .name
title: .name
blueprint: '"azureFoundryModelDeployment"'
properties:
model: .modelName
modelVersion: .modelVersion
modelPublisher: .modelPublisher
deploymentType: .type
sku: .sku.name
capabilities: .capabilities
supportsChat: '(.capabilities.chat_completion | tostring) == "true"'
relations:
foundryProject: .__foundryProjectId
- kind: foundry-conversation
selector:
query: 'true'
port:
entity:
mappings:
identifier: .id
title: .id
blueprint: '"azureFoundryConversation"'
properties:
createdAt: .created_at
metadata: .metadata
relations:
foundryProject: .__foundryProjectId
- kind: foundry-response
selector:
query: 'true'
port:
entity:
mappings:
identifier: .id
title: .id
blueprint: '"azureFoundryResponse"'
properties:
status: .status
createdAt: .created_at
promptTokens: .usage.input_tokens
completionTokens: .usage.output_tokens
totalTokens: .usage.total_tokens
cachedTokens: .usage.input_token_details.cached_tokens // 0
reasoningTokens: .usage.output_token_details.reasoning_tokens // 0
toolCalls: >-
([.output[]? | select((.type // "") | endswith("_call"))] // [])
relations:
conversation: .conversation.id
agent: .agent_reference.name
- kind: foundry-memory-store
selector:
query: 'true'
port:
entity:
mappings:
identifier: .id
title: .name
blueprint: '"azureFoundryMemoryStore"'
properties:
name: .name
description: .description
createdAt: .created_at
metadata: .metadata
relations:
foundryProject: .__foundryProjectId
- kind: foundry-skill
selector:
query: 'true'
port:
entity:
mappings:
identifier: .__foundryProjectName + "/" + .name
title: .name
blueprint: '"azureFoundrySkill"'
properties:
name: .name
description: .description // ""
skillId: .id
defaultVersion: .default_version
latestVersion: .latest_version
createdAt: .created_at
content: .__skillMarkdown // ""
relations:
foundryProject: .__foundryProjectId
- kind: foundry-toolbox
selector:
query: 'true'
port:
entity:
mappings:
identifier: .__foundryProjectName + "/" + (.name // .id)
title: .name // .id
blueprint: '"azureFoundryToolbox"'
properties:
name: .name // .id
description: .versions.latest.description // .description // ""
defaultVersion: .default_version
latestVersion: .versions.latest.version
tools: .versions.latest.tools // []
createdAt: .versions.latest.created_at // .created_at
relations:
foundryProject: .__foundryProjectId
skills: >-
.__foundryProjectName as $p
| [.__skillNames[]? | $p + "/" + .]
subagents: >-
[.__a2aSubagents[]?.agentName // empty
| select(. != null and . != "")]
Entity identifiers must stay consistent across kinds (for example deployment id {projectName}/{deploymentName}, agent id from Foundry id, conversation id conv_…). Adjust if you use a different convention.
Mapping & selectors per resource
Use the explorer below for blueprint JSON, mapping configuration, and supported selectors for each Foundry kind. Example YAML omits selector fields that match the defaults shown in each resource tab. To test mappings against live API payloads, use the jq playground on your Connectors page.
For foundry-conversation and foundry-response, Azure retains listable data for about 30 days. The integration only ingests what the Foundry API still returns; older threads and response runs are not available from Azure.
{
"identifier": "azureFoundryProject",
"title": "Foundry Project",
"icon": "Azure",
"schema": {
"properties": {
"endpoint": {
"title": "Project endpoint",
"type": "string",
"format": "url"
},
"accountName": {
"title": "Account name",
"type": "string"
},
"subscriptionId": {
"title": "Subscription ID",
"type": "string"
},
"resourceGroupName": {
"title": "Resource group",
"type": "string"
},
"location": {
"title": "Location",
"type": "string"
},
"tags": {
"title": "Tags",
"type": "object"
}
},
"required": []
},
"mirrorProperties": {},
"calculationProperties": {},
"aggregationProperties": {},
"relations": {
"subscription": {
"title": "Subscription",
"target": "azureSubscription",
"required": false,
"many": false
}
}
}
resources:
- kind: Microsoft.CognitiveServices/accounts/projects
selector:
query: 'true'
port:
entity:
mappings:
identifier: .id
title: .name
blueprint: '"azureFoundryProject"'
properties:
endpoint: .__foundryProjectEndpoint
accountName: .accountName
subscriptionId: .subscriptionId
resourceGroupName: .resourceGroupName
location: .location
tags: .tags // {}
relations:
subscription: >-
"/subscriptions/" + (.subscriptionId | ascii_downcase)
Below are the supported selectors for this resource. Use them under the selector key in your integration mapping configuration to control which resources are returned from the API.
| Selector | Type | Description |
|---|---|---|
exportEnvVariables | array | Environment variable names whose values should be included in lakehouse ingest payloads for DSP processing. |
apiVersion | string | ARM API version used when querying Foundry projects. Default: "2025-06-01". |
Workflow actions
Management and invoke actions (deploy model, create agent, invoke with Port MCP, etc.) use the same Azure installation. Example self-service workflows that resolve catalog entities to projectEndpoint / projectArmId are on the Azure AI Foundry integration actions page.