Hi All,
I'm trying to get the Add-SqlAvailabilityDatabase command working.
This is how the command is supposed to be formatted:
Add-SqlAvailabilityDatabase -Path "SQLSERVER:\SQL\PrimaryServer\InstanceName\AvailabilityGroups\MyAg" -Database "MyDatabase"
So I ran the following command
Add-SqlAvailabilityDatabase -Path "SQL01:\SQL\PrimaryServer\InstanceName\AvailabilityGroups\AG01" -Database "TestDB01"
But this errors with:
Add-SqlAvailabilityDatabase : Cannot find drive. A drive with the name 'SQL01' does not exist.
But that server is definitely there.
I'm guessing I have the format wrong so can someone tell me how to correctly run this please?
Thanks.
Tom