When using a PowerShell script that is intended to remotely execute a command upon the Veeam server, it may fail if the SQL instance that Veeam Backup & Replication is configured to use is on a different server.
This KB article applies only if the following two statements are true.
A PowerShell script is attempting to run on the Veeam server from a machine that is not the Veeam server.
The SQL instance where the VeeamBackup database is located is on separate server from the Veeam server.
The following error may also occur for other reasons, this KB only applies if it related to above stated intent.
Error: Microsoft SQL server hosting the configuration database is currently unavailable. Possible reasons are heavy load, networking issue, server reboot, or hot backup. Please wait, and try again later. Error information: SQL server is not available
CredSSP is not being used to delegate credentials which is causing the query to time out.
The following cmdlets need to be run in an elevated PowerShell prompt:
On the server, where PS script is running please do the following: Enable-WSManCredSSP -role Client -DelegateComputer "FQDN of the Veeam server"
On the Veeam server please run the following command in PowerShell: Enable-WSManCredSSP -Role Server
After this is configured, all scripts run from the remote server must contain the following line: $ses = New-PSSession -ComputerName "FQDN of the Veeam server" -Credential $creds -Authentication CredSSP