Azure-Samples / Azure-Samples/netaivideoanalyzer

OpenAI resources failed to list keys on the portal

Open
#9 2 comments 1 reaction 1 assignee Claimed by @elbruno View on GitHub
documentation enhancement
Dominant language
C#
Stars
30
Forks
14
PR merge metrics
No merged PRs in 30d

Description

**Description**
When adding the user secrets, open openAi on the portal, click `Keys and Endpoint`, failed to list key, as follows:
![image](https://github.com/user-attachments/assets/f892bb5d-a835-4399-9c76-c031d0800bc7)

![image](https://github.com/user-attachments/assets/50e03476-7d5a-4622-92b7-a38a77e9a54e)

**Repro steps**
1. Create a new Codespace.
2. Run `azd auth login`.
3. Run `azd up`(azd provision successful).
4. Open openAi on the portal -> click `Keys and Endpoint`.

**Expected behavior**
The keys of OpenAI can be listed on the portal.

**Suggestion**
There are two suggestions:
1. Change the value of `disableLocalAuth` to `false` in the `infra\openai\openai.module.bicep` file.
2. Add the command to get the keys of openAi in Readme.md:
```
az cognitiveservices account keys list --name "YourOpenAIResourceName" --resource-group "MyResourceGroup"
```

@elbruno and @hemarina for notification.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.