Skip to content

Commit bb2eb27

Browse files
Merge pull request #6576 from s-polly/main
Troubleshoot online endpoints - Changes from public repo
2 parents 6907b79 + b19df3f commit bb2eb27

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

articles/machine-learning/how-to-troubleshoot-online-endpoints.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,21 +127,27 @@ kubectl -n <compute-namespace> logs <container-name>
127127
To see log output from a container, use the following command:
128128

129129
```azurecli
130-
az ml online-deployment get-logs -e <endpoint-name> -n <deployment-name> -l 100
130+
az ml online-deployment get-logs -g <resource-group> -w <workspace-name> -e <endpoint-name> -n <deployment-name> -l 100
131131
```
132132

133133
Or
134134

135135
```azurecli
136-
az ml online-deployment get-logs --endpoint-name <endpoint-name> --name <deployment-name> --lines 100
136+
az ml online-deployment get-logs --resource-group <resource-group> --workspace-name <workspace-name> --endpoint-name <endpoint-name> --name <deployment-name> --lines 100
137137
```
138138

139139
By default, logs are pulled from the inference server. You can get logs from the storage initializer container by passing `–-container storage-initializer`.
140140

141-
Add `--resource-group` and `--workspace-name` to the commands if you didn't already set these parameters via `az configure`. To see information about how to set these parameters, or if you currently have set values, run the following command:
141+
The commands above include `--resource-group` and `--workspace-name`. You can also set these parameters globally via `az configure` to avoid repeating them in each command. For example:
142+
143+
```azurecli
144+
az configure --defaults group=<resource-group> workspace=<workspace-name>
145+
```
146+
147+
To check your current configuration settings, run:
142148

143149
```azurecli
144-
az ml online-deployment get-logs -h
150+
az configure --list-defaults
145151
```
146152

147153
To see more information, add `--help` or `--debug` to commands.

0 commit comments

Comments
 (0)