Skip to content

Commit 072fa6e

Browse files
committed
update how-to sdks
1 parent 912564d commit 072fa6e

17 files changed

+326
-1073
lines changed

articles/ai-services/document-intelligence/how-to-guides/includes/set-environment-variables.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ Environment variables in Windows aren't case-sensitive. They're typically declar
2929
1. Set your key variable:
3030

3131
```console
32-
setx FR_KEY <yourKey>
32+
setx DI_KEY <yourKey>
3333
```
3434

3535
1. Set your endpoint variable
3636

3737
```console
38-
setx FR_ENDPOINT <yourEndpoint>
38+
setx DI_ENDPOINT <yourEndpoint>
3939
```
4040

4141
1. After you set your environment variables, close the Command Prompt window. The values remain modified until you change them again.
@@ -49,9 +49,9 @@ Here are a few more helpful commands to use with environment variables:
4949

5050
| Command | Action | Example |
5151
|---------|--------|---------|
52-
| `setx VARIABLE_NAME=` | Delete the environment variable by setting the value to an empty string.| `setx FR_KEY=` |
53-
| `setx VARIABLE_NAME=value` | Set or change the value of an environment variable.| `setx FR_KEY=<yourKey>`|
54-
| `set VARIABLE_NAME` | Display the value of a specific environment variable.| `set FR_KEY` |
52+
| `setx VARIABLE_NAME=` | Delete the environment variable by setting the value to an empty string.| `setx DI_KEY=` |
53+
| `setx VARIABLE_NAME=value` | Set or change the value of an environment variable.| `setx DI_KEY=<yourKey>`|
54+
| `set VARIABLE_NAME` | Display the value of a specific environment variable.| `set DI_KEY` |
5555
| `set`| Display all environment variables.| `set`|
5656

5757
#### [macOS](#tab/macOS)
@@ -77,10 +77,10 @@ To set an environment variable permanently, place an export command in your Bash
7777
1. Use a text editor to open the *~/.bash_profile* file and add the following command to create a permanent environment variable:
7878

7979
```bash
80-
export FR_KEY=<yourKey> FR_ENDPOINT=<yourEndpoint>
80+
export DI_KEY=<yourKey> DI_ENDPOINT=<yourEndpoint>
8181
```
8282

83-
Example: `export FR_KEY="<yourKey>"`
83+
Example: `export DI_KEY="<yourKey>"`
8484

8585
1. Save your changes to the *.bash_profile* file.
8686

@@ -97,9 +97,9 @@ Here are a few more helpful commands to use with environment variables:
9797

9898
| Command | Action | Example |
9999
|---------|--------|---------|
100-
| `unset VARIABLE_NAME` | Delete an environment variable.| `unset FR_KEY` |
101-
| `export VARIABLE_NAME=value` | Set or change the value of a temporary environment variable.| `export FR_KEY=<yourKey>` |
102-
| `printenv VARIABLE_NAME`</br>`echo $VARIABLE_NAME`| Display the value of a specific environment variable. With the `echo` command, precede the variable with `$`.| `printenv FR_KEY` </br>`echo $FR_KEY`|
100+
| `unset VARIABLE_NAME` | Delete an environment variable.| `unset DI_KEY` |
101+
| `export VARIABLE_NAME=value` | Set or change the value of a temporary environment variable.| `export DI_KEY=<yourKey>` |
102+
| `printenv VARIABLE_NAME`</br>`echo $VARIABLE_NAME`| Display the value of a specific environment variable. With the `echo` command, precede the variable with `$`.| `printenv DI_KEY` </br>`echo $DI_KEY`|
103103
| `printenv` | Display all environment variables.| `printenv` |
104104

105105
#### [Linux](#tab/linux)
@@ -111,13 +111,13 @@ The `export` command sets the variable and exports it to the global environment,
111111
1. Set your key variable:
112112

113113
```bash
114-
export FR_KEY=<yourKey>
114+
export DI_KEY=<yourKey>
115115
```
116116

117117
1. Set your endpoint variable:
118118

119119
```bash
120-
export FR_ENDPOINT=<yourEndpoint>
120+
export DI_ENDPOINT=<yourEndpoint>
121121
```
122122

123123
To set an environment variable permanently, place an export command in your Bash `~/.bashrc` startup script:
@@ -128,7 +128,7 @@ To set an environment variable permanently, place an export command in your Bash
128128
export <VARIABLE>=<value>
129129
```
130130

131-
Example: `export FR_KEY=<yourKey>`
131+
Example: `export DI_KEY=<yourKey>`
132132

133133
1. Save your changes to the *.bashrc* file.
134134

@@ -145,9 +145,9 @@ Here are a few more helpful commands to use with environment variables:
145145

146146
| Command | Action | Example |
147147
|---------|--------|---------|
148-
| `unset VARIABLE_NAME`| Delete an environment variable.|`unset FR_KEY=` |
149-
| `export VARIABLE_NAME=value` | Set or change the value of a temporary environment variable.| `export FR_KEY={yourKey}`|
150-
| `printenv VARIABLE_NAME`</br>`echo $VARIABLE_NAME`| Display the value of an environment variable. With the `echo` command, precede the variable with `$`.| `printenv FR_KEY` </br>`echo $FR_KEY`|
148+
| `unset VARIABLE_NAME`| Delete an environment variable.|`unset DI_KEY=` |
149+
| `export VARIABLE_NAME=value` | Set or change the value of a temporary environment variable.| `export DI_KEY={yourKey}`|
150+
| `printenv VARIABLE_NAME`</br>`echo $VARIABLE_NAME`| Display the value of an environment variable. With the `echo` command, precede the variable with `$`.| `printenv DI_KEY` </br>`echo $DI_KEY`|
151151
| `printenv`| Display all environment variables.|`printenv`|
152152

153153
---

articles/ai-services/document-intelligence/how-to-guides/includes/v3-0/csharp-sdk.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ monikerRange: 'doc-intel-3.1.0 || doc-intel-3.0.0'
6868

6969
:::image type="content" source="../../../media/quickstarts/create-new-project.png" alt-text="Screenshot of Visual Studio's create new project page.":::
7070

71-
1. In the **Configure your new project** page, under **Project name** enter *formRecognizer_app*. Then select **Next**.
71+
1. In the **Configure your new project** page, under **Project name** enter **docIntelligence_app**. Then select **Next**.
7272

7373
:::image type="content" source="../../../media/quickstarts/configure-new-project-console.png" alt-text="Screenshot of Visual Studio's configure new project page.":::
7474

75-
1. In the **Additional information** page, select **.NET 6.0 (Long-term support)**, and then select **Create**.
75+
1. In the **Additional information** page, select **.NET 8.0 (Long-term support)**, and then select **Create**.
7676

7777
:::image type="content" source="../../../media/quickstarts/additional-information.png" alt-text="Screenshot of Visual Studio's additional information page.":::
7878

@@ -81,7 +81,7 @@ monikerRange: 'doc-intel-3.1.0 || doc-intel-3.0.0'
8181

8282
### Install the client library with NuGet
8383

84-
1. Right-click on your **formRecognizer_quickstart** project and select **Manage NuGet Packages...** .
84+
1. Right-click on your **docIntelligence_app** project and select **Manage NuGet Packages...** .
8585

8686
:::image type="content" source="../../../media/quickstarts/select-nuget-package-console.png" alt-text="Screenshot of select NuGet package window in Visual Studio.":::
8787

@@ -127,8 +127,8 @@ using Azure;
127127
using Azure.AI.FormRecognizer.DocumentAnalysis;
128128

129129
//use your `key` and `endpoint` environment variables to create your `AzureKeyCredential` and `DocumentAnalysisClient` instances
130-
string key = Environment.GetEnvironmentVariable("FR_KEY");
131-
string endpoint = Environment.GetEnvironmentVariable("FR_ENDPOINT");
130+
string key = Environment.GetEnvironmentVariable("DI_KEY");
131+
string endpoint = Environment.GetEnvironmentVariable("DI_ENDPOINT");
132132
AzureKeyCredential credential = new AzureKeyCredential(key);
133133
DocumentAnalysisClient client = new DocumentAnalysisClient(new Uri(endpoint), credential);
134134

@@ -196,8 +196,8 @@ using Azure;
196196
using Azure.AI.FormRecognizer.DocumentAnalysis;
197197

198198
//use your `key` and `endpoint` environment variables to create your `AzureKeyCredential` and `DocumentAnalysisClient` instances
199-
string key = Environment.GetEnvironmentVariable("FR_KEY");
200-
string endpoint = Environment.GetEnvironmentVariable("FR_ENDPOINT");
199+
string key = Environment.GetEnvironmentVariable("DI_KEY");
200+
string endpoint = Environment.GetEnvironmentVariable("DI_ENDPOINT");
201201
AzureKeyCredential credential = new AzureKeyCredential(key);
202202
DocumentAnalysisClient client = new DocumentAnalysisClient(new Uri(endpoint), credential);
203203

@@ -297,8 +297,8 @@ using Azure;
297297
using Azure.AI.FormRecognizer.DocumentAnalysis;
298298

299299
//use your `key` and `endpoint` environment variables to create your `AzureKeyCredential` and `DocumentAnalysisClient` instances
300-
string key = Environment.GetEnvironmentVariable("FR_KEY");
301-
string endpoint = Environment.GetEnvironmentVariable("FR_ENDPOINT");
300+
string key = Environment.GetEnvironmentVariable("DI_KEY");
301+
string endpoint = Environment.GetEnvironmentVariable("DI_ENDPOINT");
302302
AzureKeyCredential credential = new AzureKeyCredential(key);
303303
DocumentAnalysisClient client = new DocumentAnalysisClient(new Uri(endpoint), credential);
304304

@@ -401,8 +401,8 @@ using Azure;
401401
using Azure.AI.FormRecognizer.DocumentAnalysis;
402402

403403
//use your `key` and `endpoint` environment variables to create your `AzureKeyCredential` and `DocumentAnalysisClient` instances
404-
string key = Environment.GetEnvironmentVariable("FR_KEY");
405-
string endpoint = Environment.GetEnvironmentVariable("FR_ENDPOINT");
404+
string key = Environment.GetEnvironmentVariable("DI_KEY");
405+
string endpoint = Environment.GetEnvironmentVariable("DI_ENDPOINT");
406406
AzureKeyCredential credential = new AzureKeyCredential(key);
407407
DocumentAnalysisClient client = new DocumentAnalysisClient(new Uri(endpoint), credential);
408408

@@ -515,8 +515,8 @@ using Azure;
515515
using Azure.AI.FormRecognizer.DocumentAnalysis;
516516

517517
//use your `key` and `endpoint` environment variables to create your `AzureKeyCredential` and `DocumentAnalysisClient` instances
518-
string key = Environment.GetEnvironmentVariable("FR_KEY");
519-
string endpoint = Environment.GetEnvironmentVariable("FR_ENDPOINT");
518+
string key = Environment.GetEnvironmentVariable("DI_KEY");
519+
string endpoint = Environment.GetEnvironmentVariable("DI_ENDPOINT");
520520
AzureKeyCredential credential = new AzureKeyCredential(key);
521521
DocumentAnalysisClient client = new DocumentAnalysisClient(new Uri(endpoint), credential);
522522

@@ -629,8 +629,8 @@ using Azure;
629629
using Azure.AI.FormRecognizer.DocumentAnalysis;
630630

631631
//use your `key` and `endpoint` environment variables to create your `AzureKeyCredential` and `DocumentAnalysisClient` instances
632-
string key = Environment.GetEnvironmentVariable("FR_KEY");
633-
string endpoint = Environment.GetEnvironmentVariable("FR_ENDPOINT");
632+
string key = Environment.GetEnvironmentVariable("DI_KEY");
633+
string endpoint = Environment.GetEnvironmentVariable("DI_ENDPOINT");
634634
AzureKeyCredential credential = new AzureKeyCredential(key);
635635
DocumentAnalysisClient client = new DocumentAnalysisClient(new Uri(endpoint), credential);
636636

@@ -725,8 +725,8 @@ using Azure;
725725
using Azure.AI.FormRecognizer.DocumentAnalysis;
726726

727727
//use your `key` and `endpoint` environment variables to create your `AzureKeyCredential` and `DocumentAnalysisClient` instances
728-
string key = Environment.GetEnvironmentVariable("FR_KEY");
729-
string endpoint = Environment.GetEnvironmentVariable("FR_ENDPOINT");
728+
string key = Environment.GetEnvironmentVariable("DI_KEY");
729+
string endpoint = Environment.GetEnvironmentVariable("DI_ENDPOINT");
730730
AzureKeyCredential credential = new AzureKeyCredential(key);
731731
DocumentAnalysisClient client = new DocumentAnalysisClient(new Uri(endpoint), credential);
732732

@@ -835,8 +835,8 @@ using Azure;
835835
using Azure.AI.FormRecognizer.DocumentAnalysis;
836836

837837
//use your `key` and `endpoint` environment variables to create your `AzureKeyCredential` and `DocumentAnalysisClient` instances
838-
string key = Environment.GetEnvironmentVariable("FR_KEY");
839-
string endpoint = Environment.GetEnvironmentVariable("FR_ENDPOINT");
838+
string key = Environment.GetEnvironmentVariable("DI_KEY");
839+
string endpoint = Environment.GetEnvironmentVariable("DI_ENDPOINT");
840840
AzureKeyCredential credential = new AzureKeyCredential(key);
841841
DocumentAnalysisClient client = new DocumentAnalysisClient(new Uri(endpoint), credential);
842842

0 commit comments

Comments
 (0)