Skip to content

Commit 89d0e58

Browse files
committed
updates5
1 parent affb0cc commit 89d0e58

File tree

1 file changed

+25
-31
lines changed

1 file changed

+25
-31
lines changed

articles/backup/quick-backup-vm-terraform.md

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,21 @@ In this quickstart, you create an Azure Windows virtual machine (VM) and associa
1919
[!INCLUDE [About Terraform](~/azure-dev-docs-pr/articles/terraform/includes/abstract.md)]
2020

2121
> [!div class="checklist"]
22-
> * Specify the required version of Terraform and the required providers.
23-
> * Configure the Azure provider with Backup recovery services features.
24-
> * Declare variables for the resource group location, resource group name prefix, and an enabled soft delete status.
25-
> * Generate a random pet name for the resource group.
26-
> * Create an Azure resource group with the generated pet name.
27-
> * Generate a random string of 12 lowercase characters.
22+
23+
> * Create an Azure resource group with a unique name.
2824
> * Create a virtual network with a unique name and a specified address space.
2925
> * Create a subnet within the virtual network with a unique name and a specified address prefix.
3026
> * Create a public IP address with a unique name.
3127
> * Create a network security group with two security rules for remote desk protocol and web traffic.
3228
> * Create a network interface with a unique name, and attach it to the subnet and public IP address.
3329
> * Associate the network security group with the network interface.
34-
> * Create a storage account for boot diagnostics.
35-
> * Create a Windows VM with a unique name, is a specified size, and is attached to the network interface.
3630
> * Generate a random ID for a unique storage account name.
31+
> * Create a storage account for boot diagnostics.
32+
> * Create a Windows VM with a unique name.
3733
> * Generate a random password for the VM.
3834
> * Create a Backup recovery services vault with a unique name.
3935
> * Create a Backup policy for the VM with daily frequency and a retention period of seven days.
4036
> * Protect the VM with the created Backup policy.
41-
> * Output the names of the resource group, Backup recovery services vault, Backup policy, and VM.
42-
> * Output the public IP address and admin password of the VM.
4337
4438
## Prerequisites
4539

@@ -86,39 +80,39 @@ In this quickstart, you create an Azure Windows virtual machine (VM) and associa
8680

8781
1. Get the Azure resource group name.
8882

89-
```console
90-
resource_group_name = $(terraform outout -raw azurerm_resource_group_name)
91-
```
83+
```console
84+
resource_group_name = $(terraform outout -raw azurerm_resource_group_name)
85+
```
9286

9387
1. Get the Backup recovery services vault name.
9488

95-
```console
96-
recovery_services_vault_name = $(terraform output -raw azurerm_recovery_services_vault_name)
97-
```
89+
```console
90+
recovery_services_vault_name = $(terraform output -raw azurerm_recovery_services_vault_name)
91+
```
9892

9993
1. Get the Windows VM name.
10094

101-
```console
102-
windows_virtual_machine_name = $(terraform output -raw azurerm_windows_virtual_machine_name)
103-
```
95+
```console
96+
windows_virtual_machine_name = $(terraform output -raw azurerm_windows_virtual_machine_name)
97+
```
10498

10599
1. Run [az backup protection backup-now]( /cli/azure/backup/protection #az-backup-protection-backup-now) to start a backup job.
106100

107-
```azcli
108-
az backup protection backup-now --resource-group $resource_group_name \
109-
--vault-name $recovery_services_vault_name \
110-
--container-name $windows_virtual_machine_name \
111-
--item-name $windows_virtual_machine_name \
112-
--backup-management-type AzureIaaSVM
113-
```
101+
```azcli
102+
az backup protection backup-now --resource-group $resource_group_name \
103+
--vault-name $recovery_services_vault_name \
104+
--container-name $windows_virtual_machine_name \
105+
--item-name $windows_virtual_machine_name \
106+
--backup-management-type AzureIaaSVM
107+
```
114108

115109
1. Run [az backup job list]( /cli/azure/backup/job #az-backup-job-list) to monitor the backup job.
116110

117-
```azcli
118-
az backup job list --resource-group $resource_group_name \
119-
--vault-name $recovery_services_vault_name \
120-
--output table
121-
```
111+
```azcli
112+
az backup job list --resource-group $resource_group_name \
113+
--vault-name $recovery_services_vault_name \
114+
--output table
115+
```
122116

123117
The output is similar to the following example, which shows the backup job is *InProgress*:
124118

0 commit comments

Comments
 (0)