Start-​Azure​Site​Recovery​Protection​Profile​Dissociation​Job

Starts a dissociation job on a replication policy associated with a Site Recovery protection container.

Syntax

Start-AzureSiteRecoveryProtectionProfileDissociationJob
     -PrimaryProtectionContainer <ASRProtectionContainer>
     [-Profile <AzureSMProfile>]
     -ProtectionProfile <ASRProtectionProfile>
     -RecoveryProtectionContainer <ASRProtectionContainer>
     [<CommonParameters>]

Description

The Start-AzureSiteRecoveryProtectionProfileDissociationJob cmdlet initiates a dissociation job on the replication policy associated with an Azure Site Recovery protection container.

Examples

Example 1: Dissociate a protection profile

PS C:\> $ProtectionContainer01 = Get-AzureSiteRecoveryProtectionContainer -Id "5ba2ea95-856d-4033-9ca3-91e3e2c080b9"
PS C:\> $ProtectionContainer02 = Get-AzureSiteRecoveryProtectionContainer -Id "cf011f2a-aa19-443c-9f60-357f6b8afb77"
PS C:\> Start-AzureSiteRecoveryProtectionProfileDissociationJob -PrimaryProtectionContainer $ProtectionContainer01 -ProtectionProfile $ProtectionContainer01.AvailableProtectionProfiles[0] -RecoveryProtectionContainer $ProtectionContainer02
Name             : MyProtectionProfile
ID               : 51978b0f-9241-4153-9171-2e19344f0805
ClientRequestId  : bb6f3200-b7c6-4c6f-bcbc-a70bb9946f03-2015-01-30 02:55:55Z-P
State            : NotStarted
StateDescription : NotStarted
StartTime        : 
EndTime          : 
AllowedActions   : 
Tasks            : {}
Errors           : {}

The first command gets a protection container by using the Get-AzureSiteRecoveryProtectionContainer cmdlet, and then stores that container in the $ProtectionContainer01 variable.

The second command gets a protection container, and then stores it in the $ProtectionContainer02 variable.

The final command dissociates the protection profile from the container stored in $ProtectionContainer01 as the primary protection container. The command dissociates the container stored in $ProtectionContainer02 as the recovery protection container.

Required Parameters

-PrimaryProtectionContainer

Specifies a primary protection container.

Type:ASRProtectionContainer
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ProtectionProfile

Specifies the protection profile settings to disassociate from the protection containers. Specifies the protection profile settings to apply to the protection containers. To obtain an ASRProtectionProfile object, use the New-AzureSiteRecoveryProtectionProfileObject cmdlet.

Type:ASRProtectionProfile
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-RecoveryProtectionContainer

Specifies a recovery protection container.

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

Optional Parameters

-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

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