Skip to content

Commit e999f00

Browse files
authored
Merge pull request #91360 from asinn826/alsin/scerrors
Add API version requirement
2 parents c3171da + c592102 commit e999f00

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

articles/virtual-machines/troubleshooting/serial-console-enable-disable.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Just like any other resource, the Azure Serial Console can be enabled and disabl
2424
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.
2525

2626
## 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.
2828

2929

3030
## Subscription-level disable
@@ -35,23 +35,23 @@ Serial console can be disabled and re-enabled for an entire subscription by usin
3535

3636
To disable serial console for a subscription, use the following commands:
3737
```azurecli-interactive
38-
subscriptionId=$(az account show -o=json | jq -r .id)
38+
subscriptionId=$(az account show --output=json | jq -r .id)
3939
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"
4141
```
4242

4343
To enable serial console for a subscription, use the following commands:
4444
```azurecli-interactive
45-
subscriptionId=$(az account show -o=json | jq -r .id)
45+
subscriptionId=$(az account show --output=json | jq -r .id)
4646
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"
4848
```
4949

5050
To get the current enabled/disabled status of serial console for a subscription, use the following commands:
5151
```azurecli-interactive
52-
subscriptionId=$(az account show -o=json | jq -r .id)
52+
subscriptionId=$(az account show --output=json | jq -r .id)
5353
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
5555
```
5656

5757
### PowerShell

0 commit comments

Comments
 (0)