Skip to content

Commit a24a8c8

Browse files
Merge pull request #18094 from naman-msft/docs-editor/azure-stack-quick-create-vm-li-1748649080
Update azure-stack-quick-create-vm-linux-cli.md
2 parents 939ecfb + 0c5ab73 commit a24a8c8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

azure-stack/user/azure-stack-quick-create-vm-linux-cli.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ ms.custom: mode-api, devx-track-azurecli, linux-related-content
1010

1111
# Quickstart: Create a Linux server VM by using the Azure CLI in Azure Stack Hub
1212

13+
> [!div class=""nextstepaction""]
14+
> [Deploy and Explore](https://go.microsoft.com/fwlink/?linkid=2321848)
15+
1316
You can create an Ubuntu Server 20.04 LTS virtual machine (VM) by using the Azure CLI. In this article, you create and use a virtual machine. This article also shows you how to:
1417

1518
* Connect to the virtual machine with a remote client.
@@ -132,7 +135,7 @@ To update package resources and install the latest NGINX package, run the follow
132135
```bash
133136
output=$(az vm run-command invoke --resource-group $RESOURCE_GROUP --name $VM_NAME --command-id RunShellScript --scripts 'apt-get -y install nginx')
134137
value=$(echo "$output" | jq -r '.value[0].message')
135-
extracted=$(echo "$value" | awk '/\[stdout\]/,/\[stderr\]/' | sed '/\[stdout\]/d' | sed '/\[stderr\]/d')
138+
extracted=$(echo "$value" | awk '/[stdout]/,/[stderr]/' | sed '/[stdout]/d' | sed '/[stderr]/d')
136139
echo "$extracted"
137140
```
138141

@@ -145,7 +148,7 @@ export PUBLIC_IP=$(az vm show -d -g $RESOURCE_GROUP -n $VM_NAME --query publicIp
145148

146149
output=$(az vm run-command invoke --resource-group $RESOURCE_GROUP --name $VM_NAME --command-id RunShellScript --scripts 'curl -v http://localhost')
147150
value=$(echo "$output" | jq -r '.value[0].message')
148-
extracted=$(echo "$value" | awk '/\[stdout\]/,/\[stderr\]/' | sed '/\[stdout\]/d' | sed '/\[stderr\]/d')
151+
extracted=$(echo "$value" | awk '/[stdout]/,/[stderr]/' | sed '/[stdout]/d' | sed '/[stderr]/d')
149152
echo "$extracted"
150153
```
151154

0 commit comments

Comments
 (0)