你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzSqlSyncAgentLinkedDatabase
返回有关由同步代理链接的 SQL Server 数据库的信息。
语法
Get-AzSqlSyncAgentLinkedDatabase
[-ServerName] <String>
[-SyncAgentName] <String>
[-ResourceGroupName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Get-AzSqlSyncAgentLinkedDatabase cmdlet 返回同步代理链接的 SQL Server 数据库的相关信息。
示例
示例 1:获取 Azure SQL 同步代理的链接 SQL Server 数据库。
以下示例返回由 Azure SQL 同步代理链接的链接 SQL Server 数据库。
Get-AzSqlSyncAgentLinkedDatabase -ResourceGroupName MyResourceGroup -ServerName s1 -SyncAgentName 'SyncAgent01'
参数
-DefaultProfile
用于与 azure 通信的凭据、帐户、租户和订阅
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
资源组的名称。
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ServerName
同步代理位于的 Azure SQL Server 的名称。
类型: | String |
Position: | 1 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-SyncAgentName
同步代理名称。
类型: | String |
别名: | Name |
Position: | 2 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |