Update add-single-db-to-failover-group-az-ps.ps1 (#423)
testing adding an id reference
This commit is contained in:
Родитель
64d5426ad5
Коммит
61e5a56248
|
@ -70,6 +70,7 @@ $drServer = New-AzSqlServer -ResourceGroupName $resourceGroupName `
|
|||
-ArgumentList $adminlogin, $(ConvertTo-SecureString -String $password -AsPlainText -Force))
|
||||
$drServer
|
||||
|
||||
# <CreateFailoverGroup>
|
||||
|
||||
# Create a failover group between the servers
|
||||
$failovergroup = Write-host "Creating a failover group between the primary and secondary server..."
|
||||
|
@ -94,6 +95,8 @@ Add-AzSqlDatabaseToFailoverGroup `
|
|||
-FailoverGroupName $failoverGroupName
|
||||
Write-host "Successfully added the database to the failover group..."
|
||||
|
||||
# </CreateFailoverGroup>
|
||||
|
||||
# Check role of secondary replica
|
||||
Write-host "Confirming the secondary replica is secondary...."
|
||||
(Get-AzSqlDatabaseFailoverGroup `
|
||||
|
|
Загрузка…
Ссылка в новой задаче