Skip to content

warn on duplicate agent services referencing the same agent name #8872

Description

@therealjohn

Warn during deploy when two agents reference the same name, which is the unique identifier in Foundry for an agent.

Consider an example like:

toolbox-agent-2:
        project: src/toolbox-agent-2
        host: azure.ai.agent
        language: docker
        docker:
            remoteBuild: true
        container:
            resources:
                cpu: "0.5"
                memory: 1Gi
        description: |
            An Agent Framework agent with Foundry Toolbox integration.
        environmentVariables:
            - name: AZURE_AI_MODEL_DEPLOYMENT_NAME
              value: gpt-5.4-mini
            - name: TOOLBOX_ENDPOINT
              value: '{{TOOLBOX_ENDPOINT}}'
        kind: hosted
        metadata:
            tags:
                - Agent Framework
                - AI Agent Hosting
                - Azure AI AgentServer
                - Responses Protocol
                - Streaming
        name: toolbox-agent-2
        protocols:
            - protocol: responses
              version: 1.0.0
        startupCommand: python main.py
    toolbox-agent-4:
        project: src/toolbox-agent-2
        host: azure.ai.agent
        language: docker
        docker:
            remoteBuild: true
        container:
            resources:
                cpu: "0.5"
                memory: 1Gi
        description: |
            An Agent Framework agent with Foundry Toolbox integration.
        environmentVariables:
            - name: AZURE_AI_MODEL_DEPLOYMENT_NAME
              value: gpt-5.4-mini
            - name: TOOLBOX_ENDPOINT
              value: '{{TOOLBOX_ENDPOINT}}'
        kind: hosted
        metadata:
            tags:
                - Agent Framework
                - AI Agent Hosting
                - Azure AI AgentServer
                - Responses Protocol
                - Streaming
        name: toolbox-agent-2
        protocols:
            - protocol: responses
              version: 1.0.0
        startupCommand: python main.py

Metadata

Metadata

Assignees

Labels

ext-agentsazure.ai.agents extension

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions