Skip to content

Commit 900333c

Browse files
authored
Merge pull request #107988 from lanicolas/patch-30
Changed code section
2 parents 14b4ca0 + 61782dd commit 900333c

File tree

1 file changed

+1
-38
lines changed
  • articles/applied-ai-services/metrics-advisor/includes/quickstarts

1 file changed

+1
-38
lines changed

articles/applied-ai-services/metrics-advisor/includes/quickstarts/csharp.md

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -79,66 +79,29 @@ Create and assign persistent environment variables for your key and endpoint.
7979

8080
```CMD
8181
setx METRICS_ADVISOR_ENDPOINT "REPLACE_WITH_YOUR_ENDPOINT_HERE"
82-
```
83-
84-
```CMD
8582
setx METRICS_ADVISOR_KEY "REPLACE_WITH_YOUR_KEY_VALUE_HERE"
86-
```
87-
88-
```CMD
8983
setx METRICS_ADVISOR_API_KEY "REPLACE_WITH_YOUR_KEY_VALUE_HERE"
90-
```
91-
92-
```CMD
9384
setx SQL_CONNECTION_STRING "REPLACE_WITH_YOUR_UNIQUE_SQL_CONNECTION_STRING"
94-
```
95-
96-
```CMD
9785
setx SQL_QUERY "REPLACE_WITH_YOUR_UNIQUE_SQL_QUERY_BASED_ON_THE_UNDERLYING_STRUCTURE_OF_YOUR_DATA"
9886
```
9987

10088
# [PowerShell](#tab/powershell)
10189

10290
```powershell
10391
[System.Environment]::SetEnvironmentVariable('METRICS_ADVISOR_ENDPOINT', 'REPLACE_WITH_YOUR_ENDPOINT_HERE', 'User')
104-
```
105-
106-
```powershell
10792
[System.Environment]::SetEnvironmentVariable('METRICS_ADVISOR_KEY', 'REPLACE_WITH_YOUR_KEY_VALUE_HERE', 'User')
108-
```
109-
110-
```powershell
11193
[System.Environment]::SetEnvironmentVariable('METRICS_ADVISOR_API_KEY', 'REPLACE_WITH_YOUR_KEY_VALUE_HERE', 'User')
112-
```
113-
114-
```powershell
11594
[System.Environment]::SetEnvironmentVariable('SQL_CONNECTION_STRING', 'REPLACE_WITH_YOUR_UNIQUE_SQL_CONNECTION_STRING', 'User')
116-
```
117-
118-
```powershell
11995
[System.Environment]::SetEnvironmentVariable('SQL_QUERY', 'REPLACE_WITH_YOUR_UNIQUE_SQL_QUERY_BASED_ON_THE_UNDERLYING_STRUCTURE_OF_YOUR_DATA', 'User')
12096
```
12197

12298
# [Bash](#tab/bash)
12399

124100
```Bash
125101
echo export METRICS_ADVISOR_ENDPOINT="REPLACE_WITH_YOUR_ENDPOINT_HERE" >> /etc/environment && source /etc/environment
126-
```
127-
128-
129-
```Bash
130102
echo export METRICS_ADVISOR_KEY="REPLACE_WITH_YOUR_KEY_VALUE_HERE" >> /etc/environment && source /etc/environment
131-
```
132-
133-
```Bash
134103
echo export METRICS_ADVISOR_API_KEY="REPLACE_WITH_YOUR_KEY_VALUE_HERE" >> /etc/environment && source /etc/environment
135-
```
136-
137-
```Bash
138104
echo export SQL_CONNECTION_STRING="REPLACE_WITH_YOUR_UNIQUE_SQL_CONNECTION_STRING" >> /etc/environment && source /etc/environment
139-
```
140-
141-
```Bash
142105
echo export SQL_QUERY="REPLACE_WITH_YOUR_UNIQUE_SQL_QUERY_BASED_ON_THE_UNDERLYING_STRUCTURE_OF_YOUR_DATA" >> /etc/environment && source /etc/environment
143106
```
144107

@@ -361,4 +324,4 @@ Run the application from your application directory with the `dotnet run` comman
361324

362325
```dotnet
363326
dotnet run
364-
```
327+
```

0 commit comments

Comments
 (0)