Skip to content

Commit 4ddc27b

Browse files
Merge pull request #41040 from richeney/patch-7
Update tutorial-automate-vm-deployment.md
2 parents bfa4b8c + 48e710e commit 4ddc27b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/virtual-machines/linux/tutorial-automate-vm-deployment.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ It takes a few minutes for the VM to be created, the packages to install, and th
124124
To allow web traffic to reach your VM, open port 80 from the Internet with [az vm open-port](/cli/azure/vm#az-vm-open-port):
125125

126126
```azurecli-interactive
127-
az vm open-port --port 80 --resource-group myResourceGroupAutomate --name myVM
127+
az vm open-port --port 80 --resource-group myResourceGroupAutomate --name myAutomatedVM
128128
```
129129

130130
## Test web app
@@ -163,7 +163,7 @@ For production use, you should import a valid certificate signed by trusted prov
163163
az keyvault certificate create \
164164
--vault-name $keyvault_name \
165165
--name mycert \
166-
--policy "$(az keyvault certificate get-default-policy)"
166+
--policy "$(az keyvault certificate get-default-policy --output json)"
167167
```
168168

169169

@@ -175,7 +175,7 @@ secret=$(az keyvault secret list-versions \
175175
--vault-name $keyvault_name \
176176
--name mycert \
177177
--query "[?attributes.enabled].id" --output tsv)
178-
vm_secret=$(az vm secret format --secret "$secret")
178+
vm_secret=$(az vm secret format --secret "$secret" --output json)
179179
```
180180

181181

@@ -254,7 +254,7 @@ To allow secure web traffic to reach your VM, open port 443 from the Internet wi
254254
```azurecli-interactive
255255
az vm open-port \
256256
--resource-group myResourceGroupAutomate \
257-
--name myVMSecured \
257+
--name myVMWithCerts \
258258
--port 443
259259
```
260260

0 commit comments

Comments
 (0)