New-VBRAzureDiskConfiguration
Defines Azure VM disk types.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
New-VBRAzureDiskConfiguration -DiskName <String> -DiskType <VBRAzureDiskType> [-Include] [<CommonParameters>] |
This cmdlet creates the VBRAzureDiskConfiguration object that defines Azure VM disk types. Veeam Backup & Replication will attach disks of these types to the restored workloads.
For more information on disk types, see Microsoft Docs.
Parameter | Description | Type | Required | Position | Accept Pipeline Input |
---|
DiskName | Specifies the name of a disk whose type you want to change during further restore. Note: The disk must exist in the backup from which you plan to restore. | String | True | Named | False |
DiskType | Specifies the type of the disk that Veeam Backup & Replication will attach to the restored workloads. You can specify the following type: - StandardHDD
- StandardSSD
- PremiumSSD
| VBRAzureDiskType | False | Named | False |
Include | Defines that the cmdlet will attach an Azure VM disk to the restored workloads. | SwitchParameter | False | Named | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
VBRAzureDiskConfiguration
This example shows how to define the Azure StandardHDD disk type for a computer disk backed-up with Veeam Agent for Microsoft Windows. $backup = Get-VBRBackup -Name "Windows Servers Backup" $restorePoint = Get-VBRRestorePoint -Backup $backup | Sort-Object -Property CreationTime -Descending | Select-Object -First 1 $diskNames = Get-VBRComputerDisk -RestorePoint $restorePoint $diskConfig = New-VBRAzureDiskConfiguration -DiskName $diskNames[0].UniqueId -DiskType StandardHDD -Include |
Perform the following steps: - Run the Get-VBRBackup cmdlet. Specify the Name parameter value. Save the result to the $backup variable.
- Run the Get-VBRRestorePoint cmdlet. Specify the Backup parameter value.
- Pipe the cmdlet output to the Sort-Object cmdlet. Set the CreationTime value for the Property parameter. Provide the Descending parameter.
- Pipe the cmdlet output to the Select-Object cmdlet. Specify the First parameter value. Save the result to the $restorePoint variable.
- Run the Get-VBRComputerDisk cmdlet. Set the $restorePoint value for the RestorePoint parameter. Save the result to the $diskNames variable.
- Run the New-VBRAzureDiskConfiguration cmdlet. Specify the following:
- Set the $diskNames[0].UniqueId variable as the DiskName parameter value.
- Specify the DiskType and Include parameter values.
- Save the result to the $diskConfig variable.
|
This example shows how to define the Azure StandardHDD disk type for disks of Microsoft Hyper-V VMs. $backup = Get-VBRBackup -Name "VM Backup Job" $restorePoint = Get-VBRRestorePoint -Backup $backup | Sort-Object -Property CreationTime -Descending | Select-Object -First 1 $diskConfig = New-VBRAzureDiskConfiguration $restorePoint.AuxData.Disks[0].TargetFilePath -DiskType StandardHDD -Include |
Perform the following steps: - Run the Get-VBRBackup cmdlet. Specify the Name parameter value. Save the result to the $backup variable.
- Run the Get-VBRRestorePoint cmdlet. Specify the Backup parameter value.
- Pipe the cmdlet output to the Sort-Object cmdlet. Set the CreationTime value for the Property parameter. Provide the Descending parameter.
- Pipe the cmdlet output to the Select-Object cmdlet. Specify the First parameter value. Save the result to the $restorePoint variable.
- Run the New-VBRAzureDiskConfiguration cmdlet. Specify the following:
- Set the $restorePoint.AuxData.Disks[0].TargetFilePath variable as the DiskName parameter value.
- Specify the DiskType and Include parameter values.
- Save the result to the $diskConfig variable.
|
This example shows how to define the Azure StandardHDD disk type for disks of workloads other than computers backed-up with Veeam Agent for Microsoft Windows. This example shows how to do it for a VMware vSphere VM. $backup = Get-VBRBackup -Name "VM Backup Job" $restorePoint = Get-VBRRestorePoint -Backup $backup | Sort-Object -Property CreationTime -Descending | Select-Object -First 1 $diskConfig = New-VBRAzureDiskConfiguration -DiskName $restorePoint.AuxData.Disks[0].FileName -DiskType StandardHDD -Include |
Perform the following steps: - Run the Get-VBRBackup cmdlet. Specify the Name parameter value. Save the result to the $backup variable.
- Run the Get-VBRRestorePoint cmdlet. Specify the Backup parameter value.
- Pipe the cmdlet output to the Sort-Object cmdlet. Set the CreationTime value for the Property parameter. Provide the Descending parameter.
- Pipe the cmdlet output to the Select-Object cmdlet. Specify the First parameter value. Save the result to the $restorePoint variable.
- Run the New-VBRAzureDiskConfiguration cmdlet. Specify the following:
- Set the $restorePoint.AuxData.Disks[0].FileName variable as the DiskName parameter value.
- Specify the DiskType and Include parameter values.
- Save the result to the $diskConfig variable.
|