共用方式為


Get-AzStorageSyncServer

此命令會列出所有已註冊至指定記憶體同步服務的伺服器。

語法

Get-AzStorageSyncServer
   [-ResourceGroupName] <String>
   [-StorageSyncServiceName] <String>
   [-ServerId <Guid>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzStorageSyncServer
   [-ParentObject] <PSStorageSyncService>
   [-ServerId <Guid>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzStorageSyncServer
   [-ParentResourceId] <String>
   [-ServerId <Guid>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

此命令會列出所有已註冊至指定記憶體同步服務的伺服器。 它可以用來列出每個已註冊伺服器的屬性。

範例

範例 1

Get-AzStorageSyncServer -ResourceGroupName "myResourceGroup" -StorageSyncServiceName "myStorageSyncServiceName"

此命令會取得所有已註冊至特定記憶體同步服務的伺服器。

參數

-DefaultProfile

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

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元: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

-ServerId

RegisteredServer 的名稱。

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

-StorageSyncServiceName

儲存體 SyncService 的名稱。

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

輸入

String

PSStorageSyncService

Guid

輸出

PSRegisteredServer