Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Remove-AzureSiteRecoveryNetworkMapping

Remove-AzureSiteRecoveryNetworkMapping

microsoft.azure.commands.recoveryservices.dll

Synopsis

Removes a Network mapping for current Azure Site Recovery Vault

Syntax

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

Detailed Description

Removes a Network mapping for current Azure Site Recovery Vault

Parameters

-NetworkMapping <ASRNetworkMapping>

Network Mapping object

Aliases

None

Required?

true

Position

named

Default value

None

Accept pipeline input?

true (ByValue)

Accept wildcard characters?

false

Input Type


Return Type


Notes

Examples

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

PS C:\>

Description

-----------

          $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           : {}
        

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

PS C:\>

Description

-----------

          $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           : {}