< Back

Remove-AzureRmRecoveryServicesAsrProtectionContainerMapping

Tue Jan 29, 2019 10:03 pm

NAME Remove-AzureRmRecoveryServicesAsrProtectionContainerMapping



SYNOPSIS

Deletes the specified Azure Site Recovery protection container mapping.





SYNTAX

Remove-AzureRmRecoveryServicesAsrProtectionContainerMapping [-Confirm] [-DefaultProfile <IAzureContextContainer>] [-Force] -InputObject

<ASRProtectionContainerMapping> [-WhatIf] [<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-Confirm [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-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



-Force [<SwitchParameter>]

Force the command to run without providing an additional warning.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-InputObject <ASRProtectionContainerMapping>

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



Required? true

Position? named

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

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



Required? false

Position? named

Default value False

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.ASRProtectionContainerMapping







OUTPUTS

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob







NOTES









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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... rprotectio

Get-AzureRmRecoveryServicesAsrProtectionContainerMapping

Get-AzureRmRecoveryServicesAsrProtectionContainerMapping

New-AzureRmRecoveryServicesAsrProtectionContainerMapping