Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

westeurope not allowed for openAiResourceGroupLocation #241

Open
Tracked by #251
pdebruin opened this issue Nov 22, 2023 · 1 comment
Open
Tracked by #251

westeurope not allowed for openAiResourceGroupLocation #241

pdebruin opened this issue Nov 22, 2023 · 1 comment

Comments

@pdebruin
Copy link

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

Screenshot 2023-11-22 091820

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.

@luisquintanilla
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants