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
(✓) Done: Retrieving locations...
? Enter a value for the 'openAiResourceGroupLocation' infrastructure parameter:
panic: runtime error: index out of range [-1]
goroutine 1 [running]:
github.com/azure/azure-dev/cli/azd/pkg/azureutil.PromptLocationWithFilter({0x555bf5920b50, 0xc0004d1110}, {0xc0004ba870, 0x24}, {0xc00004c2d0, 0x4d}, {0x0, 0x0}, {0x555bf5929be8, 0xc0004c4680}, ...)
/mnt/vss/_work/1/s/cli/azd/pkg/azureutil/location.go:88 +0x70d
github.com/azure/azure-dev/cli/azd/pkg/prompt.(*DefaultPrompter).PromptLocation(0xc000497080, {0x555bf5920b50, 0xc0004d1110}, {0xc0004ba870, 0x24}, {0xc00004c2d0?, 0x0?}, 0x0?)
/mnt/vss/_work/1/s/cli/azd/pkg/prompt/prompter.go:94 +0x98
github.com/azure/azure-dev/cli/azd/pkg/infra/provisioning/bicep.(*BicepProvider).promptForParameter(0xc0004ee340, {0x555bf5920b50, 0xc0004d1110}, {0xc00021c240, 0x1b}, {{0xc0002fa326, 0x6}, {0x0, 0x0}, 0xc0002ac258, ...})
I think it said -1 index not allowed, though thats cut off in my terminal now.
Once I re-ran and explicitly up/down'ed through the options, I could select the first location.
I also don't know if I accidentally pressed some other weird key as I was jamming pretty hard at the time but I also think its funny that dancing causes a panic... at the disco.
To Reproduce
azd up on above repo, try to go with japaneast by not explicitly selecting anything else, just pressing enter.
Environment
GitHub Codespaces
The text was updated successfully, but these errors were encountered:
Output from
azd version
@pamelafox ➜ /workspaces/azure-search-openai-demo (aca) $ azd version
azd version 1.2.0 (commit 99ea757)
Describe the bug
For https://github.com/Azure-Samples/azure-search-openai-demo/tree/aca when running azd up, I opted to just go with the top location in the allowed subset, but kept getting panics:
I think it said -1 index not allowed, though thats cut off in my terminal now.
Once I re-ran and explicitly up/down'ed through the options, I could select the first location.
I also don't know if I accidentally pressed some other weird key as I was jamming pretty hard at the time but I also think its funny that dancing causes a panic... at the disco.
To Reproduce
azd up
on above repo, try to go with japaneast by not explicitly selecting anything else, just pressing enter.Environment
GitHub Codespaces
The text was updated successfully, but these errors were encountered: