Get-AzRecoveryServicesAsrProtectableItem
语法
ByObject (默认值)
Get-AzRecoveryServicesAsrProtectableItem
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ByObjectWithName
Get-AzRecoveryServicesAsrProtectableItem
-Name <String>
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ByObjectWithFriendlyName
Get-AzRecoveryServicesAsrProtectableItem
-FriendlyName <String>
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ByObjectWithSiteIdAndFriendlyName
Get-AzRecoveryServicesAsrProtectableItem
-FriendlyName <String>
-SiteId <String>
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ByObjectWithSiteId
Get-AzRecoveryServicesAsrProtectableItem
-SiteId <String>
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Get-AzRecoveryServicesAsrProtectableItem cmdlet 获取 Azure Site Recovery 保护容器中的可保护项。
示例
示例 1
$ProtectableItems = Get-AzRecoveryServicesAsrProtectableItem -ProtectionContainer $Container
获取指定 ASR 保护容器中的所有可保护项。
示例 2
Get-AzRecoveryServicesAsrProtectableItem -ProtectionContainer $pc -FriendlyName $piFriendlyName
Disks : {}
FabricObjectId :
FabricSpecificVMDetails : Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMWareSpecificVMDetails
FriendlyName : V2A-W2K12-400
ID : /Subscriptions/xxxxxxxxxxxx/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/replicationFabrics/d011a5abf48190235963ee3a88ad188ee6bca8a4c6cd0c8d7ce5d439aa77ffd9/replicationProt
ectionContainers/cloud_5dc96260-9f00-42e4-aca7-24ad27fc2078/replicationProtectableItems/22d47502-7df0-11e7-9373-0050568f2e8f
Name : 22d47502-7df0-11e7-9373-0050568f2e8f
OS : WINDOWS
OSDiskId :
OSDiskName :
ProtectionContainerId : cloud_5dc96260-9f00-42e4-aca7-24ad27fc2078
ProtectionReadinessErrors :
ProtectionStatus : Unprotected
ReplicationProtectedItemId :
SupportedReplicationProviders : {InMage, InMageAzureV2}
获取指定 ASR 保护容器和具有给定友好名称的可保护项。
示例 3
Get-AzRecoveryServicesAsrProtectableItem -ProtectionContainer $pc -Name $piName
Disks : {}
FabricObjectId :
FabricSpecificVMDetails : Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRVMWareSpecificVMDetails
FriendlyName : V2A-W2K12-400
ID : /Subscriptions/xxxxxxxxxxxx/resourceGroups/canaryexproute/providers/Microsoft.RecoveryServices/vaults/IbizaV2ATest/replicationFabrics/d011a5abf48190235963ee3a88ad188ee6bca8a4c6cd0c8d7ce5d439aa77ffd9/replicationProt
ectionContainers/cloud_5dc96260-9f00-42e4-aca7-24ad27fc2078/replicationProtectableItems/22d47502-7df0-11e7-9373-0050568f2e8f
Name : 22d47502-7df0-11e7-9373-0050568f2e8f
OS : WINDOWS
OSDiskId :
OSDiskName :
ProtectionContainerId : cloud_5dc96260-9f00-42e4-aca7-24ad27fc2078
ProtectionReadinessErrors :
ProtectionStatus : Unprotected
ReplicationProtectedItemId :
SupportedReplicationProviders : {InMage, InMageAzureV2}
获取指定 ASR 保护容器中的所有可保护项。
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-FriendlyName
指定 ASR 可保护项的友好名称。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
ByObjectWithFriendlyName
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
ByObjectWithSiteIdAndFriendlyName
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Name
指定 ASR 可保护项的名称。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
ByObjectWithName
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ProtectionContainer
指定 Azure Site Recovery 保护容器对象。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-SiteId
指定发现可保护项的 VMware 站点 ID(仅适用于 VMware 到 Azure 复制方案)。
使用 ASR 构造中特定于构造的详细信息中的站点 ID 来指定一个站点 ID。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
ByObjectWithSiteIdAndFriendlyName
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
ByObjectWithSiteId
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。
输出