Skip to content

Commit 34becde

Browse files
authored
Merge pull request #107991 from lanicolas/patch-33
Unified code block
2 parents 900333c + b3b665e commit 34becde

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/python.md

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

5656
```CMD
5757
setx METRICS_ADVISOR_ENDPOINT "REPLACE_WITH_YOUR_ENDPOINT_HERE"
58-
```
59-
60-
```CMD
6158
setx METRICS_ADVISOR_KEY "REPLACE_WITH_YOUR_KEY_VALUE_HERE"
62-
```
63-
64-
```CMD
6559
setx METRICS_ADVISOR_API_KEY "REPLACE_WITH_YOUR_KEY_VALUE_HERE"
66-
```
67-
68-
```CMD
6960
setx SQL_CONNECTION_STRING "REPLACE_WITH_YOUR_UNIQUE_SQL_CONNECTION_STRING"
70-
```
71-
72-
```CMD
7361
setx SQL_QUERY "REPLACE_WITH_YOUR_UNIQUE_SQL_QUERY_BASED_ON_THE_UNDERLYING_STRUCTURE_OF_YOUR_DATA"
7462
```
7563

7664
# [PowerShell](#tab/powershell)
7765

7866
```powershell
7967
[System.Environment]::SetEnvironmentVariable('METRICS_ADVISOR_ENDPOINT', 'REPLACE_WITH_YOUR_ENDPOINT_HERE', 'User')
80-
```
81-
82-
```powershell
8368
[System.Environment]::SetEnvironmentVariable('METRICS_ADVISOR_KEY', 'REPLACE_WITH_YOUR_KEY_VALUE_HERE', 'User')
84-
```
85-
86-
```powershell
8769
[System.Environment]::SetEnvironmentVariable('METRICS_ADVISOR_API_KEY', 'REPLACE_WITH_YOUR_KEY_VALUE_HERE', 'User')
88-
```
89-
90-
```powershell
9170
[System.Environment]::SetEnvironmentVariable('SQL_CONNECTION_STRING', 'REPLACE_WITH_YOUR_UNIQUE_SQL_CONNECTION_STRING', 'User')
92-
```
93-
94-
```powershell
9571
[System.Environment]::SetEnvironmentVariable('SQL_QUERY', 'REPLACE_WITH_YOUR_UNIQUE_SQL_QUERY_BASED_ON_THE_UNDERLYING_STRUCTURE_OF_YOUR_DATA', 'User')
9672
```
9773

9874
# [Bash](#tab/bash)
9975

10076
```Bash
10177
echo export METRICS_ADVISOR_ENDPOINT="REPLACE_WITH_YOUR_ENDPOINT_HERE" >> /etc/environment && source /etc/environment
102-
```
103-
104-
105-
```Bash
10678
echo export METRICS_ADVISOR_KEY="REPLACE_WITH_YOUR_KEY_VALUE_HERE" >> /etc/environment && source /etc/environment
107-
```
108-
109-
```Bash
11079
echo export METRICS_ADVISOR_API_KEY="REPLACE_WITH_YOUR_KEY_VALUE_HERE" >> /etc/environment && source /etc/environment
111-
```
112-
113-
```Bash
11480
echo export SQL_CONNECTION_STRING="REPLACE_WITH_YOUR_UNIQUE_SQL_CONNECTION_STRING" >> /etc/environment && source /etc/environment
115-
```
116-
117-
```Bash
11881
echo export SQL_QUERY="REPLACE_WITH_YOUR_UNIQUE_SQL_QUERY_BASED_ON_THE_UNDERLYING_STRUCTURE_OF_YOUR_DATA" >> /etc/environment && source /etc/environment
11982
```
12083

@@ -320,4 +283,4 @@ Run the application with the `python` command on your quickstart file.
320283

321284
```console
322285
python quickstart-file.py
323-
```
286+
```

0 commit comments

Comments
 (0)