Skip to content

Commit 9416f48

Browse files
committed
add boot diagnostics screenshots and azcli interactivity
1 parent cb45373 commit 9416f48

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"window.title": "${dirty}${activeEditorLong}${separator}${rootName}${separator}${appName}"
3+
}

articles/virtual-machines/linux/serial-console.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ The Virtual Machine Serial Console on Azure provides access to a text-based cons
3131

3232
* You must be using the resource management deployment model. Classic deployments are not supported.
3333
* Virtual machine MUST have [boot diagnostics](boot-diagnostics.md) enabled
34+
![](../media/virtual-machines-serial-console/virtual-machine-serial-console-diagnostics-settings.png)
3435
* The account using the serial console must have [Contributor role](../../role-based-access-control/built-in-roles.md) for VM and the [boot diagnostics](boot-diagnostics.md) storage account.
3536
* For settings specific to Linux distro, see [Accessing the serial console for Linux](#accessing-serial-console-for-linux)
3637

@@ -60,23 +61,23 @@ Serial console can be disabled for an entire subscription by through the [Disabl
6061
Alternatively, you may use the set of commands below in Cloud Shell (bash commands shown) to disable, enable, and view the disbled status of serial console for a subscription.
6162

6263
* To get the disabled status of serial console for a subscription:
63-
```
64+
```azurecli-interactive
6465
$ export ACCESSTOKEN=($(az account get-access-token --output=json | jq .accessToken | tr -d '"'))
6566
6667
$ export SUBSCRIPTION_ID=$(az account show --output=json | jq .id -r)
6768
6869
$ curl "https://management.azure.com/subscriptions/$SUBSCRIPTION_ID/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01" -H "Authorization: Bearer $ACCESSTOKEN" -H "Content-Type: application/json" -H "Accept: application/json" -s | jq .properties
6970
```
7071
* To disable serial console for a subscription:
71-
```
72+
```azurecli-interactive
7273
$ export ACCESSTOKEN=($(az account get-access-token --output=json | jq .accessToken | tr -d '"'))
7374
7475
$ export SUBSCRIPTION_ID=$(az account show --output=json | jq .id -r)
7576
7677
$ curl -X POST "https://management.azure.com/subscriptions/$SUBSCRIPTION_ID/providers/Microsoft.SerialConsole/consoleServices/default/disableConsole?api-version=2018-05-01" -H "Authorization: Bearer $ACCESSTOKEN" -H "Content-Type: application/json" -H "Accept: application/json" -s -H "Content-Length: 0"
7778
```
7879
* To enable serial console for a subscription:
79-
```
80+
```azurecli-interactive
8081
$ export ACCESSTOKEN=($(az account get-access-token --output=json | jq .accessToken | tr -d '"'))
8182
8283
$ export SUBSCRIPTION_ID=$(az account show --output=json | jq .id -r)
Loading

articles/virtual-machines/windows/serial-console.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ The Virtual Machine Serial Console on Azure provides access to a text-based cons
3232

3333
* You must be using the resource management deployment model. Classic deployments are not supported.
3434
* Virtual machine MUST have [boot diagnostics](boot-diagnostics.md) enabled
35+
![](../media/virtual-machines-serial-console/virtual-machine-serial-console-diagnostics-settings.png)
3536
* The account using the serial console must have [Contributor role](../../role-based-access-control/built-in-roles.md) for VM and the [boot diagnostics](boot-diagnostics.md) storage account.
3637

3738
## Open the Serial Console
@@ -55,23 +56,23 @@ Serial Console can be disabled for an entire subscription by through the [Disabl
5556
Alternatively, you may use the set of commands below in Cloud Shell (bash commands shown) to disable, enable, and view the disbled status of serial console for a subscription.
5657

5758
* To get the disabled status of serial console for a subscription:
58-
```
59+
```azurecli-interactive
5960
$ export ACCESSTOKEN=($(az account get-access-token --output=json | jq .accessToken | tr -d '"'))
6061
6162
$ export SUBSCRIPTION_ID=$(az account show --output=json | jq .id -r)
6263
6364
$ curl "https://management.azure.com/subscriptions/$SUBSCRIPTION_ID/providers/Microsoft.SerialConsole/consoleServices/default?api-version=2018-05-01" -H "Authorization: Bearer $ACCESSTOKEN" -H "Content-Type: application/json" -H "Accept: application/json" -s | jq .properties
6465
```
6566
* To disable serial console for a subscription:
66-
```
67+
```azurecli-interactive
6768
$ export ACCESSTOKEN=($(az account get-access-token --output=json | jq .accessToken | tr -d '"'))
6869
6970
$ export SUBSCRIPTION_ID=$(az account show --output=json | jq .id -r)
7071
7172
$ curl -X POST "https://management.azure.com/subscriptions/$SUBSCRIPTION_ID/providers/Microsoft.SerialConsole/consoleServices/default/disableConsole?api-version=2018-05-01" -H "Authorization: Bearer $ACCESSTOKEN" -H "Content-Type: application/json" -H "Accept: application/json" -s -H "Content-Length: 0"
7273
```
7374
* To enable serial console for a subscription:
74-
```
75+
```azurecli-interactive
7576
$ export ACCESSTOKEN=($(az account get-access-token --output=json | jq .accessToken | tr -d '"'))
7677
7778
$ export SUBSCRIPTION_ID=$(az account show --output=json | jq .id -r)

0 commit comments

Comments
 (0)