> For the complete documentation index, see llms.txt.
Skip to main content

Check out Port for yourself ➜ 

Azure AI Foundry

Azure integration actions let workflows manage Foundry agents and model deployments and invoke them through the Foundry Responses API, using your installed Azure integration.

For catalog sync of Foundry kinds, see Azure AI Foundry ingestion.

Prerequisites​

  • An Azure integration installed in your Port organization.
  • Actions processing enabled on the integration:
    • Hosted by Port: enabled automatically.
    • Self-hosted (Helm or Docker): disabled by default; enable the Ocean actions processor and set a reachable OCEAN__BASE_URL when using reportInvocationStatus or webhooks.
  • Azure permissions to mutate Foundry agents and deployments in the target projects.
  • For managed Port MCP on invoke_agent, set executionIdentity on the workflow node (actor for self-service, or service_account for automations).

Configuration​

FieldTypeDescription
typestringRequired. Must be "INTEGRATION_ACTION"
installationIdstringRequired. Your Azure integration installation ID
integrationProviderstringRequired. Must be "azure"
integrationInvocationTypeenumRequired. One of the values listed in available actions
integrationActionExecutionPropertiesobjectRequired. Operation-specific configuration
executionIdentityobjectOptional. Required for Port MCP remint on invoke_agent and for cancel_response. Sibling of integrationActionExecutionProperties on the node config, not inside it

Available actions​

Each action is selected with the integrationInvocationType field:

ActionInvocation typeDescription
Create agentcreate_agentCreate a Foundry agent in a project
Update agentupdate_agentUpdate agent model, instructions, or pass-through config
Delete agentdelete_agentDelete a Foundry agent
Deploy model deploymentdeploy_model_deploymentDeploy a model in a project
Delete model deploymentdelete_model_deploymentRemove a model deployment
Invoke agentinvoke_agentCall an agent via the Responses API (optional Port/GitHub MCP)
Invoke modelinvoke_modelCall a chat-capable deployment via openai/v1/responses
Cancel responsecancel_responseCancel background responses from invoke actions
Port MCP timing

Port toolbox wiring (enablePortMcp) runs on invoke_agent, not on create_agent or update_agent.

Create agent​

Creates a Foundry agent and optionally registers it in the Port catalog when mapping is configured.

Execution properties

FieldTypeDescription
projectEndpointstringRequired. Project data-plane URL, e.g. https://<account>.services.ai.azure.com/api/projects/<project>
namestringRequired. Agent name
modelstringRequired. Model deployment name
instructionsstringOptional system instructions (prompt agents)
configobjectOptional jqObject merged into the Foundry create payload (definition.tools, metadata, non-prompt definition.kind, etc.). Top-level name, model, and instructions always win

Basic example

Create a Foundry agent (click to expand)
{
"identifier": "create-foundry-agent",
"title": "Create Foundry agent",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "<your-installation-id>",
"integrationProvider": "azure",
"integrationInvocationType": "create_agent",
"integrationActionExecutionProperties": {
"projectEndpoint": "{{ .outputs.fetch_project.endpoint }}",
"name": "{{ .outputs.trigger.name }}",
"model": "{{ .outputs.trigger.model }}",
"instructions": "{{ .outputs.trigger.instructions }}"
}
}
}

Update agent​

Execution properties

FieldTypeDescription
projectEndpointstringRequired. Project data-plane URL
agentIdstringRequired. Agent id
modelstringOptional deployment name
instructionsstringOptional instructions
configobjectOptional jqObject merged into the update payload. Agent names are immutable

Basic example

Update a Foundry agent (click to expand)
{
"identifier": "update-foundry-agent",
"title": "Update Foundry agent",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "<your-installation-id>",
"integrationProvider": "azure",
"integrationInvocationType": "update_agent",
"integrationActionExecutionProperties": {
"projectEndpoint": "{{ .outputs.fetch_project.endpoint }}",
"agentId": "{{ .outputs.fetch_agent.agentId }}",
"instructions": "{{ .outputs.trigger.instructions }}"
}
}
}

Delete agent​

Execution properties

FieldTypeDescription
projectEndpointstringRequired. Project data-plane URL
agentIdstringRequired. Agent id

Basic example

Delete a Foundry agent (click to expand)
{
"identifier": "delete-foundry-agent",
"title": "Delete Foundry agent",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "<your-installation-id>",
"integrationProvider": "azure",
"integrationInvocationType": "delete_agent",
"integrationActionExecutionProperties": {
"projectEndpoint": "{{ .outputs.fetch_project.endpoint }}",
"agentId": "{{ .outputs.fetch_agent.agentId }}"
}
}
}

Deploy model deployment​

Execution properties

