File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,8 @@ az network public-ip create \
242
242
--resource-group test-rg \
243
243
--name public-ip-bastion \
244
244
--sku Standard \
245
- --allocation-method Static
245
+ --allocation-method Static \
246
+ --zone 1 2 3
246
247
```
247
248
248
249
Use [ az network bastion create] ( /cli/azure/network/bastion#az_network_bastion_create ) to create the Azure Bastion host.
@@ -332,7 +333,7 @@ Use [az network nic create](/cli/azure/network/nic#az_network_nic_create) to cre
332
333
az network nic create \
333
334
--resource-group test-rg \
334
335
--name nic-public \
335
- --vnet-name vnet-1 \
336
+ --vnet-name vnet-hub \
336
337
--subnet subnet-public \
337
338
--network-security-group nsg-nva
338
339
```
@@ -441,6 +442,14 @@ az network nic create \
441
442
--private-ip-address 10.0.0.10
442
443
```
443
444
445
+ Use [ az vm deallocate] ( /cli/azure/vm#az_vm_deallocate ) to shutdown and deallocate the virtual machine.
446
+
447
+ ``` azurecli-interactive
448
+ az vm deallocate \
449
+ --resource-group test-rg \
450
+ --name vm-nva
451
+ ```
452
+
444
453
Use [ az vm nic add] ( /cli/azure/vm/nic#az_vm_nic_add ) to attach the secondary network interface to the virtual machine.
445
454
446
455
``` azurecli-interactive
@@ -450,6 +459,14 @@ az vm nic add \
450
459
--nics nic-private
451
460
```
452
461
462
+ Use [ az vm start] ( /cli/azure/vm#az_vm_start ) to start the virtual machine.
463
+
464
+ ``` azurecli-interactive
465
+ az vm start \
466
+ --resource-group test-rg \
467
+ --name vm-nva
468
+ ```
469
+
453
470
---
454
471
455
472
### Configure virtual machine software
You can’t perform that action at this time.
0 commit comments