Get-AzureRmSiteRecoveryProtectionContainer

Gets protection containers for the current Site Recovery vault.

Syntax

Get-AzureRmSiteRecoveryProtectionContainer
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmSiteRecoveryProtectionContainer
   -Name <String>
   -Fabric <ASRFabric>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmSiteRecoveryProtectionContainer
   -Name <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmSiteRecoveryProtectionContainer
   -FriendlyName <String>
   -Fabric <ASRFabric>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmSiteRecoveryProtectionContainer
   -FriendlyName <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzureRmSiteRecoveryProtectionContainer
   -Fabric <ASRFabric>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzureRmSiteRecoveryProtectionContainer cmdlet gets protection containers for the current Azure Site Recovery vault. A protection container is a logical container for protected objects such as virtual machines. Protection policies define replication settings for protected items and can be associated with a protection container and applied to a protected entity.

Required Parameters

-Fabric
Type:Microsoft.Azure.Commands.SiteRecovery.ASRFabric
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-FriendlyName

Specifies the friendly name of the protection container.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of the protection container.

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

Optional Parameters

-DefaultProfile

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

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

ASRFabric

Parameter 'Fabric' accepts value of type 'ASRFabric' from the pipeline

Outputs

System.Collections.Generic.IEnumerable`1[Microsoft.Azure.Commands.SiteRecovery.ASRProtectionContainer]