Get-AzRecoveryServicesAsrProtectionContainer
Gets ASR protection containers in the Recovery Services vault.
Syntax
Get-AzRecoveryServicesAsrProtectionContainer
-Fabric <ASRFabric>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzRecoveryServicesAsrProtectionContainer
-Name <String>
-Fabric <ASRFabric>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzRecoveryServicesAsrProtectionContainer
-FriendlyName <String>
-Fabric <ASRFabric>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzRecoveryServicesAsrProtectionContainer 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.
Examples
Example 1
$ProtectionContainers = Get-AzRecoveryServicesAsrProtectionContainer -Fabric $fabric
List of protection container in fabric $fabric.
Example 2
Get-AzRecoveryServicesAsrProtectionContainer -Name xxxxx -Fabric $fabric
FriendlyName : xxxxxxxx
Name : xxxxx
ID : /Subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/xxxxxxxxxxxxxxx/providers/Microsoft.RecoveryServices/vaults/xxxxxxxxxx/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
Get-AzRecoveryServicesAsrProtectionContainer -FriendlyName xxxxxxxx -Fabric $fabric
FriendlyName : xxxxxxxx
Name : xxxxx
ID : /Subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/xxxxxxxxxxxxxxx/providers/Microsoft.RecoveryServices/vaults/xxxxxxxxxx/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.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Fabric
Look for the protection container in the specified ASR fabric.
Type: | ASRFabric |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-FriendlyName
Specifies the friendly name of the ASR protection container to look for.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Specifies the name of the ASR protection container to look for.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Outputs
Azure PowerShell