< Back

Get-AzureRmRecoveryServicesAsrProtectionContainer

Tue Jan 29, 2019 10:02 pm

NAME Get-AzureRmRecoveryServicesAsrProtectionContainer



SYNOPSIS

Gets ASR protection containers in the Recovery Services vault.





SYNTAX

Get-AzureRmRecoveryServicesAsrProtectionContainer [-DefaultProfile <IAzureContextContainer>] -Fabric <ASRFabric> -FriendlyName <String>

[<CommonParameters>]



Get-AzureRmRecoveryServicesAsrProtectionContainer [-DefaultProfile <IAzureContextContainer>] -Fabric <ASRFabric> -Name <String>

[<CommonParameters>]





DESCRIPTION

The Get-AzureRmRecoveryServicesAsrProtectionContainer cmdlet gets Azure Site Recovery protection containers in the Recovery Services vault. A

protection container is a logical container for protectable(discovered) and protected objects such as virtual machines. Replication policies

define replication settings for protected items and can be associated with a protection container and applied to a protectable item.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Fabric <ASRFabric>

Look for the protection container in the specified ASR fabric.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-FriendlyName <String>

Specifies the friendly name of the ASR protection container to look for.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the name of the ASR protection container to look for.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRFabric







OUTPUTS

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

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null]]







NOTES









Example 1



PS C:\\> $ProtectionContainers = Get-AzureRmRecoveryServicesAsrProtectionContainer -Fabric $fabric



List of protection container in fabric $fabric.





Example 2



PS C:\\> Get-AzureRmRecoveryServicesAsrProtectionContainer -Name xxxxx -Fabric $fabric

FriendlyName : xxxxxxxx

Name : xxxxx

ID : /Subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/xxxxxxxxxxxxxxx/providers/Microsoft.RecoveryServices/vaults/x

xxxxxxxxx/replicationFabrics/xxxxxxxxxxxxxxxxxxxxxxxxx/replicationProtectionContainers/xxxxxxxxxxxxxxxxxxxxxxxxx

Type : Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers

FabricFriendlyName : xxxxxxxxxxxxxxxxxxxxxxxxx

FabricType : VMware

Role : Primary

AvailablePolicies : {V2aTestPolicy, v2ahydra, v2aswag-failback, v2aswag}

ProtectionContainerMappings : {pcmmapping, v2aPowerold, 636569dc-79bc-4f50-b83d-89f58717f0b2, df7aa204-b0ef-4d62-943e-324551030e5b}



Protection container in fabric $fabric with name.





Example 3



PS C:\\> Get-AzureRmRecoveryServicesAsrProtectionContainer -FriendlyName xxxxxxxx -Fabric $fabric

FriendlyName : xxxxxxxx

Name : xxxxx

ID : /Subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/xxxxxxxxxxxxxxx/providers/Microsoft.RecoveryServices/vaults/x

xxxxxxxxx/replicationFabrics/xxxxxxxxxxxxxxxxxxxxxxxxx/replicationProtectionContainers/xxxxxxxxxxxxxxxxxxxxxxxxx

Type : Microsoft.RecoveryServices/vaults/replicationFabrics/replicationProtectionContainers

FabricFriendlyName : xxxxxxxxxxxxxxxxxxxxxxxxx

FabricType : VMware

Role : Primary

AvailablePolicies : {V2aTestPolicy, v2ahydra, v2aswag-failback, v2aswag}

ProtectionContainerMappings : {pcmmapping, v2aPowerold, 636569dc-79bc-4f50-b83d-89f58717f0b2, df7aa204-b0ef-4d62-943e-324551030e5b}



Protection container in fabric $fabric with friendly Name.







RELATED LINKS

Online Version:

https://docs.microsoft.com/en-us/powers ... ncontainer