FieldTypeDescription
projectEndpointstringRequired. Project data-plane URL
deploymentNamestringRequired. Deployment name
modelNamestringRequired. Model name
modelVersionstringOptional model version
modelPublisherstringOptional publisher
skuNamestringSKU name (default GlobalStandard)
configobjectOptional jqObject for ARM deployment extras (sku.capacity, tags, properties.raiPolicyName, etc.)

Basic example

Deploy a Foundry model deployment (click to expand)
{
"identifier": "deploy-foundry-model",
"title": "Deploy Foundry model",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "<your-installation-id>",
"integrationProvider": "azure",
"integrationInvocationType": "deploy_model_deployment",
"integrationActionExecutionProperties": {
"projectEndpoint": "{{ .outputs.fetch_project.endpoint }}",
"deploymentName": "{{ .outputs.trigger.deploymentName }}",
"modelName": "{{ .outputs.trigger.modelName }}",
"modelVersion": "{{ .outputs.trigger.modelVersion }}",
"skuName": "GlobalStandard"
}
}
}

Delete model deployment​

Execution properties

FieldTypeDescription
projectEndpointstringRequired. Project data-plane URL
deploymentNamestringRequired. Deployment name

Basic example

Delete a Foundry model deployment (click to expand)
{
"identifier": "delete-foundry-deployment",
"title": "Delete Foundry deployment",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "<your-installation-id>",
"integrationProvider": "azure",
"integrationInvocationType": "delete_model_deployment",
"integrationActionExecutionProperties": {
"projectEndpoint": "{{ .outputs.fetch_deployment.endpoint }}",
"deploymentName": "{{ .outputs.fetch_deployment.deploymentName }}"
}
}
}

Invoke agent​

Invokes a Foundry agent through agents/{id}/endpoint/protocols/openai/responses. Requests use background: true and store: true.

Execution properties

FieldTypeDescription
projectArmIdstringRequired. ARM project id (/subscriptions/.../providers/Microsoft.CognitiveServices/accounts/.../projects/...). Used to derive the data-plane URL and for MCP remint
agentIdstringRequired. Agent id
inputstringRequired. User message / task text
conversationIdstringOptional conversation to continue; omit to create one
conversationMetadataobjectOptional metadata on create or patch
enablePortMcpbooleanDefault true. Remints Port MCP CustomKeys and ensures Port tools in a toolbox before invoke when an execution identity token is present
gitProviderstringDefault github. Only github is supported
gitAccessTokenstringOptional GitHub PAT for GitHub MCP in the toolbox
useExistingToolboxbooleanPrompt agents only. Default false — foreign toolboxes are left alone unless true (merge Port tools in)
toolboxNamestringHosted agents only. Existing toolbox to upsert MCP into; must already exist
reportInvocationStatusbooleanDefault false. When true, keeps the run open until a terminal response.* webhook or SSE event; requires createFoundryWebhooks and reachable webhooks on self-hosted installs

Execution identity​

Set executionIdentity on the node config (next to integrationInvocationType). invoke_agent and cancel_response allow actor and service_account.

ShapeWhen to use
{ "type": "actor" }Self-service workflows (triggering user)
{ "type": "service_account", "identifier": "<sa>@serviceaccounts.getport.io" }Automations; literal identifier only

Managed Port MCP requires both enablePortMcp: true (default) and executionIdentity. Without a token, MCP setup is skipped with a warning.

Node outputs

After the invoke is accepted:

OutputTypeDescription
responseIdstringFoundry response id (e.g. resp_…)
conversationIdstringConversation used for the invoke
projectArmIdstringProject ARM id

With reportInvocationStatus: true, the run completes when the response reaches a terminal state. Agent output can stream to run logs over SSE while the run is in progress.

Basic example

Invoke a Foundry agent (click to expand)
{
"identifier": "invoke-foundry-agent",
"title": "Invoke Foundry agent",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "<your-installation-id>",
"integrationProvider": "azure",
"integrationInvocationType": "invoke_agent",
"executionIdentity": {
"type": "service_account",
"identifier": "my-automation@serviceaccounts.getport.io"
},
"integrationActionExecutionProperties": {
"projectArmId": "{{ .trigger.projectArmId }}",
"agentId": "{{ .trigger.agentId }}",
"input": "{{ .trigger.prompt }}",
"reportInvocationStatus": false
}
}
}

Invoke model​

Invokes a chat-capable deployment via openai/v1/responses. Non-chat deployments are rejected.

Execution properties

FieldTypeDescription
projectArmIdstringRequired. Project ARM id
deploymentNamestringRequired. Deployment with capabilities.chat_completion=true
inputstringRequired. User prompt
conversationIdstringOptional conversation id

The run stays active until the SSE stream reports a terminal response state (model output can appear in run logs during the stream).

