NetBackup105_AdminGuide_AzureStack
NetBackup105_AdminGuide_AzureStack
Release 10.5
NetBackup™ for Microsoft Azure Stack
Administrator's Guide
Last updated: 2024-09-23
Legal Notice
Copyright © 2024 Veritas Technologies LLC. All rights reserved.
Veritas, the Veritas Logo, Veritas Alta, and NetBackup are trademarks or registered trademarks
of Veritas Technologies LLC or its affiliates in the U.S. and other countries. Other names may
be trademarks of their respective owners.
This product may contain third-party software for which Veritas is required to provide attribution
to the third party (“Third-party Programs”). Some of the Third-party Programs are available
under open source or free software licenses. The License Agreement accompanying the
Software does not alter any rights or obligations you may have under those open source or
free software licenses. Refer to the Third-party Legal Notices document accompanying this
Veritas product or available at:
https://www.veritas.com/about/legal/license-agreements
The product described in this document is distributed under licenses restricting its use, copying,
distribution, and decompilation/reverse engineering. No part of this document may be
reproduced in any form by any means without prior written authorization of Veritas Technologies
LLC and its licensors, if any.
The Licensed Software and Documentation are deemed to be commercial computer software
as defined in FAR 12.212 and subject to restricted rights as defined in FAR Section 52.227-19
"Commercial Computer Software - Restricted Rights" and DFARS 227.7202, et seq.
"Commercial Computer Software and Commercial Computer Software Documentation," as
applicable, and any successor regulations, whether delivered by Veritas as on premises or
hosted services. Any use, modification, reproduction release, performance, display or disclosure
of the Licensed Software and Documentation by the U.S. Government shall be solely in
accordance with the terms of this Agreement.
Technical Support
Technical Support maintains support centers globally. All support services will be delivered
in accordance with your support agreement and the then-current enterprise technical support
policies. For information about our support offerings and how to contact Technical Support,
visit our website:
https://www.veritas.com/support
You can manage your Veritas account information at the following URL:
https://my.veritas.com
If you have questions regarding an existing support agreement, please email the support
agreement administration team for your region as follows:
Japan [email protected]
Documentation
Make sure that you have the current version of the documentation. Each document displays
the date of the last update on page 2. The latest documentation is available on the Veritas
website:
https://sort.veritas.com/documents
Documentation feedback
Your feedback is important to us. Suggest improvements or report errors or omissions to the
documentation. Include the document title, document version, chapter title, and section title
of the text on which you are reporting. Send feedback to:
You can also see documentation information or ask a question on the Veritas community site:
http://www.veritas.com/community/
https://sort.veritas.com/data/support/SORT_Data_Sheet.pdf
Contents
■ Managed disk VM
BigData policy
ARM Endpoint
Application_Type=
Backup Host 1 azurestack
VM 1
Master server
VM 2
Backup Host 2
Media server
VM 3
Storage
Backup Host 3
VM n Parallel Streams Azure plug-in is deployed
Microsoft Azure on all the backup hosts
Stack...
cluster
Note: One VHD's data is not fetched parallely by multiple backup hosts.
■ The communication between the Microsoft Azure Stack and the NetBackup is
enabled using the NetBackup plug-in for Microsoft Azure Stack.
For this release, the plug-in is available separately and must be installed on all
the backup hosts.
■ For NetBackup communication, you need to configure a BigData policy wherein,
you need to use Application_Type=azurestack, and add the related backup
hosts.
■ You can configure a NetBackup media server, client, or master server as a
backup host. Also, depending on the number of VMs, you can add or remove
backup hosts. You can scale up your environment easily by adding more backup
hosts.
Introduction 8
Backing up Microsoft Azure Stack VMs
2
6 Child
VM 2 job 2
Backup Host 2
VM 3 3
6 Child
job 3
Backup Host 3 Storage
VM 4 7 Data is backed up in = Workload
Microsoft Azure parallel streams n discovery files
Stack Cluster
4. A workload discovery file is created on the backup host. The workload discovery
file contains the details of the data that needs to be backed up from the different
VMs.
5. The backup host uses the workload discovery file get the details of data that
it will backup. Individual workload discovery files are created for each backup
host.
6. Individual backup jobs are executed for each backup host. As specified in the
workload distribution files, data is backed up.
7. Data blocks are streamed simultaneously from different VMs to multiple backup
hosts. The number of parallel streams is the same as the number of backup
hosts.
To increase the number of streams, set the NO_OF_BACKUP_STREAMS_PER_NODE
configuration parameter. For more information, refer to Configuring the Microsoft
Azure plug-in using the azurestack.conf configuration file.
The compound backup job is not completed until all the child jobs are completed.
2
Backup host connects with
ARM Endpoint
Managed disk VM
■ Managed disks are block-level storage volumes that are managed by ARM.
With managed disks, you must specify the disk size, the disk type, and provision
the disk. The rest is handled automatically.
■ Management APIs for Managed Disks are available in the compute provider.
The Azure Stack plug-in uses REST APIs to:
■ Create Managed Disk Snapshot
■ Export Snapshot (Grant Access)
■ Unexport (Remove Access)
■ Delete Snapshot
■ Single BigData policy can protect both Managed and Unmanaged disk VMs.
■ During restore it is possible to convert unmanaged disk VM to managed disk.
■ Storage account is required during restore of managed disk to create temporary
vhd file in the target subscription where VM or the disk is being restored. This
is due to lack of required API for creating Managed Disk directly during restore.
Terminology Definition
Compound job A backup job for Microsoft Azure Stack is a compound job.
■ The backup job runs a discovery job for getting information of the
data to be backed up.
■ Child jobs are created for each backup host that performs the
actual data transfer.
■ After the backup is complete, the job cleans up the snapshots on
the Microsoft Azure Stack and is then marked complete.
Discovery job When a backup job is executed, first a discovery job is created. The
discovery job communicates with the ARM Endpoint and gathers
information of VMs and associated VHDs. At the end of the discovery,
the job populates a workload discovery file that NetBackup then uses
to distribute the workload amongst the backup hosts.
Child job For backup, a separate child job is created for each backup host to
transfer data to the storage media.
Workload discovery During discovery, when the backup host communicates with the ARM
file Endpoint, a workload discovery file is created. The file contains
information about the VMs and associated VHDs.
Parallel streams The NetBackup parallel streaming framework allows multiple VMs to
be backed up using multiple backup hosts simultaneously.
Backup host The backup host acts as a proxy client. All the backup and restore
operations are executed through the backup host.
■ Creating a BigData policy for Microsoft Azure Stack using the NetBackup web
UI
Table 3-1 Steps for configuring NetBackup for Microsoft Azure Stack
1 Backup host Create a backup host and allow list on the NetBackup client
if you want to use it as a backup host.
2 Custom NetBackup role in Microsoft Create a custom role in Microsoft Azure Stack for NetBackup
Azure Stack to backup and restore VMs.
3 ■ Microsoft Azure Stack credentials file ■ Create a file that contains the Azure stack credentials
■ Microsoft Azure Stack plug-in on the master server.
configuration file See “Creating a file that contains Microsoft Azure Stack
credentials” on page 24.
■ Configure the Microsoft Azure Stack plug-in using a
configuration file and include the configuration file path
on the allowed list.
For more information, refer to:
■ See “Configuring the Microsoft Azure plug-in using
the azurestack.conf configuration file” on page 21.
■ See “Including the configuration file path on
NetBackup master server allowed list” on page 24.
■ Add Microsoft Azure Stack credentials to NetBackup to
establish communication and protect the data.
For more information, refer to:
See “Adding Microsoft Azure Stack credentials in
NetBackup” on page 28.
■ When using multiple backup host, make sure that all backup hosts are
communicating with the media server.
■ Azure Stack identity providers
■ For the Azure Active Directory (AAD) identity provider, all backup hosts
require connectivity to https://login.microsoftonline.com, Azure Resource
Manager endpoints, or Azure blob storage endpoints, which require ports
80 and 443 for communication.
■ For the Active Directory Federation Services (ADFS) identity provider, all
backup hosts require connectivity to Azure Resource Manager endpoints,
Azure blob storage endpoints, or ADFS endpoints, which require ports 80
and 443 for communication.
You can add a backup host while configuring BigData policy using the NetBackup
web UI .
See “Creating a BigData policy for Microsoft Azure Stack using the NetBackup web
UI” on page 30.
Allowlisting is a security practice used for restricting systems from running software
or applications unless these have been approved for safe execution.
To place a backup host on NetBackup master server allowed list
Run the following command on the NetBackup master server:
■ For UNIX
bpsetconfig -h masterserver
bpsetconfig> APP_PROXY_SERVER = clientname1.domain.org
bpsetconfig> APP_PROXY_SERVER = clientname2.domain.org
bpsetconfig>
UNIX systems: <ctl-D>
■ For Windows
bpsetconfig -h masterserver
bpsetconfig> APP_PROXY_SERVER = clientname1.domain.org
bpsetconfig> APP_PROXY_SERVER = clientname2.domain.org
bpsetconfig>
Windows systems: <ctl-Z>
■ Microsoft.Network/networkInterfaces/*
■ Microsoft.Network/networkSecurityGroups/join/action
■ Microsoft.Network/networkSecurityGroups/read
■ Microsoft.Network/publicIPAddresses/join/action
■ Microsoft.Network/publicIPAddresses/read
■ Microsoft.Network/publicIPAddresses/write
■ Microsoft.Network/virtualNetworks/read
■ Microsoft.Network/virtualNetworks/subnets/read
■ Microsoft.Network/virtualNetworks/subnets/join/action
■ Microsoft.Resources/subscriptions/resourceGroups/read
■ Microsoft.Storage/storageAccounts/read
■ Microsoft.Storage/storageAccounts/listKeys/action
Configuring NetBackup and Microsoft Azure Stack 19
Adding a Microsoft Azure Stack custom role to provide access permissions to NetBackup administrator
For Microsoft Azure Active Directory Create the service principal from the Microsoft
(Azure AD) Azure Active Directory Users dialog box.
Complete the following steps on a Windows computer that has PowerShell for
Azure Stack.
For more information, refer to
https://docs.microsoft.com/en-us/azure/azure-stack/azure-stack-powershell-install.
Configuring NetBackup and Microsoft Azure Stack 20
Adding a Microsoft Azure Stack custom role to provide access permissions to NetBackup administrator
2 Create a new text file rbac_NBU_role.json and add the following script in the
file:
{
"Name": "NBU BnR Role",
"IsCustom": true,
"Description": "Let's you perform backup and recovery of VMs",
"Actions": [
"Microsoft.Compute/virtualMachines/*",
"Microsoft.Compute/Disks/read",
"Microsoft.Compute/Disks/write",
"Microsoft.Compute/Disks/beginGetAccess/action",
"Microsoft.Compute/Disks/endGetAccess/action",
"Microsoft.Compute/Snapshots/*",
"Microsoft.Network/networkInterfaces/*",
"Microsoft.Network/networkSecurityGroups/join/action",
"Microsoft.Network/networkSecurityGroups/read",
"Microsoft.Network/publicIPAddresses/join/action",
"Microsoft.Network/publicIPAddresses/read",
"Microsoft.Network/publicIPAddresses/write",
"Microsoft.Network/virtualNetworks/read",
"Microsoft.Network/virtualNetworks/subnets/read",
"Microsoft.Network/virtualNetworks/subnets/join/action",
"Microsoft.Resources/subscriptions/resourceGroups/read",
"Microsoft.Resources/Resources/read",
"Microsoft.Storage/storageAccounts/read",
"Microsoft.Storage/storageAccounts/listKeys/action"
],
"NotActions": [],
"AssignableScopes": [
"/subscriptions/subscription_ID_1",
"/subscriptions/subscription_ID_2"
.
.
.
]
}
Note: Ensure that you add the required subscriptions under the
AssignableScopes field so that the custom role is created with those
subscriptions.
Configuring NetBackup and Microsoft Azure Stack 21
Configuring the Microsoft Azure plug-in using the azurestack.conf configuration file
■ New-AzureRmRoleDefinition -InputFile
"<directory_path>\rbac_NBU_role.json"
4 Open the Microsoft Azure Stack console and complete the following steps:
1. Click Menu and open the subscriptions that you want to protect with
NetBackup. Click Access Control (IAM) > Roles to view the newly created
role.
2. From Subscriptions > Access Control (IAM), click Add. In the Select
Name field add nbu_azst user (ADFS) or the display name of the service
principal (AAD), in the Type field select User, and in the Role field select the
newly added role.
5 Add the nbu_azst user or service principal to the tpconfig command to take
backups.
See “Adding Microsoft Azure Stack credentials in NetBackup” on page 28.
Note: You must not provide a blank value for any of the parameters, or the backup
job fails.
VM_STATE = Running
FETCH_STORAGE_KEYS = false
CA_FILE_PATH = //directory_path_system_CA_certificate/certificate_name.crt
VM_SNAPSHOT_IN_DISCOVERY = true
NO_OF_BACKUP_STREAMS_PER_NODE = 1
ENABLE_SNAPSHOT_CLEANUP = 0
SNAPSHOT_CLEANUP_MIN = 1440
SNAPSHOT_FETCH_RETRY_COUNT = 60
ASYNC_SNAPSHOT_SUPPORT = true
SET_PUBLIC_IP_DURING_RESTORE = false
STAGING_STORAGE_ACCOUNTS = headsuptsta, restorestadisks, stafordiskstorages
■ The value for SNAPSHOT_CLEANUP_MIN specifies the time in minutes after which
the snapshot is deleted. The default value is 1440 minutes (24 hours). The ideal
value is the time difference in minutes between two backup job.
■ The value for SNAPSHOT_FETCH_RETRY_COUNT specifies the retry count for the
plug-in to check for the snapshot in a given storage container. The default value
is 60 and the values can be between 60 and 120.
■ The value for ASYNC_SNAPSHOT_SUPPORT specifies that unmanaged disk
snapshots are taken using the async REST API. The default value is true. Set
the value to false to disable unmanaged disk snapshots using the async REST
API.
■ The value for SET_PUBLIC_IP_DURING_RESTORE specifies whether to use a public
IP address during the VM restore. The default value is true that specifies that
the VM is restored with a public IP address. Set the value as false, to restore
the VM with a private IP address.
■ The value for STAGING_STORAGE_ACCOUNTS is a comma separated list of storage
account names that are already available on Azure Stack and the value is
required for only managed disks VM restore or recovery. You can specify one
or many storage accounts names for this key. Storage account name is required
for restoring VHD blobs for the managed disks conversion operation. As per the
target subscription location that is the selected as restore location, Netbackup
Azure Stack plug-in automatically picks only one storage account from the list
that is provided for this key. This is a one-time activity where you can specify
all storage accounts needed for all restore jobs as per the target location selected
for each restore job.
Note: Do not add VM_STATE in the azurestack.conf file if you want to take a backup
if all VMs.
Configuring NetBackup and Microsoft Azure Stack 24
Creating a file that contains Microsoft Azure Stack credentials
bpsetconfig -h masterserver_name
bpsetconfig bpcd_allowed_path= /usr/openv/var/global/
2 For Windows:
{
"IdentityProvider":"ADFS",
"TenantId":"tenant.domain.com",
"ClientId":"1950a258-227b-4e31-a9cf-717495945fc2",
"ClientSecret":"client_secret",
"AuthResource":
"https://management.adfs.azurestack.local/metadata/a6ad92e4-5b80-4c88-b84f-a7f25c12ba27",
"teststorageac1":
"9ghIt35bQeSvjZxXUPj8LinMs6aXPb2tMFjXVIG6N2v2FO6LRg+HzLz2LX1xR/qRkQYwNPIaE/v+QnUovzaKpQ==",
"rg1disks540":
"R6Lu3buXZ4HVtRTrNEHzzJqo2gShjQytfjX1hRkvfqMVWnvKWmEt2CUfmhlbxI7JCE0Gh5TKA9r3I88eit2FdA==",
"StorageAccount3":"asasdlfkjaasdfasdfasdfasdf09sd8fhaopisdfbanpsdf98asdfpusadf====",
"StorageAccount11":"90asdfasdfasdfasd-98fha-sdf98asdb-fau9bsdf-auy8svfasd==",
"StorageAccount19":"90asdfasdfasdfasd-98fha-sdf98asdb-fau9bsdf-auy8svfasd==",
"StorageAccount121":"90asdfasdfasdfasd-98fha-sdf98asdb-fau9bsdf-auy8svfasd==",
"StorageAccount13":"90asdfasdfasdfasd-98fha-sdf98asdb-fau9bsdf-auy8svfasd==",
"StorageAccount14":"90asdfasdfasdfasd-98fha-sdf98asdb-fau9bsdf-auy8svfasd==",
"StorageAccount12":"90asdfasdfasdfasd-98fha-sdf98asdb-fau9bsdf-auy8svfasd=="
...
}
IdentityProvider AAD and ADFS Values can be either ADFS (Active Directory Federation Services) or AAD (Azure
Active Directory).
AAD Value is the application ID of the service principal that has the NetBackup backup
and recovery role for the subscriptions that NetBackup must protect.
ClientSecret AAD Value is the client secret of the service principal that has the NetBackup backup
and recovery role for the subscriptions that NetBackup must protect.
Configuring NetBackup and Microsoft Azure Stack 26
Creating a file that contains Microsoft Azure Stack credentials
AuthResource AAD and ADFS Value of the key audiences that is obtained by opening the following URL in a web
browser:
https://managment.{region}.{azurestackFQDN}/metadata/endpoints?api-version=2015-01-01
For example:
https://management.eng.azurestack.veritas.com/metadata/endpoints?api-version=2015-01-01
The URL returns a JSON value that is the value of the key audiences.
StorageAccount AAD and ADFS The storage account with the access key.
■ If you require a different proxy for the NetBackup Azure Stack plug-in or you do
not want to use the https_proxy variable, then you can add the following proxy
details in the credentials file:
Key Description
Key Description
{
"IdentityProvider":"AAD",
"TenantId":"tenant.domain.com",
"ClientId":"1950a007-227b-4e31-a9cf-717495945fc2",
"ClientSecret":"client_secret",
"AuthResource": "https://management.adfs.azurestack.local/metadata/
a6ad92e4-5b80-4c88-b055-a7f25c12ba27",
"InternetProxyUrl":"proxy.domain.com:8080",
"InternetProxyUsrename":"myusername",
"InternetProxyPassword":"mypassword"
}
■ For AAD, NetBackup uses clientID and clientSecret, so enter the value
for -application_server_user_id as dummy and -password as dummy.
Configuring NetBackup and Microsoft Azure Stack 29
Adding Microsoft Azure Stack credentials in NetBackup
Note: The user you want to add must have co-owner permissions to the
subscription you want to protect.
For example,
tpconfig -add -application_server_user_id example_user_ID
-application_type azurestack -application_server
application_server_name -password password_of_the_nbu_azst_user
-application_server_conf "/usr/openv/var/global/azurestack.creds”
Here, the numeric value 8 can also be specified for the -application_type
parameter that corresponds to Microsoft Azure Stack .
3 Run the tpconfig -dappservers command to verify if the NetBackup master
server has the Azure credentials added.
For example, here is a sample output:
4 After you use tpconfig to add the credentials, you can delete the credentials
file from the location that you have used in the tpconfig -add command..
5 Run the following command to update or delete the tpconfig credentials:
■ Delete
tpconfig -delete -application_server_user_id user_ID
-application_type application_type -application_server
application_server_name -password password_of_the_nbu_azst_user
-application_server_conf "/usr/<file_path>/azurestack.creds”
■ Update
To change the attributes or options in the credentials file, update the
credentials and then use the tpconfig -update command.
tpconfig -update -application_server_user_id user_ID
-application_type application_type -application_server
application_server_name -password password_of_the_nbu_azst_user
-application_server_conf "/usr/<file_path>/azurestack.creds”
Configuring NetBackup and Microsoft Azure Stack 30
Creating a BigData policy for Microsoft Azure Stack using the NetBackup web UI
8 On the Backup Selections tab, enter the following parameters and their values
as shown:
■ Application_Type=azurestack
The parameter values are case-sensitive.
■ Backup_Host=IP_address or FQDN
You can specify multiple backup hosts.
■ Specify assets to backup
■ For all the VMs in a subscription: /Subscription ID
■ For all the VMS in a resource group: /Subscription ID/Resource Group
■ For a single VM: /Subscription ID/Resoutrce Group/VM Name
Configuring NetBackup and Microsoft Azure Stack 31
Stale Snapshot cleanup
Note: The directory or folder specified for backup selection while defining
BigData Policy with Application_Type = azurestack must not contain space
or comma in their names.
For example:
/cb9b5b6d-0c60-4ed1-9cd7-7aaf054b899f_OSDisk_9999_1600405027_BDAZSNAP
DataDisk
For example:
/cb9b5b6d-0c60-4ed1-9cd7-7aaf054b899f_DataDisk_1_1600405027_BDAZSNAP
Chapter 4
Performing backups and
restores of Microsoft Azure
Stack
This chapter includes the following topics:
■ About the restore scenarios for Microsoft Azure Stack VMs from the BAR
interface
■ Using the BAR interface to restore an Microsoft Azure Stack VM at the same
location
■ Using the bprestore command to restore Microsoft Azure Stack VM at the same
location
■ Using the BAR interface to restore an Microsoft Azure Stack VM with modified
metadata at a different location
■ Using the bprestore command to restore Microsoft Azure Stack VM with modified
metadata to an alternate region
Performing backups and restores of Microsoft Azure Stack 33
About backing up Microsoft Azure virtual machines
Task Reference
Understanding the See “About the restore scenarios for Microsoft Azure Stack VMs from
restore scenarios the BAR interface” on page 34.
Task Reference
Migrating Azure Stack See “Conversion of Unmanaged disk VM to Managed disk VM”
unmanaged disk VM on page 51.
to managed disk VM
Restoring Azure See “Using the BAR interface to restore an Microsoft Azure Stack
Stack VM to a VM to different location” on page 42.
different location
Restore the Microsoft Azure Stack VM with Restore everything to its original location.
the existing configuration to the same location
(subscription ID and resource group)
Restore the Microsoft Azure Stack VM with Restore everything to a different location
the existing configuration to an alternate (maintaining existing structure).
location (subscription ID and resource group)
Restore the Microsoft Azure Stack VM with Restore individual directories and files to
modified configuration (includes VM metadata different locations.
and location)
Performing backups and restores of Microsoft Azure Stack 35
About the restore scenarios for Microsoft Azure Stack VMs from the BAR interface
The options are available after you enter the details in the Backup, Archive, and
Restore interface and proceed to the Restore Marked Files dialog box.
Figure 4-1 Restore options from the Restore Marked Files dialog box
Restore workflows
The following diagrams give an overview of the restore workflow:
Performing backups and restores of Microsoft Azure Stack 36
About the restore scenarios for Microsoft Azure Stack VMs from the BAR interface
Figure 4-2 Restore the Azure Stack VMs to the original location
Azure Stack VM
Restore using
NetBackup Delete original
VM manually
Yes
Restore individual
No
directories and files
to different
locations
Azure Stack VM
Restore using
NetBackup
Different
location No
Is it a Restore everything to
Retain original Yes Change Yes Yes a different location
managed disk
VM config subscription (maintaining existing
VM? structure)
No Restore individual
No
directories and files to
different locations
■ If a VM recovery operation fails, you must remove the resources that are created
during the restore manually. The resources can include IP address, NIC, OS,
and Data disks. Resources can be identified by suffix -restorenic-,
-restoreip-, -RESTORE- followed by timestamp.
■ You cannot restore a VM with the same name to its original location if the VM
still exists. Also Vnet, NSG of the backed up VM needs to exist for VM recovery
to succeed.
■ To recover a VM, the NetBackup role must have access to the specified
subscription and resource group.
■ NetBackup can recover the following VM properties:
■ Tags
■ OS Boot Diagnostic Settings
■ For any other properties or configuration settings, you must apply them manually
after the recovery is done.
■ During a recovery, the host name does not change and it remains the same as
the backed-up VM. You must log on to the VM and use the OS commands to
change the host name.
■ When you restore at the original location, a new network configuration is created.
One NIC is created and is attached to that virtual network to which the VM was
connected during the backup. This step results in the change of the MAC and
IP addresses.
■ When you want to update the configuration during a VM recovery operation,
you must select all the metadata files by double clicking one of the metadata
files. You can rename files corresponding to configuration you want to change.
■ When you want to update the configuration during a VM recovery operation,
you can specify the resource group or networks security group that belong to a
different resource group than the VM as follows:
Vnet=<ResourceGroup_Name>/<virtual_network_Name>
Nsg=<ResourceGroup_Name>/<NetworkSecurityGroup_Name>
■ Restore from imported images is not supported through BAR GUI. One needs
to use bprestore command for doing restore.
■ Alternate region restore is supported through bprestore command only.
3 Select the appropriate date range to restore the complete data set.
4 In the Browse directory, specify the root directory ( “/”) as the path to browse.
5 From the File menu (Windows) or Actions menu (UNIX), choose Specify
NetBackup Machines and Policy Type.
6 Go to the Backup History and select the backup images that you want to
restore.
7 In the Directory Structure pane, expand the Directory.
All the subsequent files and folders under the directory are displayed in the
Contents of Selected Directory pane.
Performing backups and restores of Microsoft Azure Stack 39
Using the BAR interface to restore an Microsoft Azure Stack VM at the same location
8 In the Contents of Selected Directory pane, select the check box for the
Microsoft Azure VMs that you want to restore.
9 Click Restore.
10 In the Restore Marked Files dialog box, select the destination for restore as
per your requirement.
■ Select Restore everything to its original location to restore your files to
the same location where you performed your backup.
Note: For more information about the restore scenarios, See “About the
restore scenarios for Microsoft Azure Stack VMs from the BAR interface”
on page 34.
To restore Microsoft Azure data on the same location as your backup location
1 Log on as an Administrator or root user to the NetBackup master server on
windows or UNIX system respectively.
2 Run the following command on the NetBackup master server by providing
appropriate values:
bprestore -S master_server -D backup_host-C client -t 44 -X -s
<bktime> -e <bktime> -L progress log -f listfile | filenames
"/subscription ID/resource group/VmName"
Where,
-S master_server
Specifies a file (listfile) that contains a list of files to be restored and can
be used instead of the file names option (filenames). In listfile, list each
file path must be on a separate line.
-L progress_log
Specifies the name of allowed list file path in which to write progress information.
-t 44
Start and end date for backup image selection. with X option one could specify
timestamp instead of human readable format, Refer to bprestore command
in the Commands Reference Guide.
Performing backups and restores of Microsoft Azure Stack 42
Using the BAR interface to restore an Microsoft Azure Stack VM to different location
3 Select the appropriate date range to restore the complete data set.
4 In the Browse directory, specify the root directory ( “/”) as the path to browse.
5 From the File menu (Windows) or Actions menu (UNIX), choose Specify
NetBackup Machines and Policy Type.
6 Go to the Backup History and select the backup images that you want to restore.
7 In the Directory Structure pane, expand the Directory. All the subsequent files
and folders under the directory are displayed in the Contents of Selected
Directory pane.
Performing backups and restores of Microsoft Azure Stack 43
Using the BAR interface to restore an Microsoft Azure Stack VM to different location
8 In the Contents of Selected Directory pane, select the check box for the
Microsoft Azure VMs that you want to restore.
9 Click Restore.
10 In the Restore Marked Files dialog box, select the destination for restore as
per your requirement.
Select Restore everything to different location to restore VM to the different
RG/Subscription.
Performing backups and restores of Microsoft Azure Stack 44
Using the BAR interface to restore an Microsoft Azure Stack VM with modified metadata at a different location
Note: For more information about the restore scenarios, See "About the restore
scenarios for Microsoft Azure Stack VMs from the BAR interface".
■ Specify the Microsoft Azure Application Endpoint as the source for which
you want to perform the restore operation.
From the Source client for restores list, select the required Application
server.
■ Specify the backup host as the destination client.
From the Destination client for restores list, select the required backup
host.
■ On the Specify NetBackup Machines and Policy Type wizard, enter the
policy type details for restore.
From the Policy type for restores list, choose BigData as the policy type
for restore.
Click Ok.
3 Select the appropriate date range to restore the complete data set.
4 In the Browse directory, specify the root directory ( “/”) as the path to browse.
5 From the File menu (Windows) or Actions menu (UNIX), choose Specify
NetBackup Machines and Policy Type.
6 Go to the Backup History and select the backup images that you want to
restore.
7 In the Directory Structure pane, expand the Directory.
All the subsequent files and folders under the directory are displayed in the
Contents of Selected Directory pane.
Performing backups and restores of Microsoft Azure Stack 46
Using the BAR interface to restore an Microsoft Azure Stack VM with modified metadata at a different location
8 Select the VM that you want to restore. Ensure that the storage account
directories are selected.
For example:
For Managed disk VM, select all the disks under ManagedDisks.
Performing backups and restores of Microsoft Azure Stack 47
Using the BAR interface to restore an Microsoft Azure Stack VM with modified metadata at a different location
If you wish to change the disk property, for example, disk RG, disk name select
individual disks file.
Note: You must select all the metadata files and rename or modify only the
metadata that you want to change.
Select the Metadata folder and unselect and select any metadata in the
contents of selection column so that all the options appear in the restore marked
file dialog box.
Performing backups and restores of Microsoft Azure Stack 48
Using the BAR interface to restore an Microsoft Azure Stack VM with modified metadata at a different location
VmName Name of the VM. Name of the VM during backup. Valid VM Name that is unique in
the resource group.
PowerState State of the VM after Power state of the VM during Stopped, Deallocate, or
restore. backup. Running
Size Size of the VM in the Size of the VM during backup. Valid VM size.
Microsoft Azure Stack
recommended format.
For more information,
refer to Azure Stack
VM Sizes.
Vnet The virtual network Vnet of the VM during backup. Virtual network in the target
that contains the VM. subscription.
Nsg The Network Security Nsg of the VM during backup. NSG in the target subscription.
Group of the VM.
If empty value is specified, for
example, Nsg, Network security
group is not set for the VM.
RgName Location or the Resource Group of the VM during Resource group that is a part of
resource group of the backup. the target subscription.
Microsoft Azure Stack
VM.
Storage Account The storage account Storage account of the VM during Valid storage account that is a part
that contains the backup. of the target subscription.
unmanaged VM disks.
This is part of the VHD
path and not a
separate metadata
file.
SubId Microsoft Azure Stack Subscription ID of the VM during Subscription ID that a NetBackup
subscription ID. backup. role can access.
Performing backups and restores of Microsoft Azure Stack 49
Using the BAR interface to restore an Microsoft Azure Stack VM with modified metadata at a different location
Boot Diagnostics Boot Diagnostics Boot diagnostics settings of the Valid storage account that is part
settings. unmanaged VM during backup. of the target subscription.
UseManagedDisk VM has managed disk Managed disks setting for the Yes for VM with managed disks.
or unmanaged disks backed up VM.
No for VM with unmanaged disks.
Storage Account Managed disk storage Storage Account Type of the Supported Storage Account Type
Type type. This is part of backed up managed disk. string by Azure Stack, for example,
managed disk path Standard_LRS, Premium_LRS.
and not Metadata file.
If
StorageAccountType
is not detected during
backup. User needs to
specify it during
restore
Disk RG Resource Group of Resource group of the backed up Resource group that is part of the
the Managed disk. Managed disk target subscription.
This is part of
managed disk path
and not Metdata file.
10 Click Restore.
Performing backups and restores of Microsoft Azure Stack 50
Using the BAR interface to restore an Microsoft Azure Stack VM with modified metadata at a different location
11 In the Restore Marked Files dialog box, select Restore individual directories
and files to different locations..
Note: For more information about the restore scenarios, See “About the restore
scenarios for Microsoft Azure Stack VMs from the BAR interface” on page 34.
For every metadata value that you want to change, select the value, click
Change Selected Destination(s), and in the Destination field modify the
metadata value at the end of the URL.
For example, if you want to change the VmName, change:
/21c71fdf-3ee5-4b57-8c51-18ebe7032237/SKRG/MSvm15/Metadata/VmName=OldVmName
to
/21c71fdf-3ee5-4b57-8c51-18ebe7032237/SKRG/MSvm15/Metadata/VmName=NewVmName
Here, VMName is the key and OldVmName is the value. The metadata and its
value have the Key=Value format. You must modify the value of all the metadata
that you want to change.
Changing managed disk properties
Change
/3f6a2463-d473-4639-a1d0-f762c4e0371a/HeadsUp-RestoreRG20/skvm1/
ManagedDisks:Standard_LRS/HeadsUp-RestoreRG20/
skvm1_OsDisk_1_be667512b2a44ecfb1ffa43506aaa48c-RESTORE-1598299429
to
/3f6a2463-d473-4639-a1d0-f762c4e0371a/HeadsUp-RestoreRG20/skvm1/
ManagedDisks:Premium_LRS/HeadsUp-RestoreRG30/osdisk_1
Change
/3f6a2463-d473-4639-a1d0-f762c4e0371a/HeadsUp-RestoreRG20/skuvm1/
headsupsta.blob.tasz.vxi.vwx.com/vhds/skuvm1-UMD-RESTORE-1599155872.vhd
to
/3f6a2463-d473-4639-a1d0-f762c4e0371a/HeadsUp-RestoreRG20/skuvm1/
stasub2testrgg.blob.tasz2.vxi.vwx.com/vhds/skuvm1-UMD-RESTORE-1599155872.vhd
Note: For the VM size metadata, specify the modified value in the Microsoft
Azure Stack recommended format. The new VM size must be part of your
subscription.
For more information, refer to
https://docs.microsoft.com/en-us/azure/azure-stack/user/azure-stack-vm-sizes.
Performing backups and restores of Microsoft Azure Stack 51
Using the BAR interface to restore an Microsoft Azure Stack VM with modified metadata at a different location
/d182ecd4-23c5-4fde-90f3-8951146a385e/NBU-SRG/nbu-an-um-vm11/Metadata/UseManagedDisk=no
=>
/d182ecd4-23c5-4fde-90f3-8951146a385e/NBU-SRG/nbu-an-um-vm11/Metadata/UseManagedDisk=yes
/d182ecd4-23c5-4fde-90f3-8951146a385e/NBU-SRG/nbu-an-um-vm11/
nbusrgdisks439.blob.mtcazs.wwtatc.com/vhds/nbu-an-um-vm1120200625233142.vhd
=>
/d182ecd4-23c5-4fde-90f3-8951146a385e/NBU-SRG/nbu-an-um-vm11/
ManagedDisks:Standard_LRS/NBU-SamRG2/osdisk
Note: Storage account types in lower case is not supported by disk create API and
needs to be specified as Standard_LRS, Premium_LRS, etc.
d182ecd4-23c5-4fde-90f3-8951146a385e/NBU-SRG/nbu-an-um-vm11/Metadata/Key1=value
=>
/d182ecd4-23c5-4fde-90f3-8951146a385e/NBU-SRG/nbu-an-um-vm11/Metadata/UseManagedDisk=yes
/d182ecd4-23c5-4fde-90f3-8951146a385e/NBU-SRG/nbu-an-um-vm11/
nbusrgdisks439.blob.mtcazs.wwtatc.com/vhds/nbu-anil-um-vm1120200625233142.vhd
=>
/d182ecd4-23c5-4fde-90f3-8951146a385e/NBU-SRG/nbu-an-um-vm11/
ManagedDisks:Standard_LRS/NBU-SRG2/osdisk
Performing backups and restores of Microsoft Azure Stack 52
Using the bprestore command to restore Microsoft Azure VM with modified metadata to an alternate location
Note: Staging storage account cannot be specified using rename file and needs
to be specified as part of plugin configuration file.
Storage account type in lower case is not supported by disk create API and needs
to be specified as Standard_LRS, Premium_LRS, etc.
Open the listfile in the editor and remove the special characters at the end
of the line. Remove all the paths that end with forward slash / that corresponds
to directories.
2. Run the following command on the NetBackup master server using the modified
values for the mentioned parameters in step 1.
bprestore -S master_server -D backup_host -C client -R rename_file
-t 44 -L progress log -f listfile | filenames
Where,
-S master_server
Specifies a file (listfile) that contains a list of files to be restored and can
be used instead of the file names option (filenames). In listfile, list each
file path must be on a separate line.
Performing backups and restores of Microsoft Azure Stack 53
Using the bprestore command to restore Microsoft Azure VM with modified metadata to an alternate location
-L progress_log
Specifies the name of allowed list path in which to write progress information.
-t 44
Specifies the name of a file with name changes for alternate-path restores.
For example:
change
/609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
headsrg4disks2.blob.vtasazs1.vxi.ver.com/vhds/sr-VM02-UMD20200826032144.vhd
to /609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
ManagedDisks:Standard_LRS/Heads-RestoreRG20/osdisk1
change /609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/VmName=sr-VM02-UMD to /609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/VmName=sr-VM02-UMD-2md2
change /609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD
/Metadata/UseManagedDisk=No
to /609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/UseManagedDisk=Yes
change /609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
headsuprg4disks2.blob.vtasazs1.vxi.ver.com/vhds/
sr-VM02-UMD20200826032144.vhd
to /609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
ManagedDisks:Standard_LRS/HEADS-SUB3-SR/osdisk1
change
/609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Performing backups and restores of Microsoft Azure Stack 54
Using the bprestore command to restore Microsoft Azure VM with modified metadata to an alternate location
Metadata/Vnet=Heads-sub3-sr-vnet to
/609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/Vnet=Heads-RestoreRG20-vnet
change
/609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/VmName=sr-VM02-UMD to
/609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/VmName=sr-VM02-UMD-2md2
change /609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/UseManagedDisk=No to
/609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/UseManagedDisk=Yes
change /609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/SubId=609c4f4d-5de7-4343-801b-6a3ac2364976 to
/609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/SubId=3f6a2463-d473-4639-a1d0-f762c4e0371a
change /609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/Size=Standard_DS1_v2 to
/609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/Size=Standard_DS2_v2
change /609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/RgName=Heads-sub3-sr to
/609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/RgName=Heads-RestoreRG20
change /609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/Nsg=sr-VM02-UMD-nsg to
/609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/Nsg=HeadsUp-RestoreRG20-nsg
change /609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/BootDiagnostics=headsuprg4diag398 to
/609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
Metadata/BootDiagnostics=headsupsta
change /609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
headsuprg4disks2.blob.vtasazs1.vxi.ver.com/vhds/
sr-VM02-UMD20200826032144.vhd to
Performing backups and restores of Microsoft Azure Stack 55
Using the bprestore command to restore Microsoft Azure Stack VM with modified metadata to an alternate
region
/609c4f4d-5de7-4343-801b-6a3ac2364976/Heads-sub3-sr/sr-VM02-UMD/
ManagedDisks:Standard_LRS/HeadsUp-RestoreRG20/osdisk1
Note: Ensure that you have allowed list of all the file paths such as
<rename_file_path>, <progress_log_path> that are not included as a part of
NetBackup install path.
Parameter Value
change
/21c71fdf-3ee5-4b57-8c51-18ebe7032237/SKRG/MSvm15
/Metadata/VmName=OldVmName
to
/21c71fdf-3ee5-4b57-8c51-18ebe7032237/SKRG/MSvm15/
Metadata/VmName=NewVmName
change
/21c71fdf-3ee5-4b57-8c51-18ebe7032237/SKRG/MSvm15
/Metadata/PowerState=running
to
/21c71fdf-3ee5-4b57-8c51-18ebe7032237/SKRG/MSvm15
/Metadata/PowerState=deallocate
Add a new entry for all the metadata options that you want to
modify.
Note: For the VM size metadata, specify the modified value in
the Microsoft Azure Stack recommended format. The new VM size
must be part of your subscription.
Open the listfile in the editor and remove the special characters at the end
of the line. Remove all the paths ending with / that correspond to directories.
4 Run the following command on the NetBackup master server using the modified
values for the mentioned parameters in step 1.
bprestore -S master_server -D backup_host-C client -R rename_file
-t 44 -X -s bktime -e bktime -L progress log -f listfile |
filenames
Where,
-S master_server
Specifies a file (listfile) that contains a list of files to be restored and can
be used instead of the file names option (filenames). In listfile, list each
file path must be on a separate line.
-L progress_log
Specifies the name of allowed list file path in which to write progress information.
-t 44
Specifies the name of a file with name changes for alternate-path restores.
ALT_APPLICATION_SERVER=management.vtsz2.vxi.vs.com
change
/3f6a2463-d473-4639-a1d0-f762c4e0371a/HUp-RestoreRG20/skuvm1/Metadata/BootDiagnostics=hupsta
Performing backups and restores of Microsoft Azure Stack 59
Using the bprestore command to restore Microsoft Azure Stack VM with modified metadata to an alternate
region
to
/3f6a2463-d473-4639-a1d0-f762c4e0371a/HeadsUp-RestoreRG20/skuvm1/Metadata/BootDiagnostics=stasub2testrgg
change
/3f6a2463-d473-4639-a1d0-f762c4e0371a/HUp-RestoreRG20/skuvm1/Metadata/Nsg=HUp-RestoreRG20-nsg
to /3f6a2463-d473-4639-a1d0-f762c4e0371a/HUp-RestoreRG20/skuvm1/Metadata/Nsg=rs-md-21-nsg
change
/3f6a2463-d473-4639-a1d0-f762c4e0371a/HUp-RestoreRG20/skuvm1/Metadata/RgName=HUp-RestoreRG20
to
/3f6a2463-d473-4639-a1d0-f762c4e0371a/HUp-RestoreRG20/skuvm1/Metadata/RgName=rshney-perf-set6
change /3f6a2463-d473-4639-a1d0-f762c4e0371a/HUp-RestoreRG20/skuvm1/Metadata/
SubId=3f6a2463-d473-4639-a1d0-f762c4e0371a
to /3f6a2463-d473-4639-a1d0-f762c4e0371a/HUp-RestoreRG20/skuvm1/Metadata/
SubId=b326ed58-7537-4c81-b2ac-5b16d6a524b3
change /3f6a2463-d473-4639-a1d0-f762c4e0371a/HUp-RestoreRG20/skuvm1/Metadata/VmName=skuvm1
to
/3f6a2463-d473-4639-a1d0-f762c4e0371a/HUp-RestoreRG20/skuvm1/Metadata/VmName=skuvm1-restore2
change
/3f6a2463-d473-4639-a1d0-f762c4e0371a/HUp-RestoreRG20/skuvm1/Metadata/Vnet=HUp-RestoreRG20-vnet
to
/3f6a2463-d473-4639-a1d0-f762c4e0371a/HUp-RestoreRG20/skuvm1/Metadata/Vnet=rshney-perf-set6-vnet
change
/3f6a2463-d473-4639-a1d0-f762c4e0371a/HUp-RestoreRG20/skuvm1/HUpsta.blob.vtszs1.vxi.vs.com/vhds/
skuvm1-UMD-RESTORE-1599155872.vhd
to
/3f6a2463-d473-4639-a1d0-f762c4e0371a/HUp-RestoreRG20/skuvm1/stasub2testrgg.blob.vtszs2.vxi.veritas.com/
vhds/skuvm1-UMD-RESTORE-1599155872.vhd
Chapter 5
Troubleshooting
This chapter includes the following topics:
Limitation Workaround
Unable to obtain the authentication token after NetBackup The encryption and the decryption algorithm is updated in
upgrades from 8.1.2 to 9.0. NetBackup 9.0. Remove all the existing Microsoft Azure
servers from NetBackup and add them again after
NetBackup upgrades to 9.0.
Troubleshooting 62
Backup fails with error 6662
Limitation Workaround
VMs in a provisioning state other than Succeeded are If the restore fails for any VM, check the log files and check
backed up successfully, but their restore can fail because whether the provisioning state of the VM was Succeeded
of the inconsistent VM state at the time of the backup. or something else during the time of the backup. If the
provisioning status is anything apart from Succeeded, the
VM cannot be restored.
Workaround:
Ensure that you have created a credential file, whitelisted the path to the file, and
the file path is specified in the tpconfig command.
See “Adding Microsoft Azure Stack credentials in NetBackup” on page 28.
Workaround:
Verify that the right configuration options are added in the credential file that is
specified in the tpconfig command.
See “Adding Microsoft Azure Stack credentials in NetBackup” on page 28.
Workaround:
Run the backup operation again. The error might be because of the Azure Stack
being overloaded.
Troubleshooting 63
Backup fails with error 6629
Workaround:
■ Validate the configuration options and the values in the credential file.
■ Verify the values when you run the ./tpconfig -dappservers command.
■ Verify the values for the Azure Stack user name and password.
See “Adding Microsoft Azure Stack credentials in NetBackup” on page 28.
Workaround:
Verify the name of the ARM endpoint.
Workaround:
■ Verify the value of the backup selection from the Azure Stack portal.
■ Verify the values of the AuthResource in the credentials file for the backup
selection.
■ Verify that you have added the appropriate ARM endpoint in the backup policy
and the credentials file for the backup selection.
■ Ensure that you have created a custom role for your Azure Stack subscription.
Run the tpconfig -update command after you make changes to the credential
file.
See “Adding Microsoft Azure Stack credentials in NetBackup” on page 28.
Troubleshooting 64
Restore fails with error 2850
Workaround:
Specify a valid and supported VM size.
The error details also describe the VHDs that are not backed up.
Workaround:
Ensure that the following parameters are configured properly:
■ If FETCH_STORAGE_KEYS=true, ensure that the NetBackup administrator
has permissions for fetching and accessing storage account and access keys
for Azure Stack.
■ If FETCH_STORAGE_KEYS=false, ensure that you have added required storage
accounts with the access keys in the credential file.
Run the tpconfig -update command after you make changes to the credential
file.
See “Adding a Microsoft Azure Stack custom role to provide access permissions
to NetBackup administrator” on page 17.
See “Adding Microsoft Azure Stack credentials in NetBackup” on page 28.