Remove-​Azure​Rm​Recovery​Services​Asr​Protection​Container​Mapping

Deletes the specified Azure Site Recovery protection container mapping.

Syntax

Remove-AzureRmRecoveryServicesAsrProtectionContainerMapping
      [-Force]
      -InputObject <ASRProtectionContainerMapping>
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

The Remove-AzureRmRecoveryServicesAsrProtectionContainerMapping cmdlet deletes the specified Azure Site Recovery protection container mapping.

Examples

Example 1

PS C:\> $currentJob = Remove-AzureRmRecoveryServicesAsrProtectionContainerMapping -ProtectionContainerMapping $ProtectionContainerMapping

Starts the deletion of specified protection container mapping and returns the ASR job used to track the operation.

Required Parameters

-InputObject

The input object to the cmdlet: the ASR protection container mapping object corresponding to the protection container to be deleted.

Type:ASRProtectionContainerMapping
Aliases:ProtectionContainerMapping
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Specify if confirmation is required. Set the value of the confirm parameter to $false in order to skip confirmation

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Force

Force the command to run without providing an additional warning.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet is executed without actually executing the cmdlet.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRProtectionContainerMapping

Outputs

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob