Bearbeiten

Freigeben über


Get-AzStorageSyncServer

This command lists all servers registered to a given storage sync service.

Syntax

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

This command lists all servers registered to a given storage sync service. It can be used to also list the attributes of each registered server.

Examples

Example 1

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

This command gets all servers registered to a specific storage sync service.

Parameters

-DefaultProfile

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

-ParentObject

StorageSyncService Object, normally passed through the parameter.

Type:PSStorageSyncService
Aliases:StorageSyncService
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ParentResourceId

StorageSyncService Object, normally passed through the parameter.

Type:String
Aliases:StorageSyncServiceId
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceGroupName

Resource Group Name.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ServerId

Name of the RegisteredServer.

Type:Guid
Aliases:RegisteredServerName
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-StorageSyncServiceName

Name of the StorageSyncService.

Type:String
Aliases:ParentName
Position:1
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

String

PSStorageSyncService

Guid

Outputs

PSRegisteredServer