You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
Minimal steps to reproduce
azd init -t azure-search-openai-demo-csharp
azd up
select subscription: My internal subscription with openai access
select location: westeurope, closest with openai presence
RESPONSE 400: 400 Bad Request
ERROR CODE: InvalidTemplate
{
"error": {
"code": "InvalidTemplate",
"message": "Deployment template validation failed: 'The provided value for the template parameter 'openAiResourceGroupLocation' is not valid. The value 'westeurope' is not part of the allowed value(s): 'canadaeast,eastus,eastus2,francecentral,switzerlandnorth,uksouth,japaneast,northcentralus'.'.",
"additionalInfo": [
{
"type": "TemplateViolation",
"info": {
"lineNumber": 1,
"linePosition": 1353,
"path": "properties.template.parameters.openAiResourceGroupLocation.allowedValues"
}
}
]
}
}
TraceID: f1cced339653b6f0b3c36d2e5bb3c24f
Expected/desired behavior
I think this validation is incorrect: The value should be allowed, so the template should be updated?
If the template is correct and the value should indeed not be allowed, please explain why to the user.
Ideally azd should only accept regions that are allowed by the template, with explanation.
OS and Version?
Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Windows 23H2 (22631.2715), WSL2 Ubuntu 22.04.3
Versions
Mention any other details that might be useful
Thanks! We'll be in touch soon.
The text was updated successfully, but these errors were encountered:
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
ERROR: deployment failed: failing invoking action 'provision', error deploying infrastructure: starting deployment to subscription: PUT https://management.azure.com/subscriptions/1ba0c403-6df1-461d-a7bc-c5471edbd702/providers/Microsoft.Resources/deployments/chatsample-1700223230
RESPONSE 400: 400 Bad Request
ERROR CODE: InvalidTemplate
{
"error": {
"code": "InvalidTemplate",
"message": "Deployment template validation failed: 'The provided value for the template parameter 'openAiResourceGroupLocation' is not valid. The value 'westeurope' is not part of the allowed value(s): 'canadaeast,eastus,eastus2,francecentral,switzerlandnorth,uksouth,japaneast,northcentralus'.'.",
"additionalInfo": [
{
"type": "TemplateViolation",
"info": {
"lineNumber": 1,
"linePosition": 1353,
"path": "properties.template.parameters.openAiResourceGroupLocation.allowedValues"
}
}
]
}
}
TraceID: f1cced339653b6f0b3c36d2e5bb3c24f
Expected/desired behavior
OS and Version?
Versions
Mention any other details that might be useful
The text was updated successfully, but these errors were encountered: