Skip to content

Commit 7b4f2a0

Browse files
authored
Merge pull request #250175 from MicrosoftDocs/main
Merge main to live, 4AM
2 parents a40d53e + 181b2d3 commit 7b4f2a0

File tree

97 files changed

+1281
-943
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+1281
-943
lines changed

articles/active-directory/reports-monitoring/reference-azure-ad-sla-performance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The SLA attainment is truncated at three places after the decimal. Numbers aren'
5353
| May | 99.999% | 99.999% | 99.999% |
5454
| June | 99.999% | 99.999% | 99.999% |
5555
| July | 99.999% | 99.999% | 99.999% |
56-
| August | 99.999% | 99.999% | |
56+
| August | 99.999% | 99.999% | 99.999% |
5757
| September | 99.999% | 99.998% | |
5858
| October | 99.999% | 99.999% | |
5959
| November | 99.998% | 99.999% | |

articles/ai-services/openai/includes/chatgpt-dotnet.md

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -30,35 +30,7 @@ keywords:
3030
3131
## Set up
3232

33-
### Create a new .NET Core application
34-
35-
In a console window (such as cmd, PowerShell, or Bash), use the `dotnet new` command to create a new console app with the name `azure-openai-quickstart`. This command creates a simple "Hello World" project with a single C# source file: *Program.cs*.
36-
37-
```dotnetcli
38-
dotnet new console -n azure-openai-quickstart
39-
```
40-
41-
Change your directory to the newly created app folder. You can build the application with:
42-
43-
```dotnetcli
44-
dotnet build
45-
```
46-
47-
The build output should contain no warnings or errors.
48-
49-
```output
50-
...
51-
Build succeeded.
52-
0 Warning(s)
53-
0 Error(s)
54-
...
55-
```
56-
57-
Install the OpenAI .NET client library with:
58-
59-
```dotnetcli
60-
dotnet add package Azure.AI.OpenAI --prerelease
61-
```
33+
[!INCLUDE [Create a new .NET application](./dotnet-new-application.md)]
6234

6335
[!INCLUDE [get-key-endpoint](get-key-endpoint.md)]
6436

articles/ai-services/openai/includes/connect-your-data-studio.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ ms.date: 08/25/2023
1111
recommendations: false
1212
---
1313

14+
## Add your data using Azure OpenAI Studio
15+
1416
Navigate to [Azure OpenAI Studio](https://oai.azure.com/) and sign-in with credentials that have access to your Azure OpenAI resource. During or after the sign-in workflow, select the appropriate directory, Azure subscription, and Azure OpenAI resource.
1517

1618
1. Select the **Chat playground** tile.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
services: cognitive-services
3+
manager: nitinme
4+
author: travisw
5+
ms.author: travisw
6+
ms.service: cognitive-services
7+
ms.subservice: openai
8+
ms.topic: include
9+
ms.date: 08/29/2023
10+
---
11+
12+
### Create a new .NET Core application
13+
14+
In a console window (such as cmd, PowerShell, or Bash), use the `dotnet new` command to create a new console app with the name `azure-openai-quickstart`. This command creates a simple "Hello World" project with a single C# source file: *Program.cs*.
15+
16+
```dotnetcli
17+
dotnet new console -n azure-openai-quickstart
18+
```
19+
20+
Change your directory to the newly created app folder. You can build the application with:
21+
22+
```dotnetcli
23+
dotnet build
24+
```
25+
26+
The build output should contain no warnings or errors.
27+
28+
```output
29+
...
30+
Build succeeded.
31+
0 Warning(s)
32+
0 Error(s)
33+
...
34+
```
35+
36+
Install the OpenAI .NET client library with:
37+
38+
```console
39+
dotnet add package Azure.AI.OpenAI --prerelease
40+
```

articles/ai-services/openai/includes/dotnet.md

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -28,35 +28,7 @@ keywords:
2828
2929
## Set up
3030

31-
### Create a new .NET Core application
32-
33-
In a console window (such as cmd, PowerShell, or Bash), use the `dotnet new` command to create a new console app with the name `azure-openai-quickstart`. This command creates a simple "Hello World" project with a single C# source file: *Program.cs*.
34-
35-
```dotnetcli
36-
dotnet new console -n azure-openai-quickstart
37-
```
38-
39-
Change your directory to the newly created app folder. You can build the application with:
40-
41-
```dotnetcli
42-
dotnet build
43-
```
44-
45-
The build output should contain no warnings or errors.
46-
47-
```output
48-
...
49-
Build succeeded.
50-
0 Warning(s)
51-
0 Error(s)
52-
...
53-
```
54-
55-
Install the OpenAI .NET client library with:
56-
57-
```console
58-
dotnet add package Azure.AI.OpenAI --prerelease
59-
```
31+
[!INCLUDE [Create a new .NET application](./dotnet-new-application.md)]
6032

6133
[!INCLUDE [get-key-endpoint](get-key-endpoint.md)]
6234

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
---
2+
services: cognitive-services
3+
manager: nitinme
4+
author: travisw
5+
ms.author: travisw
6+
ms.service: cognitive-services
7+
ms.subservice: openai
8+
ms.topic: include
9+
ms.date: 08/29/2023
10+
---
11+
12+
## Retrieve required variables
13+
14+
To successfully make a call against Azure OpenAI, you need the following variables. This quickstart assumes you've uploaded your data to an Azure blob storage account and have an Azure Cognitive Search index created. See [Add your data using Azure AI studio](../use-your-data-quickstart.md?pivots=programming-language-studio)
15+
16+
|Variable name | Value |
17+
|--------------------------|-------------|
18+
| `AOAIEndpoint` | This value can be found in the **Keys & Endpoint** section when examining your Azure OpenAI resource from the Azure portal. Alternatively, you can find the value in **Azure AI studio** > **Chat playground** > **Code view**. An example endpoint is: `https://my-resoruce.openai.azure.com`.|
19+
| `AOAIKey` | This value can be found in **Resource management** > **Keys & Endpoint** section when examining your Azure OpenAI resource from the Azure portal. You can use either `KEY1` or `KEY2`. Always having two keys allows you to securely rotate and regenerate keys without causing a service disruption. |
20+
| `AOAIDeploymentId` | This value corresponds to the custom name you chose for your deployment when you deployed a model. This value can be found under **Resource Management** > **Deployments** in the Azure portal or alternatively under **Management** > **Deployments** in Azure AI studio.|
21+
| `SearchEndpoint` | This value can be found in the **Overview** section when examining your Azure Cognitive Search resource from the Azure portal. |
22+
| `SearchKey` | This value can be found in the **Resource management** > **Keys & Endpoint** section when examining your Azure Cognitive Search resource from the Azure portal. You can use either `KEY1` or `KEY2`. Always having two keys allows you to securely rotate and regenerate keys without causing a service disruption. |
23+
| `SearchIndex` | This value corresponds to the name of the index you created to store your data. You can find it in the **Overview** section when examining your Azure Cognitive Search resource from the Azure portal. |
24+
25+
### Environment variables
26+
27+
# [Command Line](#tab/command-line)
28+
29+
```CMD
30+
setx AOAIEndpoint REPLACE_WITH_YOUR_AOAI_ENDPOINT_VALUE_HERE
31+
```
32+
```CMD
33+
setx AOAIKey REPLACE_WITH_YOUR_AOAI_KEY_VALUE_HERE
34+
```
35+
```CMD
36+
setx AOAIDeploymentId REPLACE_WITH_YOUR_AOAI_DEPLOYMENT_VALUE_HERE
37+
```
38+
```CMD
39+
setx SearchEndpoint REPLACE_WITH_YOUR_AZURE_SEARCH_RESOURCE_VALUE_HERE
40+
```
41+
```CMD
42+
setx SearchKey REPLACE_WITH_YOUR_AZURE_SEARCH_RESOURCE_KEY_VALUE_HERE
43+
```
44+
```CMD
45+
setx SearchIndex REPLACE_WITH_YOUR_INDEX_NAME_HERE
46+
```
47+
48+
49+
# [PowerShell](#tab/powershell)
50+
51+
```powershell
52+
[System.Environment]::SetEnvironmentVariable('AOAIEndpoint', 'REPLACE_WITH_YOUR_AOAI_ENDPOINT_VALUE_HERE', 'User')
53+
```
54+
55+
```powershell
56+
[System.Environment]::SetEnvironmentVariable('AOAIKey', 'REPLACE_WITH_YOUR_AOAI_KEY_VALUE_HERE', 'User')
57+
```
58+
59+
```powershell
60+
[System.Environment]::SetEnvironmentVariable('AOAIDeploymentId', 'REPLACE_WITH_YOUR_AOAI_DEPLOYMENT_VALUE_HERE', 'User')
61+
```
62+
63+
```powershell
64+
[System.Environment]::SetEnvironmentVariable('SearchEndpoint', 'REPLACE_WITH_YOUR_AZURE_SEARCH_RESOURCE_VALUE_HERE', 'User')
65+
```
66+
67+
```powershell
68+
[System.Environment]::SetEnvironmentVariable('SearchKey', 'REPLACE_WITH_YOUR_AZURE_SEARCH_RESOURCE_KEY_VALUE_HERE', 'User')
69+
```
70+
71+
```powershell
72+
[System.Environment]::SetEnvironmentVariable('SearchIndex', 'REPLACE_WITH_YOUR_INDEX_NAME_HERE', 'User')
73+
```
74+
75+
# [Bash](#tab/bash)
76+
77+
```Bash
78+
export AOAIEndpoint=REPLACE_WITH_YOUR_AOAI_ENDPOINT_VALUE_HERE
79+
```
80+
```Bash
81+
export AOAIKey=REPLACE_WITH_YOUR_AOAI_KEY_VALUE_HERE
82+
```
83+
```Bash
84+
export AOAIDeploymentId=REPLACE_WITH_YOUR_AOAI_DEPLOYMENT_VALUE_HERE
85+
```
86+
```Bash
87+
export SearchEndpoint=REPLACE_WITH_YOUR_AZURE_SEARCH_RESOURCE_VALUE_HERE
88+
```
89+
```Bash
90+
export SearchKey=REPLACE_WITH_YOUR_AZURE_SEARCH_RESOURCE_KEY_VALUE_HERE
91+
```
92+
```Bash
93+
export SearchIndex=REPLACE_WITH_YOUR_INDEX_NAME_HERE
94+
```
95+
96+
---
97+
98+
> [!div class="nextstepaction"]
99+
> [I ran into an issue with the setup.](https://microsoft.qualtrics.com/jfe/form/SV_0Cl5zkG3CnDjq6O?PLanguage=REST&Pillar=AOAI&Product=ownData&Page=quickstart&Section=Set-up)

0 commit comments

Comments
 (0)