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

Description

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 Rajesh Kamal (@rajeshkamal5050) for notification.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ext-agentsazure.ai.agents extension

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions