Get-AzSqlSyncSchema
Returns information about the sync schema of a member database or a hub database.
Get-AzSqlSyncSchema
[-SyncGroupName] <String>
[-SyncMemberName <String>]
[-ServerName] <String>
[-DatabaseName] <String>
[-ResourceGroupName] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
The Get-AzSqlSyncSchema cmdlet returns information about the sync schema of a member database or a hub database.
Get-AzSqlSyncSchema -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "database01" -SyncGroupName "syncGroup01"
Tables LastUpdateTime
------ --------------
{dbo.Table_1, dbo.Table_2} 6/13/2017 10:03:44 AM
This command gets the sync schema for the hub database in the sync group syncGroup01.
Get-AzSqlSyncSchema -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "database01" -SyncGroupName "syncGroup01" | Select-Object -ExpandProperty Tables
Columns : {column1, column2}
ErrorId : Schema_TableHasNoPrimaryKey
HasError : True
Name : dbo.Table_1
QuotedName : [dbo].[Table_1]
Columns : {column2, column4}
ErrorId : Schema_TableHasNoPrimaryKey
HasError : True
Name : dbo.Table_2
QuotedName : [dbo].[Table_2]
This command gets the sync schema for the hub database in the sync group syncGroup01 and expand Tables property.
Get-AzSqlSyncSchema -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "database01" -SyncGroupName "syncGroup01" -SyncMemberName "syncMember01"
The schema payload is the same as Example 1.
This command gets the sync schema for the member database in the sync member syncMember01.
The name of the Azure SQL Database.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with azure
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The name of the resource group.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
The name of the Azure SQL Server.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
The sync group name.
Type: | String |
Position: | 3 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
The sync member name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Commentaires sur Azure PowerShell
Azure PowerShell est un projet open source. Sélectionnez un lien pour fournir des commentaires :