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
- Azure OpenAI Assistants are currently available in Sweden Central, East US 2, and Australia East. For more information about model availability in those regions, see the [models guide](../concepts/models.md).
26
27
- We recommend reviewing the [Responsible AI transparency note](/legal/cognitive-services/openai/transparency-note?context=%2Fazure%2Fai-services%2Fopenai%2Fcontext%2Fcontext&tabs=text) and other [Responsible AI resources](/legal/cognitive-services/openai/overview?context=%2Fazure%2Fai-services%2Fopenai%2Fcontext%2Fcontext) to familiarize yourself with the capabilities and limitations of the Azure OpenAI Service.
27
-
- An Azure OpenAI resource with the `gpt-4 (1106-preview)` model deployed was used testing this example.
28
+
- An Azure OpenAI resource with the `gpt-4 (1106-preview)` model deployed was used testing this example.
29
+
- Azure OpenAI RBAC role of `Cognitive Services User`.
30
+
31
+
## Passwordless authentication is recommended
32
+
33
+
For passwordless authentication, you need to
34
+
35
+
1. Use the `@azure/identity` package.
36
+
1. Assign the `Cognitive Services User` role to your user account. This can be done in the Azure portal under **Access control (IAM)** > **Add role assignment**.
37
+
1. Sign in with the Azure CLI such as `az login`.
28
38
29
39
## Set up
30
40
@@ -113,7 +123,6 @@ To use the service key for authentication, you can create and run an assistant w
113
123
114
124
#### [JavaScript](#tab/javascript)
115
125
116
-
117
126
Sign in to Azure with `az login` then create and run an assistant with the following **recommdended** passwordless Javascript module (index.mjs):
0 commit comments