Skip to content

Commit 9aa928d

Browse files
authored
Merge pull request #178323 from dnethi/release-arc-data
updated article
2 parents 60c8f13 + f826eec commit 9aa928d

File tree

1 file changed

+4
-47
lines changed

1 file changed

+4
-47
lines changed

articles/azure-arc/data/upload-logs.md

Lines changed: 4 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -119,29 +119,6 @@ export WORKSPACE_SHARED_KEY='<primarySharedKey>'
119119

120120
---
121121

122-
## Set final environment variables and confirm
123-
124-
Set the SPN authority URL in an environment variable:
125-
126-
# [Windows](#tab/windows)
127-
128-
```console
129-
SET SPN_AUTHORITY=https://login.microsoftonline.com
130-
```
131-
132-
# [PowerShell](#tab/powershell)
133-
134-
```console
135-
$Env:SPN_AUTHORITY='https://login.microsoftonline.com'
136-
```
137-
138-
# [macOS & Linux](#tab/linux)
139-
140-
```console
141-
export SPN_AUTHORITY='https://login.microsoftonline.com'
142-
```
143-
144-
---
145122

146123
## Verify environment variables
147124

@@ -152,45 +129,24 @@ Check to make sure that all environment variables required are set if you want:
152129
```console
153130
echo %WORKSPACE_ID%
154131
echo %WORKSPACE_SHARED_KEY%
155-
echo %SPN_TENANT_ID%
156-
echo %SPN_CLIENT_ID%
157-
echo %SPN_CLIENT_SECRET%
158-
echo %SPN_AUTHORITY%
159132
```
160133

161134
# [PowerShell](#tab/powershell)
162135

163136
```PowerShell
164137
$Env:WORKSPACE_ID
165138
$Env:WORKSPACE_SHARED_KEY
166-
$Env:SPN_TENANT_ID
167-
$Env:SPN_CLIENT_ID
168-
$Env:SPN_CLIENT_SECRET
169-
$Env:SPN_AUTHORITY
170139
```
171140

172141
# [macOS & Linux](#tab/linux)
173142

174143
```console
175144
echo $WORKSPACE_ID
176145
echo $WORKSPACE_SHARED_KEY
177-
echo $SPN_TENANT_ID
178-
echo $SPN_CLIENT_ID
179-
echo $SPN_CLIENT_SECRET
180-
echo $SPN_AUTHORITY
181146
```
182147

183148
---
184149

185-
> [!NOTE]
186-
> All of the variables above are required when the data controller runs in indirectly connected mode.
187-
>
188-
> When the date controller is in directly connected mode, the following variables are not required:
189-
> - `SPN_TENANT_ID`
190-
> - `SPN_CLIENT_ID`
191-
> - `SPN_CLIENT_SECRET`
192-
> - `SPN_AUTHORITY`
193-
194150
With the environment variables set, you can upload logs to the log workspace.
195151

196152
## Upload logs to Azure Log Analytics Workspace in **direct** mode
@@ -231,11 +187,12 @@ az arcdata dc update --name arcdc --resource-group <myresourcegroup> --auto-uplo
231187
az arcdata dc export --type logs --path logs.json --k8s-namespace arc
232188
```
233189

190+
234191
2. Upload logs to an Azure monitor log analytics workspace:
235192

236-
```azurecli
237-
az arcdata dc upload --path logs.json
238-
```
193+
```azurecli
194+
az arcdata dc upload --path logs.json
195+
```
239196

240197
## View your logs in Azure portal
241198

0 commit comments

Comments
 (0)