Set-​Azure​Rm​Site​Recovery​VM

Sets the recovery-side options for a Site Recovery protection entity.

Syntax

Set-AzureRmSiteRecoveryVM
   [-Name <String>]
   [-NicSelectionType <String>]
   [-PrimaryNic <String>]
   [-RecoveryNetworkId <String>]
   [-RecoveryNicStaticIPAddress <String>]
   [-RecoveryNicSubnetName <String>]
   [-Size <String>]
   -VirtualMachine <ASRVirtualMachine>
   [<CommonParameters>]

Description

The Set-AzureRmSiteRecoveryVM cmdlet sets the recovery-side protection options, such as the recovery virtual machine size and recovery virtual machine network, for Azure Site Recovery protection entities.

Required Parameters

-VirtualMachine

Specifies the Site Recovery virtual machine object.

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

Optional Parameters

-Name

Specifies the name of the target virtual machine.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-NicSelectionType

Specifies the network adapter selection properties. The acceptable values for this parameter are:

  • NotSelected
  • SelectedByUser
Type:String
Parameter Sets:NotSelected, SelectedByUser
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PrimaryNic

Specifies the primary network adapter card.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RecoveryNetworkId

Specifies the recovery network ID.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RecoveryNicStaticIPAddress

Specifies the static IP address that is assigned to primary network adapter controller on recovery.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RecoveryNicSubnetName

Specifies the Azure virtual network subnet name with which to attach the primary network adapter controller on recovery.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Size

Specifies the target virtual machine size.

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