azure-search-openai-demo-csharp
azure-search-openai-demo-csharp copied to clipboard
westeurope not allowed for openAiResourceGroupLocation
Please provide us with the following information:
This issue is for a: (mark with an x)
- [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
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
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.
This is because the bicep file.
https://github.com/Azure-Samples/azure-search-openai-demo-csharp/blob/64a4bcd0d7fa4c64565727cd74577b466a378e6d/infra/main.bicep#L14C34-L14C34
As a workaround if you add westeurope as one of the locations on the list, it should work.