Skip to content

[Issue] "azd ai agent init" lets you select un-supported locations for AI models #7351

@pamelafox

Description

@pamelafox
  • Make sure you've installed the latest version using instructions

Output from azd version
azd version 1.24.0-beta.1-pr.6069275 (commit 2ef20fb) (stable)

Describe the bug

When I do "azd ai agent init", it allows me to select westcentralus and gpt-5.2, even though westcentralus does not support any models. Ideally the picker would restrict the valid locations.

This is the error you get upon deploying:

{
"error": {
"code": "InvalidTemplate",
"message": "Deployment template validation failed: 'The provided value for the template parameter 'location' is not valid. The value 'westcentralus' is not part of the allowed value(s): 'australiaeast,brazilsouth,canadacentral,canadaeast,eastus,eastus2,francecentral,germanywestcentral,italynorth,japaneast,koreacentral,northcentralus,norwayeast,polandcentral,southafricanorth,southcentralus,southeastasia,southindia,spaincentral,swedencentral,switzerlandnorth,uaenorth,uksouth,westus,westus2,westus3'.'.",
"additionalInfo": [
{
"type": "TemplateViolation",
"info": {
"lineNumber": 1,
"linePosition": 1376,
"path": "properties.template.parameters.location.allowedValues"
}
}
]
}
}

To Reproduce
"azd ai agent init"

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

ext-agentsazure.ai.agents extension

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions