You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To see log output from a container, use the following command:
128
128
129
129
```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
131
131
```
132
132
133
133
Or
134
134
135
135
```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
137
137
```
138
138
139
139
By default, logs are pulled from the inference server. You can get logs from the storage initializer container by passing `–-container storage-initializer`.
140
140
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:
142
148
143
149
```azurecli
144
-
az ml online-deployment get-logs -h
150
+
az configure --list-defaults
145
151
```
146
152
147
153
To see more information, add `--help` or `--debug` to commands.
0 commit comments