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
Copy file name to clipboardExpand all lines: articles/virtual-machines/troubleshooting/serial-console-enable-disable.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ Just like any other resource, the Azure Serial Console can be enabled and disabl
24
24
You can also disable serial console for an individual VM or virtual machine scale set instance by disabling boot diagnostics. You will require contributor level access or above on both the VM/virtual machine scale set and your boot diagnostics storage account.
25
25
26
26
## VM-level disable
27
-
The serial console can be disabled for a specific VM or virtual machine scale set by disabling the boot diagnostics setting. Turn off boot diagnostics from the Azure portal to disable the serial console for the VM or the virtual machine scale set. If you are using serial console on a virtual machine scale set, ensure you upgrade your virtual machine scale set instances to the latest model.
27
+
The serial console can be disabled for a specific VM or virtual machine scale set by disabling the boot diagnostics setting. Turn off boot diagnostics from the Azure Portal to disable the serial console for the VM or the virtual machine scale set. If you are using serial console on a virtual machine scale set, ensure you upgrade your virtual machine scale set instances to the latest model.
28
28
29
29
30
30
## Subscription-level disable
@@ -35,23 +35,23 @@ Serial console can be disabled and re-enabled for an entire subscription by usin
35
35
36
36
To disable serial console for a subscription, use the following commands:
37
37
```azurecli-interactive
38
-
subscriptionId=$(az account show -o=json | jq -r .id)
38
+
subscriptionId=$(az account show --output=json | jq -r .id)
39
39
40
-
az resource invoke-action --action disableConsole --ids "/subscriptions/$subscriptionId/providers/Microsoft.SerialConsole/consoleServices/default"
40
+
az resource invoke-action --action disableConsole --ids "/subscriptions/$subscriptionId/providers/Microsoft.SerialConsole/consoleServices/default" --api-version="2018-05-01"
41
41
```
42
42
43
43
To enable serial console for a subscription, use the following commands:
44
44
```azurecli-interactive
45
-
subscriptionId=$(az account show -o=json | jq -r .id)
45
+
subscriptionId=$(az account show --output=json | jq -r .id)
46
46
47
-
az resource invoke-action --action enableConsole --ids "/subscriptions/$subscriptionId/providers/Microsoft.SerialConsole/consoleServices/default"
47
+
az resource invoke-action --action enableConsole --ids "/subscriptions/$subscriptionId/providers/Microsoft.SerialConsole/consoleServices/default" --api-version="2018-05-01"
48
48
```
49
49
50
50
To get the current enabled/disabled status of serial console for a subscription, use the following commands:
51
51
```azurecli-interactive
52
-
subscriptionId=$(az account show -o=json | jq -r .id)
52
+
subscriptionId=$(az account show --output=json | jq -r .id)
53
53
54
-
az resource show --ids "/subscriptions/$subscriptionId/providers/Microsoft.SerialConsole/consoleServices/default" -o=json | jq .properties
54
+
az resource show --ids "/subscriptions/$subscriptionId/providers/Microsoft.SerialConsole/consoleServices/default" --output=json --api-version="2018-05-01" | jq .properties
0 commit comments