Basic example

Invoke a Foundry model deployment (click to expand)
{
"identifier": "invoke-foundry-model",
"title": "Invoke Foundry model",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "<your-installation-id>",
"integrationProvider": "azure",
"integrationInvocationType": "invoke_model",
"integrationActionExecutionProperties": {
"projectArmId": "{{ .outputs.fetch_deployment.projectArmId }}",
"deploymentName": "{{ .outputs.fetch_deployment.deploymentName }}",
"input": "{{ .outputs.trigger.input }}"
}
}
}

Cancel response​

Cancels background responses started by invoke_agent or invoke_model.

Execution properties

FieldTypeDescription
projectArmIdstringRequired. Project ARM id
agentIdstringRequired. Agent id (agent protocol endpoint for listing/cancel)
responseIdstringResponse id from invoke outputs; omit when using conversation-scoped cancel
conversationIdstringCancels non-terminal responses in the session when responseId is omitted

Requires executionIdentity (actor or service_account).

Basic example

Cancel a background Foundry response (click to expand)
{
"identifier": "cancel-foundry-response",
"title": "Cancel Foundry response",
"config": {
"type": "INTEGRATION_ACTION",
"installationId": "<your-installation-id>",
"integrationProvider": "azure",
"integrationInvocationType": "cancel_response",
"executionIdentity": {
"type": "actor"
},
"integrationActionExecutionProperties": {
"projectArmId": "{{ .outputs.invoke_agent.projectArmId }}",
"agentId": "{{ .outputs.invoke_agent.agentId }}",
"responseId": "{{ .outputs.invoke_agent.responseId }}"
}
}
}

Complete workflow examples​

