共用方式為


Get-AzStorageSyncGroup

此命令會列出指定記憶體同步服務內的所有同步群組。

語法

Get-AzStorageSyncGroup
   [-ResourceGroupName] <String>
   [-StorageSyncServiceName] <String>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzStorageSyncGroup
   [-ParentObject] <PSStorageSyncService>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzStorageSyncGroup
   [-ParentResourceId] <String>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

此命令會列出指定記憶體同步服務內的所有同步群組。 它可以用來列出每個同步群組的屬性。

範例

範例 1

Get-AzStorageSyncGroup -ResourceGroupName "myResourceGroup" -StorageSyncServiceName "myStorageSyncServiceName"

此命令會取得指定之記憶體同步服務內含的所有同步群組。 指定 -Name 以傳回特定的名稱。

參數

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

SyncGroup 的名稱。

類型:String
別名:SyncGroupName
Position:Named
預設值:None
必要:False
接受管線輸入:True
接受萬用字元:False

-ParentObject

儲存體 SyncService 物件,通常會透過 參數傳遞。

類型:PSStorageSyncService
別名:StorageSyncService
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ParentResourceId

儲存體 SyncService 物件,通常是透過 參數傳遞。

類型:String
別名:StorageSyncServiceId
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-ResourceGroupName

資源群組名稱。

類型:String
Position:0
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

-StorageSyncServiceName

儲存體 SyncService 的名稱。

類型:String
別名:ParentName
Position:1
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

輸入

String

PSStorageSyncService

輸出

PSSyncGroup