Как перенести SQL экземпляр сервера с локального экземпляра на Azure виртуальную машину SQL экземпляр сервера?
Обращение за помощью к специалистам для решения следующей проблемы.
Сценарий:
LocalInstance: SQLSRV01
Azure VM: 23.96.20.20
-Local SQL SERVER и Azure VM SQL SERVER Instance SQLSERVER 2017 (14.0)
-Добавлено правило входящего порта для sql сервера
-SharedPath, доступного с обеих сторон (локальный компьютер, а также с Azure VM: 23.96.20.20)
-Экземпляр DBSERVER17 доступен и подключен с локального компьютера
-Та же команда хорошо работала на моем локальном компьютере с двумя разными SQL экземплярами СЕРВЕРА.
Power Shell Скрипт:
$params = @{
Source = "SQLSRV01"
Destination = "23.96.20.20"
SharedPath = "Z:"
BackupRestore = $true
}
Start-DbaMigration @params -Force | Select * | Out-GridView
Полученный результат:
PS C:\WINDOWS\system32> E:\PowerShellScripts\RemoteInstance.ps1
WARNING: [16:05:58][Copy-DbaSpConfigure] Error occurred while establishing connection to 23.96.20.20 | The wait operat
ion timed out
WARNING: [16:06:15][Copy-DbaCustomError] Error occurred while establishing connection to 23.96.20.20 | The wait operat
ion timed out
WARNING: [16:06:15][Copy-DbaCredential] Console not elevated, but elevation is required to perform some actions on loc
alhost for this command.
WARNING: [16:06:15][Copy-DbaDbMail] Error occurred while establishing connection to 23.96.20.20 | The wait operation t
imed out
WARNING: [16:06:15][Copy-DbaRegServer] Error occurred while establishing connection to 23.96.20.20 | The wait operatio
n timed out
WARNING: [16:06:15][Copy-DbaBackupDevice] Error occurred while establishing connection to 23.96.20.20 | The wait opera
tion timed out
WARNING: [16:06:15][Copy-DbaInstanceTrigger] Error occurred while establishing connection to 23.96.20.20 | The wait op
eration timed out
WARNING: [16:06:15][Copy-DbaDatabase] Error occurred while establishing connection to 23.96.20.20 | The wait operation
timed out
WARNING: [16:06:15][Copy-DbaLogin] Error occurred while establishing connection to 23.96.20.20 | The wait operation ti
med out
The wait operation timed out
At C:\Program Files\WindowsPowerShell\Modules\dbatools\1.0.113\allcommands.ps1:83435 char:9
throw $records[0]
~~~~~~~~~~~~~~~~~
CategoryInfo : NotSpecified: (:) [], Exception
FullyQualifiedErrorId : dbatools_Connect-DbaInstance