These workflows assume you created the azureFoundry* blueprints and mappings from Azure AI Foundry ingestion (not Port's system _agent / _agent_session blueprints). They follow a common pattern:

  1. Self-serve trigger with entity pickers (azureFoundryProject, azureFoundryAgent, azureFoundryModelDeployment, …).
  2. Webhook nodes load entities from the Port API and set projectEndpoint, projectArmId, agentId, or deployment name.
  3. Integration action node calls the Azure integration (integrationProvider: "azure").

Replace <your-installation-id>, service account identifiers, and GitHub token references with values from your organization. Webhook URLs use https://api.getport.io/v1 — swap the region host if your Port tenant uses another API base URL.

WorkflowActions used
Deploy Foundry modeldeploy_model_deployment
Delete Foundry deploymentdelete_model_deployment
Create Foundry agentcreate_agent
Delete Foundry agentdelete_agent
Update Foundry agentupdate_agent
Invoke Foundry agentinvoke_agent (+ executionIdentity, optional Port/GitHub MCP)
Invoke Foundry modelinvoke_model
Catalog and invoke prerequisites

Create/update/delete actions optionally sync entities when the matching integration mapping kind is configured. Invoke flows read projectArmId and ids from catalog entities — run a resync after changing Foundry projects or agents.

The Invoke Foundry agent example sets reportInvocationStatus: true and uses a service account for Port MCP. Enable createFoundryWebhooks on the Azure integration and ensure live events can reach the integration when you use that pattern on self-hosted installs.

Deploy Foundry model (foundry_deploy_model_wf) (click to expand)
{
"identifier": "foundry_deploy_model_wf",
"title": "Deploy Foundry model",
"icon": "Deployment",
"category": "Azure AI Foundry",
"description": "Deploy a model deployment in a selected Foundry project via Azure Resource Manager.",
"allowAnyoneToViewRuns": true,
"nodes": [
{
"identifier": "trigger",
"config": {
"type": "SELF_SERVE_TRIGGER",
"published": true,
"permissions": {
"roles": [
"Admin",
"Member"
]
},
"contexts": [
{
"on": "CREATE_ENTITY",
"blueprintIdentifier": "azureFoundryModelDeployment"
}
],
"userInputs": {
"properties": {
"project": {
"type": "string",
"format": "entity",
"blueprint": "azureFoundryProject",
"title": "Foundry project"
},
"deploymentName": {
"type": "string",
"title": "Deployment name",
"description": "Name of the deployment in Foundry (for example gpt-5)."
},
"modelName": {
"type": "string",
"title": "Model name",
"description": "Publisher model id (for example gpt-5)."
},
"modelVersion": {
"type": "string",
"title": "Model version"
},
"modelPublisher": {
"type": "string",
"title": "Model publisher"
},
"skuName": {
"type": "string",
"title": "SKU",
"enum": [
"GlobalStandard",
"Standard",
"DataZoneStandard"
],
"default": "GlobalStandard"
}
},
"required": [
"project",
"deploymentName",
"modelName"
],
"order": [
"project",
"deploymentName",
"modelName",
"modelVersion",
"modelPublisher",
"skuName"
]
}
},
"variables": {},
"verbose": false
},
{
"identifier": "fetch_project",
"title": "Resolve project endpoint",
"icon": "Azure",
"config": {
"type": "WEBHOOK",
"url": "https://api.getport.io/v1/blueprints/azureFoundryProject/entities/{{ .outputs.trigger.project | @uri }}",
"method": "GET",
"synchronized": true,
"onFailure": "terminate"
},
"variables": {
"endpoint": "{{ .result.response.data.entity.properties.endpoint }}"
},
"verbose": false
},
{
"identifier": "deploy_model",
"title": "Deploy model",
"icon": "Azure",
"config": {
"type": "INTEGRATION_ACTION",
"integrationProvider": "azure",
"integrationInvocationType": "deploy_model_deployment",
"integrationActionExecutionProperties": {
"projectEndpoint": "{{ .outputs.fetch_project.endpoint }}",
"deploymentName": "{{ .outputs.trigger.deploymentName }}",
"modelName": "{{ .outputs.trigger.modelName }}",
"modelVersion": "{{ .outputs.trigger.modelVersion }}",
"modelPublisher": "{{ .outputs.trigger.modelPublisher }}",
"skuName": "{{ .outputs.trigger.skuName }}"
},
"onFailure": "terminate",
"installationId": "<your-installation-id>"
},
"variables": {},
"verbose": false
}
],
"connections": [
{
"sourceIdentifier": "trigger",
"targetIdentifier": "fetch_project"
},
{
"sourceIdentifier": "fetch_project",
"targetIdentifier": "deploy_model"
}
]
}
Delete Foundry deployment (foundry_delete_deployment_wf) (click to expand)
{
"identifier": "foundry_delete_deployment_wf",
"title": "Delete Foundry deployment",
"icon": "Delete",
"category": "Azure AI Foundry",
"description": "Delete a model deployment from Foundry and remove it from the catalog.",
"allowAnyoneToViewRuns": true,
"nodes": [
{
"identifier": "trigger",
"config": {
"type": "SELF_SERVE_TRIGGER",
"published": true,
"variant": "ALERT",
"permissions": {
"roles": [
"Admin",
"Member"
]
},
"contexts": [
{
"on": "ENTITY",
"userInput": "deployment"
}
],
"userInputs": {
"properties": {
"deployment": {
"type": "string",
"format": "entity",
"blueprint": "azureFoundryModelDeployment",
"title": "Model deployment"
}
},
"required": [
"deployment"
],
"order": [
"deployment"
]
}
},
"variables": {},
"verbose": false
},
{
"identifier": "fetch_deployment",
"title": "Load deployment",
"icon": "Azure",
"config": {
"type": "WEBHOOK",
"url": "https://api.getport.io/v1/blueprints/azureFoundryModelDeployment/entities/{{ .outputs.trigger.deployment | @uri }}",
"method": "GET",
"synchronized": true,
"onFailure": "terminate"
},
"variables": {
"deploymentName": "{{ .result.response.data.entity.title }}",
"projectId": "{{ .result.response.data.entity.relations.foundryProject | if type == \"object\" then .identifier else . end }}"
},
"verbose": false
},
{
"identifier": "fetch_project",
"title": "Resolve project endpoint",
"icon": "Azure",
"config": {
"type": "WEBHOOK",
"url": "https://api.getport.io/v1/blueprints/azureFoundryProject/entities/{{ .outputs.fetch_deployment.projectId | @uri }}",
"method": "GET",
"synchronized": true,
"onFailure": "terminate"
},
"variables": {
"endpoint": "{{ .result.response.data.entity.properties.endpoint }}"
},
"verbose": false
},
{
"identifier": "delete_deployment",
"title": "Delete deployment",
"icon": "Azure",
"config": {
"type": "INTEGRATION_ACTION",
"integrationProvider": "azure",
"integrationInvocationType": "delete_model_deployment",
"integrationActionExecutionProperties": {
"projectEndpoint": "{{ .outputs.fetch_project.endpoint }}",
"deploymentName": "{{ .outputs.fetch_deployment.deploymentName }}"
},
"onFailure": "terminate",
"installationId": "<your-installation-id>"
},
"variables": {},
"verbose": false
}
],
"connections": [
{
"sourceIdentifier": "trigger",
"targetIdentifier": "fetch_deployment"
},
{
"sourceIdentifier": "fetch_deployment",
"targetIdentifier": "fetch_project"
},
{
"sourceIdentifier": "fetch_project",
"targetIdentifier": "delete_deployment"
}
]
}
Create Foundry agent (foundry_create_agent_wf) (click to expand)
{
"identifier": "foundry_create_agent_wf",
"title": "Create Foundry agent",
"icon": "AddUser",
"category": "Azure AI Foundry",
"description": "Create a Foundry agent in a selected project and sync it to the catalog. Port toolbox wiring happens on invoke.",
"allowAnyoneToViewRuns": true,
"nodes": [
{
"identifier": "trigger",
"config": {
"type": "SELF_SERVE_TRIGGER",
"published": true,
"permissions": {
"roles": [
"Admin",
"Member"
]
},
"contexts": [
{
"on": "CREATE_ENTITY",
"blueprintIdentifier": "azureFoundryAgent"
}
],
"userInputs": {
"properties": {
"project": {
"type": "string",
"format": "entity",
"blueprint": "azureFoundryProject",
"title": "Foundry project"
},
"name": {
"type": "string",
"title": "Agent name"
},
"model": {
"type": "string",
"format": "entity",
"blueprint": "azureFoundryModelDeployment",
"title": "Model deployment",
"description": "Chat-capable deployments only (capabilities.chat_completion=true).",
"dependsOn": [
"project"
],
"dataset": {
"combinator": "and",
"rules": [
{
"relation": "foundryProject",
"operator": "=",
"value": {
"jqQuery": ".form.project"
}
},
{
"property": "supportsChat",
"operator": "=",
"value": true
}
]
}
},
"instructions": {
"type": "string",
"title": "Instructions",
"format": "multi-line"
}
},
"required": [
"project",
"name",
"model"
],
"order": [
"project",
"name",
"model",
"instructions"
]
}
},
"variables": {},
"verbose": false
},
{
"identifier": "fetch_project",
"title": "Resolve project endpoint",
"icon": "Azure",
"config": {
"type": "WEBHOOK",
"url": "https://api.getport.io/v1/blueprints/azureFoundryProject/entities/{{ .outputs.trigger.project | @uri }}",
"method": "GET",
"synchronized": true,
"onFailure": "terminate"
},
"variables": {
"endpoint": "{{ .result.response.data.entity.properties.endpoint }}"
},
"verbose": false
},
{
"identifier": "fetch_model",
"title": "Resolve model deployment",
"icon": "Azure",
"config": {
"type": "WEBHOOK",
"url": "https://api.getport.io/v1/blueprints/azureFoundryModelDeployment/entities/{{ .outputs.trigger.model | @uri }}",
"method": "GET",
"synchronized": true,
"onFailure": "terminate"
},
"variables": {
"model": "{{ .result.response.data.entity.properties.model // .result.response.data.entity.title }}"
},
"verbose": false
},
{
"identifier": "create_agent",
"title": "Create agent",
"icon": "Azure",
"config": {
"type": "INTEGRATION_ACTION",
"integrationProvider": "azure",
"integrationInvocationType": "create_agent",
"integrationActionExecutionProperties": {
"projectEndpoint": "{{ .outputs.fetch_project.endpoint }}",
"name": "{{ .outputs.trigger.name }}",
"model": "{{ .outputs.fetch_model.model }}",
"instructions": "{{ .outputs.trigger.instructions }}"
},
"onFailure": "terminate",
"installationId": "<your-installation-id>"
},
"variables": {},
"verbose": false
}
],
"connections": [
{
"sourceIdentifier": "trigger",
"targetIdentifier": "fetch_project"
},
{
"sourceIdentifier": "fetch_project",
"targetIdentifier": "fetch_model"
},
{
"sourceIdentifier": "fetch_model",
"targetIdentifier": "create_agent"
}
]
}
Delete Foundry agent (foundry_delete_agent_wf) (click to expand)
{
"identifier": "foundry_delete_agent_wf",
"title": "Delete Foundry agent",
"icon": "Delete",
"category": "Azure AI Foundry",
"description": "Delete a Foundry agent from the project and remove it from the catalog.",
"allowAnyoneToViewRuns": true,
"nodes": [
{
"identifier": "trigger",
"config": {
"type": "SELF_SERVE_TRIGGER",
"published": true,
"variant": "ALERT",
"permissions": {
"roles": [
"Admin",
"Member"
]
},
"contexts": [
{
"on": "ENTITY",
"userInput": "agent"
}
],
"userInputs": {
"properties": {
"agent": {
"type": "string",
"format": "entity",
"blueprint": "azureFoundryAgent",
"title": "Agent"
}
},
"required": [
"agent"
],
"order": [
"agent"
]
}
},
"variables": {},
"verbose": false
},
{
"identifier": "fetch_agent",
"title": "Load agent",
"icon": "Azure",
"config": {
"type": "WEBHOOK",
"url": "https://api.getport.io/v1/blueprints/azureFoundryAgent/entities/{{ .outputs.trigger.agent | @uri }}",
"method": "GET",
"synchronized": true,
"onFailure": "terminate"
},
"variables": {
"agentId": "{{ .result.response.data.entity.identifier }}",
"projectId": "{{ .result.response.data.entity.relations.foundryProject | if type == \"object\" then .identifier else . end }}"
},
"verbose": false
},
{
"identifier": "fetch_project",
"title": "Resolve project endpoint",
"icon": "Azure",
"config": {
"type": "WEBHOOK",
"url": "https://api.getport.io/v1/blueprints/azureFoundryProject/entities/{{ .outputs.fetch_agent.projectId | @uri }}",
"method": "GET",
"synchronized": true,
"onFailure": "terminate"
},
"variables": {
"endpoint": "{{ .result.response.data.entity.properties.endpoint }}"
},
"verbose": false
},
{
"identifier": "delete_agent",
"title": "Delete agent",
"icon": "Azure",
"config": {
"type": "INTEGRATION_ACTION",
"integrationProvider": "azure",
"integrationInvocationType": "delete_agent",
"integrationActionExecutionProperties": {
"projectEndpoint": "{{ .outputs.fetch_project.endpoint }}",
"agentId": "{{ .outputs.fetch_agent.agentId }}"
},
"onFailure": "terminate",
"installationId": "<your-installation-id>"
},
"variables": {},
"verbose": false
}
],
"connections": [
{
"sourceIdentifier": "trigger",
"targetIdentifier": "fetch_agent"
},
{
"sourceIdentifier": "fetch_agent",
"targetIdentifier": "fetch_project"
},
{
"sourceIdentifier": "fetch_project",
"targetIdentifier": "delete_agent"
}
]
}
Update Foundry agent (foundry_update_agent_wf) (click to expand)
{
"identifier": "foundry_update_agent_wf",
"title": "Update Foundry agent",
"icon": "Edit",
"category": "Azure AI Foundry",
"description": "Update model or instructions for a Foundry agent. Port toolbox remint happens on invoke.",
"allowAnyoneToViewRuns": true,
"nodes": [
{
"identifier": "trigger",
"config": {
"type": "SELF_SERVE_TRIGGER",
"published": true,
"permissions": {
"roles": [
"Admin",
"Member"
]
},
"contexts": [
{
"on": "ENTITY",
"userInput": "agent"
}
],
"userInputs": {
"properties": {
"agent": {
"type": "string",
"format": "entity",
"blueprint": "azureFoundryAgent",
"title": "Agent"
},
"model": {
"type": "string",
"format": "entity",
"blueprint": "azureFoundryModelDeployment",
"title": "Model deployment",
"description": "Chat-capable deployments only (capabilities.chat_completion=true).",
"dataset": {
"combinator": "and",
"rules": [
{
"property": "supportsChat",
"operator": "=",
"value": true
}
]
}
},
"instructions": {
"type": "string",
"title": "Instructions",
"format": "multi-line"
}
},
"required": [
"agent"
],
"order": [
"agent",
"model",
"instructions"
]
}
},
"variables": {},
"verbose": false
},
{
"identifier": "fetch_agent",
"title": "Load agent",
"icon": "Azure",
"config": {
"type": "WEBHOOK",
"url": "https://api.getport.io/v1/blueprints/azureFoundryAgent/entities/{{ .outputs.trigger.agent | @uri }}",
"method": "GET",
"synchronized": true,
"onFailure": "terminate"
},
"variables": {
"agentId": "{{ .result.response.data.entity.identifier }}",
"projectId": "{{ .result.response.data.entity.relations.foundryProject | if type == \"object\" then .identifier else . end }}"
},
"verbose": false
},
{
"identifier": "fetch_project",
"title": "Resolve project endpoint",
"icon": "Azure",
"config": {
"type": "WEBHOOK",
"url": "https://api.getport.io/v1/blueprints/azureFoundryProject/entities/{{ .outputs.fetch_agent.projectId | @uri }}",
"method": "GET",
"synchronized": true,
"onFailure": "terminate"
},
"variables": {
"endpoint": "{{ .result.response.data.entity.properties.endpoint }}"
},
"verbose": false
},
{
"identifier": "fetch_model",
"title": "Resolve model deployment",
"icon": "Azure",
"config": {
"type": "WEBHOOK",
"url": "https://api.getport.io/v1/blueprints/azureFoundryModelDeployment/entities/{{ .outputs.trigger.model | @uri }}",
"method": "GET",
"synchronized": true,
"onFailure": "continue"
},
"variables": {
"model": "{{ if .result.response.data.entity then (.result.response.data.entity.properties.model // .result.response.data.entity.title) else null end }}"
},
"verbose": false
},
{
"identifier": "update_agent",
"title": "Update agent",
"icon": "Azure",
"config": {
"type": "INTEGRATION_ACTION",
"integrationProvider": "azure",
"integrationInvocationType": "update_agent",
"integrationActionExecutionProperties": {
"projectEndpoint": "{{ .outputs.fetch_project.endpoint }}",
"agentId": "{{ .outputs.fetch_agent.agentId }}",
"model": "{{ .outputs.fetch_model.model }}",
"instructions": "{{ .outputs.trigger.instructions }}"
},
"onFailure": "terminate",
"installationId": "<your-installation-id>"
},
"variables": {},
"verbose": false
}
],
"connections": [
{
"sourceIdentifier": "trigger",
"targetIdentifier": "fetch_agent"
},
{
"sourceIdentifier": "fetch_agent",
"targetIdentifier": "fetch_project"
},
{
"sourceIdentifier": "fetch_project",
"targetIdentifier": "fetch_model"
},
{
"sourceIdentifier": "fetch_model",
"targetIdentifier": "update_agent"
}
]
}
Invoke Foundry agent (foundry_invoke_agent_wf) (click to expand)
{
"identifier": "foundry_invoke_agent_wf",
"title": "Invoke Foundry agent",
"icon": "Azure",
"category": "Azure AI Foundry",
"description": "Invoke a Foundry agent via the Responses API (background). Remints Port MCP when allowed: prompt agents use useExistingToolbox; hosted agents use toolboxName. Waits for webhook/SSE completion.",
"allowAnyoneToViewRuns": true,
"nodes": [
{
"identifier": "trigger",
"config": {
"type": "SELF_SERVE_TRIGGER",
"published": true,
"permissions": {
"roles": [
"Admin",
"Member"
]
},
"contexts": [
{
"on": "ENTITY",
"userInput": "agent"
}
],
"userInputs": {
"properties": {
"agent": {
"type": "string",
"format": "entity",
"blueprint": "azureFoundryAgent",
"title": "Agent"
},
"input": {
"type": "string",
"title": "Input",
"format": "multi-line",
"description": "User message sent to the agent."
},
"conversationId": {
"type": "string",
"format": "entity",
"blueprint": "azureFoundryConversation",
"title": "Conversation",
"description": "Optional Foundry conversation to continue. Leave empty to create a new conversation.",
"dependsOn": [
"agent"
],
"dataset": {
"combinator": "and",
"rules": [
{
"relation": "foundryProject",
"operator": "=",
"value": {
"jqQuery": ".form.agent.relations.foundryProject | if type == \"object\" then .identifier else . end"
}
}
]
}
},
"useExistingToolbox": {
"type": "boolean",
"title": "Use existing toolbox",
"default": false,
"description": "Prompt agents only. When false, skip MCP remint if the agent already has a foreign toolbox. When true, merge Port/GitHub MCP into that toolbox.",
"dependsOn": [
"agent"
],
"visible": {
"jqQuery": ".form.agent.properties.kind == \"prompt\""
}
},
"toolboxName": {
"type": "string",
"format": "entity",
"blueprint": "azureFoundryToolbox",
"title": "Toolbox",
"description": "Hosted agents only. Existing Foundry toolbox to upsert Port/GitHub MCP into (must already exist). Omit to prepare port-mcps-<hash>; set TOOLBOX_NAME in the hosted agent to match.",
"dependsOn": [
"agent"
],
"visible": {
"jqQuery": ".form.agent.properties.kind == \"hosted\""
},
"dataset": {
"combinator": "and",
"rules": [
{
"relation": "foundryProject",
"operator": "=",
"value": {
"jqQuery": ".form.agent.relations.foundryProject | if type == \"object\" then .identifier else . end"
}
}
]
}
}
},
"required": [
"agent",
"input"
],
"order": [
"agent",
"input",
"conversationId",
"useExistingToolbox",
"toolboxName"
]
}
},
"variables": {},
"verbose": false
},
{
"identifier": "fetch_agent",
"title": "Load agent",
"icon": "Azure",
"config": {
"type": "WEBHOOK",
"url": "https://api.getport.io/v1/blueprints/azureFoundryAgent/entities/{{ .outputs.trigger.agent | @uri }}",
"method": "GET",
"synchronized": true,
"onFailure": "terminate"
},
"variables": {
"agentId": "{{ .result.response.data.entity.identifier }}",
"projectArmId": "{{ .result.response.data.entity.relations.foundryProject | if type == \"object\" then .identifier else . end }}"
},
"verbose": false
},
{
"identifier": "invoke_agent",
"title": "Invoke agent",
"icon": "Azure",
"config": {
"type": "INTEGRATION_ACTION",
"integrationProvider": "azure",
"integrationInvocationType": "invoke_agent",
"installationId": "<your-installation-id>",
"onFailure": "terminate",
"executionIdentity": {
"type": "service_account",
"identifier": "<sa>@serviceaccounts.getport.io"
},
"integrationActionExecutionProperties": {
"projectArmId": "{{ .outputs.fetch_agent.projectArmId }}",
"agentId": "{{ .outputs.fetch_agent.agentId }}",
"input": "{{ .outputs.trigger.input }}",
"conversationId": "{{ .outputs.trigger.conversationId | if type == \"object\" then .identifier else . end }}",
"enablePortMcp": true,
"reportInvocationStatus": true,
"gitProvider": "github",
"gitAccessToken": "<github-pat-or-org-secret>",
"useExistingToolbox": "{{ .outputs.trigger.useExistingToolbox // false }}",
"toolboxName": "{{ .outputs.trigger.toolboxName | if . == null or . == \"\" then empty elif type == \"object\" then (.title // .properties.name // (.identifier | split(\"/\") | .[-1])) else (split(\"/\") | .[-1]) end }}"
}
},
"variables": {},
"verbose": false
}
],
"connections": [
{
"sourceIdentifier": "trigger",
"targetIdentifier": "fetch_agent"
},
{
"sourceIdentifier": "fetch_agent",
"targetIdentifier": "invoke_agent"
}
]
}
Invoke Foundry model (foundry_invoke_model_wf) (click to expand)
{
"identifier": "foundry_invoke_model_wf",
"title": "Invoke Foundry model",
"icon": "Azure",
"category": "Azure AI Foundry",
"description": "Invoke a chat-capable model deployment via project openai/v1/responses (background + SSE/webhook completion). Non-chat deployments (e.g. Decision/SystemOne) are filtered out. projectArmId is taken from the deployment's Foundry project relation.",
"allowAnyoneToViewRuns": true,
"nodes": [
{
"identifier": "trigger",
"config": {
"type": "SELF_SERVE_TRIGGER",
"published": true,
"permissions": {
"roles": [
"Admin",
"Member"
]
},
"contexts": [
{
"on": "ENTITY",
"userInput": "deployment"
}
],
"userInputs": {
"properties": {
"deployment": {
"type": "string",
"format": "entity",
"blueprint": "azureFoundryModelDeployment",
"title": "Model deployment",
"description": "Chat-capable deployments only (capabilities.chat_completion=true).",
"dataset": {
"combinator": "and",
"rules": [
{
"property": "supportsChat",
"operator": "=",
"value": true
}
]
}
},
"input": {
"type": "string",
"title": "Input",
"format": "multi-line"
},
"conversationId": {
"type": "string",
"format": "entity",
"blueprint": "azureFoundryConversation",
"title": "Conversation",
"description": "Optional Foundry conversation. Leave empty to create a new conversation.",
"dependsOn": [
"deployment"
],
"dataset": {
"combinator": "and",
"rules": [
{
"relation": "foundryProject",
"operator": "=",
"value": {
"jqQuery": ".form.deployment.relations.foundryProject | if type == \"object\" then .identifier else . end"
}
}
]
}
}
},
"required": [
"deployment",
"input"
],
"order": [
"deployment",
"input",
"conversationId"
]
}
},
"variables": {},
"verbose": false
},
{
"identifier": "fetch_deployment",
"title": "Load deployment",
"icon": "Azure",
"config": {
"type": "WEBHOOK",
"url": "https://api.getport.io/v1/blueprints/azureFoundryModelDeployment/entities/{{ .outputs.trigger.deployment | @uri }}",
"method": "GET",
"synchronized": true,
"onFailure": "terminate"
},
"variables": {
"deploymentName": "{{ .result.response.data.entity.title }}",
"projectArmId": "{{ .result.response.data.entity.relations.foundryProject | if type == \"object\" then .identifier else . end }}"
},
"verbose": false
},
{
"identifier": "invoke_model",
"title": "Invoke model",
"icon": "Azure",
"config": {
"type": "INTEGRATION_ACTION",
"integrationProvider": "azure",
"integrationInvocationType": "invoke_model",
"installationId": "<your-installation-id>",
"onFailure": "terminate",
"integrationActionExecutionProperties": {
"projectArmId": "{{ .outputs.fetch_deployment.projectArmId }}",
"deploymentName": "{{ .outputs.fetch_deployment.deploymentName }}",
"input": "{{ .outputs.trigger.input }}",
"conversationId": "{{ .outputs.trigger.conversationId | if type == \"object\" then .identifier else . end }}"
}
},
"variables": {},
"verbose": false
}
],
"connections": [
{
"sourceIdentifier": "trigger",
"targetIdentifier": "fetch_deployment"
},
{
"sourceIdentifier": "fetch_deployment",
"targetIdentifier": "invoke_model"
}
]
}