Get-AzRecoveryServicesAsrReplicationProtectedItem
获取 Azure Site Recovery 复制保护项的属性。
语法
ByObject (默认值)
Get-AzRecoveryServicesAsrReplicationProtectedItem
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ByObjectWithName
Get-AzRecoveryServicesAsrReplicationProtectedItem
-Name <String>
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ByObjectWithFriendlyName
Get-AzRecoveryServicesAsrReplicationProtectedItem
-FriendlyName <String>
-ProtectionContainer <ASRProtectionContainer>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
ByProtectableItemObject
Get-AzRecoveryServicesAsrReplicationProtectedItem
-ProtectableItem <ASRProtectableItem>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
Get-AzRecoveryServicesAsrReplicationProtectedItem cmdlet 从指定的 ASR 保护容器获取所有或指定的 ASR 复制保护项的属性。
示例
示例 1
$ReplicationProtectedItems = Get-AzRecoveryServicesAsrReplicationProtectedItem -ProtectionContainer $PrimaryContainer
列出指定 ASR 保护容器中的所有复制保护项。
示例 2
获取 Azure Site Recovery 复制保护项的属性。 (autogenerated)
Get-AzRecoveryServicesAsrReplicationProtectedItem -FriendlyName XXXXXXXXXX -ProtectionContainer $PrimaryContainer
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
参数属性
参数集
(All)
| Position: | Named |
| 必需: | False |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-FriendlyName
指定要获取的复制受保护项的友好名称。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
ByObjectWithFriendlyName
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-Name
指定要获取的复制受保护项的名称。
参数属性
| 类型: | String
|
| 默认值: | None |
| 支持通配符: | False |
| 不显示: | False |
参数集
ByObjectWithName
| Position: | Named |
| 必需: | True |
| 来自管道的值: | False |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ProtectableItem
指定 ASR 可保护项对象。 如果该项受到保护,该 cmdlet 将获取与指定的 ASR 可保护项对应的 ASR 复制保护项。
参数属性
参数集
ByProtectableItemObject
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
-ProtectionContainer
指定与复制保护项对应的 ASR 保护容器的 ASR 保护容器对象。 若要获取恢复服务容器中的 ASR 保护容器,请运行 Get-AzRecoveryServicesAsrProtectionContainer cmdlet。
参数属性
参数集
ByObject
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
ByObjectWithName
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
ByObjectWithFriendlyName
| Position: | Named |
| 必需: | True |
| 来自管道的值: | True |
| 来自管道的值(按属性名称): | False |
| 来自剩余参数的值: | False |
CommonParameters
此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters。
输出