你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzMigrateHCIServerReplication
检索复制服务器的详细信息。
语法
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>]
说明
Get-AzMigrateHCIServerReplication cmdlet 检索复制服务器的对象。
示例
示例 1:按 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
按 ID 获取。
示例 2:按发现的计算机 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
通过发现的计算机 ID 获取。
示例 3:按名称列出项目中的所有项
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
全部列出。
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DiscoveredMachineId
指定已发现服务器的计算机 ID。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-InputObject
指定复制服务器的计算机对象。 若要构造,请参阅 INPUTOBJECT 属性的 NOTES 部分并创建哈希表。
类型: | IMigrateIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-MachineName
指定复制计算机的显示名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ProjectID
指定服务器正在复制的 Azure Migrate 项目。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ProjectName
指定当前订阅中的 Azure Migrate 项目。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupID
指定当前订阅中 Azure Migrate 项目的资源组。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
指定当前订阅中 Azure Migrate 项目的资源组。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
Azure 订阅 ID。
类型: | String |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-TargetObjectID
指定复制服务器 ARM ID。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |