< Back

Remove-AzureSiteRecoveryNetworkMapping

Wed Jan 30, 2019 5:51 pm

NAME Remove-AzureSiteRecoveryNetworkMapping



SYNOPSIS

Removes a Network mapping for current Azure Site Recovery Vault





SYNTAX

Remove-AzureSiteRecoveryNetworkMapping -NetworkMapping <ASRNetworkMapping> [<CommonParameters>]





DESCRIPTION

Removes a Network mapping for current Azure Site Recovery Vault





PARAMETERS

-NetworkMapping <ASRNetworkMapping>

Network Mapping object



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue)

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 (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









NOTES







Keywords: azure, azuresm, servicemanagement, management, service, site, recovery







-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$networkMapping = Get-AzureSiteRecoveryNetworkMapping -PrimaryServer $servers[0] -RecoveryServer $servers[0]



PS C:\\> Remove-AzureSiteRecoveryNetworkMapping -NetworkMapping $networkMapping



Name :

ID : d797b3da-a976-4b1c-ab15-b42938a72738

ClientRequestId : 086b3ca2-338d-4491-8668-c0a43238fa5d-2015-01-30 05:34:27Z-P

State : NotStarted

StateDescription : NotStarted

StartTime :

EndTime :

AllowedActions :

Tasks : {}

Errors : {}







PS C:\\> Get-AzureSiteRecoveryJob -Id d797b3da-a976-4b1c-ab15-b42938a72738



Name : NetworkUnPairing

ID : d797b3da-a976-4b1c-ab15-b42938a72738

ClientRequestId : 086b3ca2-338d-4491-8668-c0a43238fa5d-2015-01-30 05:34:27Z-P

State : Succeeded

StateDescription : Completed

StartTime : 1/30/2015 5:34:31 AM

EndTime : 1/30/2015 5:34:33 AM

AllowedActions :

Tasks : {Unmap network, Detach network (0)}

Errors : {}



Description



-----------











-------------------------- EXAMPLE 2 --------------------------



PS C:\\>$networkMapping = Get-AzureSiteRecoveryNetworkMapping -PrimaryServer $servers[0] -Azure



PS C:\\> Remove-AzureSiteRecoveryNetworkMapping -NetworkMapping $networkMapping



Name :

ID : 5ed061e7-5f03-4f7f-bdec-fc50d96c1df3

ClientRequestId : fc86ee05-c24e-4169-a8fe-7b549dc8c284-2015-01-30 05:40:53Z-P

State : NotStarted

StateDescription : NotStarted

StartTime :

EndTime :

AllowedActions :

Tasks : {}

Errors : {}







PS C:\\> Get-AzureSiteRecoveryJob -Id 5ed061e7-5f03-4f7f-bdec-fc50d96c1df3



Name : NetworkUnPairing

ID : 5ed061e7-5f03-4f7f-bdec-fc50d96c1df3

ClientRequestId : fc86ee05-c24e-4169-a8fe-7b549dc8c284-2015-01-30 05:40:53Z-P

State : Succeeded

StateDescription : Completed

StartTime : 1/30/2015 5:40:58 AM

EndTime : 1/30/2015 5:40:58 AM

AllowedActions :

Tasks : {Unmap network, Detach network (0)}

Errors : {}



Description



-----------













RELATED LINKS