Get-AzMigrateHCIServerReplication

Retrieves the details of the replicating server.

Syntax

Get-AzMigrateHCIServerReplication
   -ResourceGroupName <String>
   -ProjectName <String>
   [-SubscriptionId <String>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzMigrateHCIServerReplication
   -ResourceGroupName <String>
   -ProjectName <String>
   [-SubscriptionId <String>]
   -MachineName <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzMigrateHCIServerReplication
   [-SubscriptionId <String>]
   -TargetObjectID <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzMigrateHCIServerReplication
   [-SubscriptionId <String>]
   -DiscoveredMachineId <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzMigrateHCIServerReplication
   [-SubscriptionId <String>]
   -InputObject <IMigrateIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzMigrateHCIServerReplication
   [-SubscriptionId <String>]
   -ResourceGroupID <String>
   -ProjectID <String>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

The Get-AzMigrateHCIServerReplication cmdlet retrieves the object for the replicating server.

Examples

Example 1: Get details by id

Get-AzMigrateHCIServerReplication -TargetObjectID '/subscriptions/xxx-xxx-xxx/resourceGroups/test-rg/providers/Microsoft.DataReplication/replicationVaults/proj62434replicationvault/protectedItems/503a4f02-916c-d6b0-8d14-222bbd4767e5'

Id                           : /subscriptions/xxx-xxx-xxx/resourceGroups/test-rg/providers/Microsoft.DataReplication/replicationVaults/proj62434replicationvault/protectedItems/503a4f02-916c-d6b0-8d14-222bbd4767e5
Name                         : 503a4f02-916c-d6b0-8d14-222bbd4767e5
Property                     : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210216Preview.ProtectedItemModelProperties
SystemDataCreatedAt          : 
SystemDataCreatedBy          : 
SystemDataCreatedByType      : 
SystemDataLastModifiedAt     : 
SystemDataLastModifiedBy     : 
SystemDataLastModifiedByType : 
Tag                          : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210216Preview.ProtectedItemModelTags
Type                         : Microsoft.DataReplication/replicationVaults/protectedItems

Get by id.

Example 2: Get detail by discovered machine id

Get-AzMigrateHCIServerReplication -DiscoveredMachineId "/subscriptions/xxx-xxx-xxx/resourceGroups/test-rg/providers/Microsoft.OffAzure/HyperVSites/siteName1/machines/503a4f02-916c-d6b0-8d14-222bbd4767e5"

Id                           : /subscriptions/xxx-xxx-xxx/resourceGroups/test-rg/providers/Microsoft.DataReplication/replicationVaults/proj62434replicationvault/protectedItems/503a4f02-916c-d6b0-8d14-222bbd4767e5
Name                         : 503a4f02-916c-d6b0-8d14-222bbd4767e5
Property                     : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210216Preview.ProtectedItemModelProperties
SystemDataCreatedAt          : 
SystemDataCreatedBy          : 
SystemDataCreatedByType      : 
SystemDataLastModifiedAt     : 
SystemDataLastModifiedBy     : 
SystemDataLastModifiedByType : 
Tag                          : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210216Preview.ProtectedItemModelTags
Type                         : Microsoft.DataReplication/replicationVaults/protectedItems

Get by discovered machine id.

Example 3: List all in project by name

Get-AzMigrateServerReplication -ResourceGroupName testResourceGroup -ProjectName testProjectName

Id                           : /subscriptions/xxx-xxx-xxx/resourceGroups/test-rg/providers/Microsoft.DataReplication/replicationVaults/proj62434replicationvault/protectedItems/503a4f02-916c-d6b0-8d14-222bbd4767e5
Name                         : 503a4f02-916c-d6b0-8d14-222bbd4767e5
Property                     : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210216Preview.ProtectedItemModelProperties
SystemDataCreatedAt          : 
SystemDataCreatedBy          : 
SystemDataCreatedByType      : 
SystemDataLastModifiedAt     : 
SystemDataLastModifiedBy     : 
SystemDataLastModifiedByType : 
Tag                          : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210216Preview.ProtectedItemModelTags
Type                         : Microsoft.DataReplication/replicationVaults/protectedItems

Id                           : /subscriptions/xxx-xxx-xxx/resourceGroups/test-rg/providers/Microsoft.DataReplication/replicationVaults/proj62434replicationvault/protectedItems/d758f4fb-ae5e-4ac8-bb97-1e114555fe9f
Name                         : d758f4fb-ae5e-4ac8-bb97-1e114555fe9f
Property                     : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210216Preview.ProtectedItemModelProperties
SystemDataCreatedAt          : 
SystemDataCreatedBy          : 
SystemDataCreatedByType      : 
SystemDataLastModifiedAt     : 
SystemDataLastModifiedBy     : 
SystemDataLastModifiedByType : 
Tag                          : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20210216Preview.ProtectedItemModelTags
Type                         : Microsoft.DataReplication/replicationVaults/protectedItems

List all.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DiscoveredMachineId

Specifies the machine ID of the discovered server.

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

-InputObject

Specifies the machine object of the replicating server. To construct, see NOTES section for INPUTOBJECT properties and create a hash table.

Type:IMigrateIdentity
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-MachineName

Specifies the display name of the replicating machine.

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

-ProjectID

Specifies the Azure Migrate Project in which servers are replicating.

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

-ProjectName

Specifies the Azure Migrate project in the current subscription.

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

-ResourceGroupID

Specifies the Resource Group of the Azure Migrate Project in the current subscription.

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

-ResourceGroupName

Specifies the Resource Group of the Azure Migrate Project in the current subscription.

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

-SubscriptionId

Azure Subscription ID.

Type:String
Position:Named
Default value:(Get-AzContext).Subscription.Id
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-TargetObjectID

Specifies the replicating server ARM ID.

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

Inputs

IMigrateIdentity

Outputs

IProtectedItemModel