Skip to content

[ai agents extension] AI agent init fails in westus2 (‘gpt-4o-mini’ not found), but works in westus – enhance error messaging for unsupported locations #6147

@Menghua1

Description

@Menghua1

Description:
When deploying calculator-agent using the azd ai agent and selecting the westus2 region (model is gpt-4o-mini), an error message model 'gpt-4o-mini' not found in AI model catalog appears, as shown in the image below.
However, switching the region to westus works successfully.
Image

Steps to Reproduce:

  1. Initialize the project: azd init --template Azure-Samples/ai-foundry-starter-basic.
  2. Initialize AI agent: azd ai agent init -m https://github.com/coreai-microsoft/foundry-golden-path/blob/main/idea-to-proto/01-build-agent-in-code/agent-catalog-code-samples/calculator-agent/agent.yaml select the westus2 region

Environment:

Expected Behavior:
The selected region does not support the model, and initialization will fail immediately. To improve user experience, it is recommended that the CLI prompt the user to select another supported region when the model is unavailable.

@JeffreyCA and @rajeshkamal5050 for notification.

Metadata

Metadata

Assignees

Labels

ext-agentsazure.ai.agents extension

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions