Veeam B&R restore Physical SQL cluster server to ESXi for UAT environment

This lab will use local disk for Quorum not share disk, and just restore 1 cluster hosts let SQL online

Remark: if we want to auto start cluster, we need to restore AD to UAT environment or using a script to start without quorum.

Export disk to VMDK

Our lab don’t need Q: and F:

We can found restored to our ESXi UAT environment

Add A new VM using existing disk

Delete default “Hard disk 1”, and add existing disk just restored.

Our phyical server using EFI bios

Power On windows and we can see the cluster can’t startup

Type below command to startup without Quorum disk

net.exe stop clussvc
net.exe start clussvc /forcequorum

Delete Cluster disk.

If we don’t delete it, we can’t let the disk online in “Disk Management”

Make the SQL data disk online

Reconfig the IP

Click “Start Role” to let SQL Server online

We can see SQL is Running now

But it can’t auto start after reboot server, we need to config Quorum

Delete the old one, because Quorum can’t online in local disk

Create a SMB share

This step need AD to authenticate

Veeam backup for Microsoft O365 remove unused user date & license

$org = Get-VBOOrganization -Name “xxx.onmicrosoft.com”
$User1 = Get-VBOLicensedUser -Organization $org -Name “myname@domain.com”
$User1

$repository = Get-VBORepository -Name “xxx Backup Repository”
$user = Get-VBOEntityData -Type User -Repository $repository -Name “myname@domain.com”
Remove-VBOEntityData -Repository $repository -User $user -Mailbox -ArchiveMailbox -OneDrive -Sites
#Y will accept the deleting of data

$org = Get-VBOOrganization -Name “xxx.onmicrosoft.com”
$licensedUser = Get-VBOLicensedUser -Organization $org -Name “myname@domain.com”
Remove-VBOLicensedUser -User $licensedUser

Veeam Backup for o365 Account Permission

$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session -DisableNameChecking

Get-ManagementRoleAssignment -Role “ApplicationImpersonation”
New-ManagementRoleAssignment –Role ApplicationImpersonation –User backup@xxx.com
Get-ManagementRoleAssignment -Role “ApplicationImpersonation”

Get-ManagementRoleAssignment -Role “View-Only Configuration”
New-ManagementRoleAssignment –Role “View-Only Configuration” –User backup@xxx.com
Get-ManagementRoleAssignment -Role “View-Only Configuration”

Get-ManagementRoleAssignment -Role “View-Only Recipients”
New-ManagementRoleAssignment –Role “View-Only Recipients” –User backup@xxx.com
Get-ManagementRoleAssignment -Role “View-Only Recipients”

Get-ManagementRoleAssignment -Role “Mailbox Search”
New-ManagementRoleAssignment –Role “Mailbox Search” –User backup@xxx.com
Get-ManagementRoleAssignment -Role “Mailbox Search”

Remove

Get-ManagementRoleAssignment -RoleAssignee “backup@xxx.com” -Role “ApplicationImpersonation” -RoleAssigneeType user | Remove-ManagementRoleAssignment

Get-ManagementRoleAssignment -RoleAssignee “backup@xxx.com” -Role “View-Only Configuration” -RoleAssigneeType user | Remove-ManagementRoleAssignment

Get-ManagementRoleAssignment -RoleAssignee “backup@xxx.com” -Role “View-Only Recipients” -RoleAssigneeType user | Remove-ManagementRoleAssignment

Get-ManagementRoleAssignment -RoleAssignee “backup@xxx.com” -Role “Mailbox Search” -RoleAssigneeType user | Remove-ManagementRoleAssignment

 

https://www.veeam.com/free-backup-microsoft-office-365.html?ad=menu-products

https://helpcenter.veeam.com/docs/vbo365/guide/permisisons_exchange.html?ver=40