Skip to content

Update container deploy schema: migrate to protocol_versions and container_configuration.image #8828

Description

@v1212

Problem

The container deploy path in the azure.ai.agents extension still uses the old agent definition schema:

  • container_protocol_versions (should be unified to protocol_versions)
  • Top-level image field (should move to container_configuration.image)

The code deploy path already uses the new schema (protocol_versions + code_configuration), so only the container deploy path needs updating.

Affected files

  • cli/azd/extensions/azure.ai.agents/internal/pkg/agents/agent_api/models.go - HostedAgentDefinition struct and MarshalJSON/UnmarshalJSON
  • cli/azd/extensions/azure.ai.agents/internal/pkg/agents/agent_yaml/map.go - container deploy definition builder

Expected behavior

Container deploy should send:

json { "kind": "hosted", "container_configuration": { "image": "xxx.azurecr.io/..." }, "protocol_versions": [{"protocol": "responses", "version": "1.0.0"}], "cpu": "0.5", "memory": "1Gi" }

Instead of the current:

json { "kind": "hosted", "image": "xxx.azurecr.io/...", "container_protocol_versions": [{"protocol": "responses", "version": "1.0.0"}], "cpu": "0.5", "memory": "1Gi" }

Notes

  • Confirm with service team whether old schema is still supported (backward compat) or if this is a breaking change
  • May need feature flag coordination if the service hasn't fully rolled out the new schema yet

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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