Skip to content

[azure.ai.agents] Terraform eject does not provision azure.ai.connection services #9111

Description

@hund030

Problem

azd ai agent init --infra=terraform does not include azure.ai.connection services from azure.yaml in the generated Terraform infrastructure.

As a result, a project using Terraform eject provisions the Foundry account and project but omits declared Foundry project connections.

Repro

  1. Create an azure.yaml with an azure.ai.project service and an azure.ai.connection service.

  2. Run:

    azd ai agent init --infra=terraform
    azd provision --no-prompt
  3. Inspect generated infra/ files and the resulting Foundry project.

Expected

  • Terraform eject generates resources for declared project connections.
  • azd provision creates those connections under the Foundry project.
  • Connection category, target, authentication type, credentials, and metadata
    are preserved.
  • Provision outputs expose the created connection names.

Actual

  • No Terraform resource is generated for azure.ai.connection services.
  • The Foundry project is provisioned without its declared connection

Related

#8350
#9046

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions