Add-VSBViApplicationGroup
Short Description
Creates an application group for SureBackup job.
|
This cmdlet is deprecated and will be marked as obsolete in the future. It is recommended to re-write your scripts using the Add-VBRViApplicationGroup cmdlet. |
Applies to
Platform: VMware
For Hyper-V, run Add-VSBHvApplicationGroup.
Product Edition: Enterprise, Enterprise Plus
Syntax
Add-VSBViApplicationGroup [-Name <string>] [-VmFromBackup <CViVmItem[]>] [-VmFromReplica <CViVmItem[]>] [-RestorePoint <COib[]>] [<CommonParameters>] |
Detailed Description
This cmdlet creates an application group containing virtual machines that the application server is dependent on.
You can add to the same application groups VMs from backups and VMs from replicas. All VMs from the application group must have at least one valid restore point created by the time the SureBackup job starts.
Note that you can set the order the VMs in the application group will be powered on when the SureBackup job starts. This may be important if any of the applications must be started prior to other. The VMs are powered in the order they were added to the VM object in this cmdlet.
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Name | Specifies the name you want to assign to the application group. | False | Named | False | False |
VmFrom | Used for adding VMs from backup. Specifies the VM(s) that you want to add to the application group. Veeam Backup & Replication will search for backup jobs that contain the specified VMs and use the most recent restore points of them. You can assign multiple VMs to this object. | False | Named | True (ByValue, | False |
VmFrom | Used for adding VMs from replicas. Specifies the VM(s) that you want to add to the application group. Veeam Backup & Replication will search for replication jobs that contain the specified VMs and use the most recent restore points of them. You can assign multiple VMs to this object. | False | Named | True (ByValue, |
|
Restore | Specifies the particular restore points of the VMs you want to add to the application group. You can assign multiple restore points to this object. | False | Named | True (ByValue, | False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Example 1
This command creates a new application group named "Microsoft Exchange Appgroup". The VMs that should be included into the application group are obtained with Find-VBRViEntity and piped down. The VMs are obtained in the order they must boot when the SureBackup job starts.
Find-VBRViEntity -Name "DC", "DNSServer" | Add-VSBViApplicationGroup -Name "Microsoft Exchange Appgroup" |
Example 2
This command creates a new application group "MailServer Appgroup". The restore point object is obtained with Get-VBRRestorePoint and assigned to the variable beforehand.
Related Commands