Start-VBRAzureInstantRecovery
Short Description
Starts Instant Recovery to Microsoft Azure.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Start-VBRAzureInstantRecovery -RestorePoint <COib> -Subscription <VBRAzureSubscription> -Location <VBRAzureLocation> -VmSize <VBRAzureVMSize> [-VmName <String>] [-DiskConfigurations <VBRAzureDiskConfiguration[]>] [-Tags <VBRAzureTag[]>] [-ResourceGroup <VBRAzureResourceGroup>] [-NewResourceGroupName <String>] -VirtualNetwork <VBRAzureVirtualNetwork> -VirtualSubnet <VBRAzureNetworkSubnet> [-ApplianceStorageAccount <VBRAzureStorageAccount>] -ApplianceSubnet <VBRAzureNetworkSubnet> [-NetworkSecurityGroup <VBRNetworkSecurityGroup>] [-SkipNetworkSecurityGroup] [-AllocatePublicIP] [-VerifyVMBoot] [-Reason <String>] [-RunAsync] [<CommonParameters>] |
Detailed Description
This cmdlet starts Instant Recovery to Microsoft Azure. For the list of workload types that you can restore, see in the Instant Recovery to Microsoft Azure section in the Veeam Backup & Replication User Guide.
The recovered VM runs from a backup and does not provide a fully functioning service. You need to finalize the successful instant recovery by one of the following steps:
- Migrate the recovered VM to the production. To do this, run the
Start-VBRAzureInstantRecoveryMigrationStarts migration to production for the specified Instant Recovery to Microsoft Azure operation. cmdlet. - Remove the recovered VM. You can stop publishing the recovered VM and discard the changes made to it while it was running from backup. To do this, run the
Stop-VBRAzureInstantRecoveryStops the specified Instant Recovery to Microsoft Azure operation. cmdlet.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
AllocatePublicIP |
Defines that the cmdlet will assign a public IP to the recovered workload. |
|
False |
Named |
False |
|
ApplianceStorageAccount |
Specifies the storage account through which the recovered workload will communicated with the helper appliance.
Accepts the |
False |
Named |
False |
|
|
ApplianceSubnet |
Specifies the subnet where the cmdlet deploys the helper appliance for the recovered workload.
Note: It is recommended to use separate subnets for the
Accepts the |
True |
Named |
False |
|
|
DiskConfigurations |
Specifies the Microsoft Azure VM disk type. The cmdlet will attach disks of this type to the recovered workload. Default: Premium SSD.
Accepts the |
False |
Named |
False |
|
|
Location |
Specifies a geographic region to which you want to place the recovered workloads.
Accepts the |
True |
Named |
False |
|
|
NetworkSecurityGroup |
Specifies the security group for the recovered workload. If you do not specify a network security group, Veeam Backup & Replication will automatically create a new group, allow RDP and SSH on it and connect network interfaces to it. For more information, see Default Security Group Rules.
Accepts the |
|
False |
Named |
False |
|
NewResourceGroupName |
Specifies the name of a new resource group. The cmdlet will create a new resource group with this name.
If you skip this parameter, use the |
|
False |
Named |
False |
|
Reason |
Specifies a restore reason. |
|
False |
Named |
False |
|
ResourceGroup |
Specifies the resource group. The recovered workload will use this restore group.
If you skip this parameter, the cmdlet will need to create a new resource group. Use the
Accepts the |
False |
Named |
False |
|
|
RestorePoint |
Specifies the restore point to which you want to recover the workload.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
RunAsync |
Defines that the command returns immediately without waiting for the task to complete. |
|
False |
Named |
False |
|
SkipNetworkSecurityGroup |
Defines that the cmdlet will not assign a network security group to the recovered workload. |
|
False |
Named |
False |
|
Subscription |
Specifies the Microsoft Azure subscription. The cmdlet will recover the workload to this subscription.
Accepts the |
True |
Named |
False |
|
|
Tags |
Specifies tags that you want to assign to the recovered workloads.
Accepts the |
False |
Named |
False |
|
|
VerifyVMBoot |
Defines that Veeam Backup & Replication checks if the recovered workload boots successfully. Veeam Backup & Replication considers recovery as successful after receiving a response from the recovered workload. If the response is not received, Veeam Backup & Replication sends a warning in the recovery session. |
|
False |
Named |
False |
|
VirtualNetwork |
Specifies the Microsoft Azure virtual network. The recovered workload will be connected to this network.
Accepts the |
True |
Named |
False |
|
|
VirtualSubnet |
Specifies the Microsoft Azure virtual subnet. The recovered workload will be connected to this subnet.
Note: It is recommended to use separate subnets for the
Accepts the |
True |
Named |
False |
|
|
VmName |
Specifies the VM name. The recovered workload will have this name. If you do not specify a new name, the restored VM will have the original name. |
|
False |
Named |
False |
|
VmSize |
Specifies the Microsoft Azure VM configuration. The recovered workload will use this configuration template.
Accepts the |
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Example 1. Starting Instant Recovery to Microsoft Azure
This example shows how to start Instant Recovery to Microsoft Azure.
|
$point = Get-VBRBackup -Name "Tech VM" | Get-VBRRestorePoint -Name "backup-azure-win16-g1" | Sort-Object -Property CreationTime -Descending | Select-Object -First 1 $account = Get-VBRAzureAccount -Name "RestoreToAzureRM@Tech.com" $subscription = Get-VBRAzureSubscription -Account $account -Name "VeeamDirectRestore2Azure" $location = Get-VBRAzureLocation -Subscription $subscription -Name "swedencentral" $vmSize = Get-VBRAzureVMSize -Subscription $subscription -Location $location -Name "Standard_F4s_v2" $virtualNetwork = Get-VBRAzureVirtualNetwork -Subscription $subscription -Name tech* -Location $location $subnet = Get-VBRAzureVirtualNetworkSubnet -Network $virtualNetwork -Name "default" $group = Get-VBRAzureResourceGroup -Subscription $subscription -Name "tech-ts-group" -Location $location $session = Start-VBRAzureInstantRecovery -RestorePoint $point -Subscription $subscription -Location $location -VmSize $vmSize -VirtualNetwork $virtualNetwork -VirtualSubnet $subnet -ApplianceSubnet $subnet -VmName "tech-recovered-VM" -ResourceGroup $group -RunAsync |
Perform the following steps:
- Get the restore point:
- Run the
Get-VBRBackupReturns backups. cmdlet. Specify theNameparameter value. - Pipe the cmdlet output to the
Get-VBRRestorePointReturns restore points. cmdlet. Specify theNameparameter value. - Pipe the cmdlet output to the
Sort-Objectcmdlet. Set theCreationTimevalue for thePropertyparameter. Provide theDescendingparameter. - Pipe the cmdlet output to the
Select-Objectcmdlet. Specify theFirstparameter value.
- Run the
- Run the
Get-VBRAzureAccountReturns Microsoft Azure accounts added to Veeam Backup & Replication. cmdlet. Specify theNameparameter value. Save it to the$accountvariable. - Run the
Get-VBRAzureSubscriptionReturns subscriptions associated with a Microsoft Azure account. cmdlet. Set the$accountvariable as theAccountparameter value. Specify theNameparameter value. Save it to the$subscriptionvariable. - Run the Get-VBRAzureLocationReturns geographic locations of Microsoft Azure datacenters available for a subscription. cmdlet. Set the
$subscriptionvariable as theSubscriptionparameter value. Specify theNameparameter value. Save it to the$locationvariable. - Run the Get-VBRAzureVMSizeReturns Microsoft Azure VM configuration options available for a subscription. cmdlet. Set the
$subscriptionvariable as theSubscriptionparameter value. Set the$locationvariable as theLocationparameter value. Specify theNameparameter value. Save it to the$vmSizevariable. - Run the Get-VBRAzureVirtualNetworkReturns Microsoft Azure virtual networks available for a subscription. cmdlet. Set the
$subscriptionvariable as theSubscriptionparameter value. Specify theNameparameter value. Set the$locationvariable as theLocationparameter value. Save it to the$virtualNetworkvariable. - Run the Get-VBRAzureVirtualNetworkSubnetReturns Microsoft Azure virtual network subnets available for a subscription. cmdlet. Set the
$virtualNetworkvariable as theNetworkparameter value. Specify theNameparameter value. Save it to the$subnetvariable. - Run the Get-VBRAzureResourceGroupReturns Microsoft Azure resource groups available for a subscription. cmdlet. Set the
$subscriptionvariable as theSubscriptionparameter value. Set the$locationvariable as theLocationparameter value. Specify theNameparameter value. Save it to the$groupvariable. - Run the
Start-VBRAzureInstantRecoverycmdlet. Specify the following settings:- Set the
$pointvariable as theRestorePointparameter value. - Set the
$subscriptionvariable as theSubscriptionparameter value. - Set the
$locationvariable as theLocationparameter value. - Set the
$vmSizevariable as theVmSizeparameter value. - Set the
$virtualNetworkvariable as theVirtualNetworkparameter value. - Set the
$subnetvariable as theVirtualSubnetparameter value. - Set the
$subnetvariable as theApplianceSubnetparameter value. - Specify the
VmNameparameter value. - Set the
$groupvariable as theResourceGroupparameter value. - Specify the
RunAsyncparameter value. - Save the result to the
$sessionvariable.
- Set the
Related Commands
Get-VBRBackupReturns backups.Get-VBRRestorePointReturns restore points.Get-VBRAzureAccountReturns Microsoft Azure accounts added to Veeam Backup & Replication.Get-VBRAzureSubscriptionReturns subscriptions associated with a Microsoft Azure account.Get-VBRAzureLocationReturns geographic locations of Microsoft Azure datacenters available for a subscription.Get-VBRAzureVMSizeReturns Microsoft Azure VM configuration options available for a subscription.Get-VBRAzureVirtualNetworkReturns Microsoft Azure virtual networks available for a subscription.Get-VBRAzureVirtualNetworkSubnetReturns Microsoft Azure virtual network subnets available for a subscription.Get-VBRAzureResourceGroupReturns Microsoft Azure resource groups available for a subscription.