7 Using N2WS with Azure
Following are the steps for setup, backup, and recovery of Azure VMs and Disks:
- 4.Create an N2WS account user as usual and configure resource limitations for Azure.
N2WS Backup and Recovery needs the following permissions to perform backup and recovery actions.
- 2.Add your subscription ID value to the
subscriptionsattribute in the minimal permissions JSON.
2. In the Azure Portal,
https://portal.azure.com, and go to your subscription. Select a subscription that you want to use with N2WS Backup & Recovery.
3. Select Access control (IAM), select +Add, and then select Add custom role.
4. Complete the form as follows using N2WSBackupRecoveryRole as the Custom role name, and then select the JSON file saved in step 1.
5. Create the role with the new JSON file.
- 1.In the Azure portal Dashboard section, go to the App registrations service.
- 2.In the Name box, type CPM-on-Azure and select Register.
3. Select the app. 4. Save the Application (client) ID and Directory (tenant) ID for use when adding the Azure account to N2WS.
5. Select Add a certificate or secret. 6. Select
New client secret. 7. Complete the secret values, and save.
- 1.Log on to N2WS using the root username and password used during the N2WS configuration.
- 2.Select the Accounts tab.
- 3.If you have a license for Azure cloud, select Azure account in the + New menu.
- 4.Complete the New Azure Account screen using the App Registration view information in the Azure portal as needed.
- Name - Copy from your App Registration name.
- Directory (tenant) ID – Copy from your App Registration.
- Application (client) ID – Copy from your App Registration.
- Client Secret – Copy from your App registration Certificates & Secrets in the App Registration view, or set a new secret.
5. Select Save. The new account appears in the Accounts list as an Azure Cloud account.
To backup resources in Azure, create an N2WS policy.
- 1.In N2WS, select the Policies tab.
- 2.In the + New list, select Azure policy.
- 3.In the New Azure Policy screen, complete the fields:
- Name – Enter a name for the policy.
- User – Select from the list.
- Enabled – Clear to disable the policy.
- Subscription – Select from the list.
- Auto Target Removal – Select Yes to automatically remove a non-existing target from the policy.
4. Select the Backup Targets tab. 5. In the Add Backup Targets menu, select the targets to backup, Disks and/or Virtual Machines. The Add Virtual Machines / Disks screen opens. 6. When selecting Virtual Machines, it is required to filter by the Location of the target resources using the list in the upper left corner before selecting the individual targets. Filtering by Resource Group is optional.
7. When finished selecting targets, select Add selected. The Backup Targets tab lists the selected targets.
8. To determine which disks for each Virtual Machines target to backup, select
Configure. In the Which Disks list of the Policy Virtual Machine and Disk Configuration screen, select the disks to include or exclude in the backup. 9. When finished, in the Backup Targets tab, select Save.
If the policy has a schedule, the policy will backup automatically according to the schedule. To run a policy as soon as possible, in the Policies view, select the policy and select
To view the policy progress and backups, select Backup Monitor.
- The backup progress is shown in the Status column.
- Use the Cloud buttons to display the Azure policies.
Only one VM is recoverable during a recovery operation.
After creating a backup, you can recover it from the Backup Monitor.
In the VM recovery Basic Options, there are Azure options for replicating data to additional locations in order to protect against potential data loss and data unavailability:
- Availability Zone – A redundant data center (different building, different servers, different power, etc.), within a geographical area that is managed by Azure.
- Availability Set – A redundant data center (different building, different servers, different power, etc.) that can be launched and fully configured by the customer and managed by the customer.
- No Redundancy Infrastructure Required – By selecting this option, the customer can choose not to replicate its data to an additional (redundant) location in another zone or set. By choosing this option, the customer would save some money, but in rare cases (usually 11 9s of durability and 99.9% of availability), the customer can experience some degree of data loss and availability.
In the Disk Recovery screen, you may be presented with an option to change the encryption when recovering certain disks.
- Disk encryption settings can be changed only when the disk is unattached or the owner VM is deallocated.
To recover a VM and/or attached disks:
- 1.In the Backup Monitor, select the backup and then selectRecover.
2. To recover a VM, with or without its attached disks, select the VM snapshot that you want to recover from and then select
a. In the Virtual Machines tab of the Recover screen, select 1 VM and then select
Recover. The Basic Options tab opens.
b. In the Availability Type list, select one of the following:
- No Infrastructure Redundancy Required – Select to not replicate data at a redundant location in another zone or set.
- Availability Zone – Select a zone in the Availability Zone list.
- Availability Set – Select a set in the Availability Set list.
c. In the Private IP Address box, assign an available IP address or switch the Custom toggle key to Auto assigned. d. In the Disks tab, enter a new Name for each disk. Similar names will cause the recovery to fail. e. Select Recover Virtual Machine.
3. To recover only Disks attached to the VM, select Recover Disks Only. a. In the Disks tab, enter a new Name for each disk. Similar names will cause the recovery to fail. b. See Note in section 7.5 about changing the Encryption Set for certain disks. c. Change other settings as needed. d. Select Recover Disk.
4. To view the recovery progress, select Recovery Monitor. Use the Cloud buttons to display the Azure (
To recover from backups with independent disks:
- 1.Select the backup and then selectRecover as in step 1 of the VM recovery.
2. In the Independent Disks tab:
a. Enter a new Name for each disk to recover as similar names will cause failure. b. See Note in section 7 about changing the Encryption Set for certain disks. c. Change other settings as needed.
d. Select Recover Disk.
3. To view the recovery progress, select Recovery Monitor. Use the Cloud buttons to display the Azure (