中我们比较全面的介绍了 Azure SQL Database Active Geo-Replication 的主要特点和优势。接下来我们将从自动化的角度介绍如何通过 PowerShell 在项目中实现 Active Geo-Replication 的操作。
》中的 “安装 powershell 的 azure module”小节,会简洁一些。
Login-AzureRmAccount
Select-AzureRmSubscription -SubscriptionId xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
。
= Get-AzureRmSqlDatabase –DatabaseName -ResourceGroupName -ServerName
= | New-AzureRmSqlDatabaseSecondary –PartnerResourceGroupName –PartnerServerName -AllowConnections
= Get-AzureRmSqlDatabase –DatabaseName -ResourceGroupName -ServerName
= | Get-AzureRmSqlDatabaseReplicationLink –PartnerResourceGroup –PartnerServerName
| Remove-AzureRmSqlDatabaseSecondary
= Get-AzureRmSqlDatabase –DatabaseName –ResourceGroupName –ServerName sqltest
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。