Set-​Azure​Rm​Site​Recovery​Replication​Protected​Item

Sets recovery properties such as target network and virtual machine size for a Replication Protected Item.

Syntax

Set-AzureRmSiteRecoveryReplicationProtectedItem
   [-LicenseType <String>]
   [-Name <String>]
   [-NicSelectionType <String>]
   [-PrimaryNic <String>]
   [-RecoveryNetworkId <String>]
   [-RecoveryNicStaticIPAddress <String>]
   [-RecoveryNicSubnetName <String>]
   -ReplicationProtectedItem <ASRReplicationProtectedItem>
   [-Size <String>]
   [<CommonParameters>]

Description

The Set-AzureRmSiteRecoveryReplicationProtectedItem cmdlet sets the recovery properties for a Replication Protected Item.

Required Parameters

-ReplicationProtectedItem

Specifies the Azure Site Recovery Replication Protected Item.

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

Optional Parameters

-LicenseType

Specifies the license type selection for Windows Server virtual machines migrated through Hybrid use benefit.

Type:String
Parameter Sets:NoLicenseType, WindowsServer
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

Specifies the name of the recovery virtual machine.

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

Specifies the network interface card (NIC) properties set by user or set by default. You can specify NotSelected to go back to the default values.

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

Specifies the NIC of the virtual machine for which this cmdlet sets the recovery network property.

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

Specifies the ID of the Azure virtual network for which this cmdlet recovers the Protected Item.

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

Specifies the static IP address that should be assigned to primary NIC on recovery.

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

Specifies the name of the Subnet on the recovery Azure virtual network for which this cmdlet recovers the Protected Item.

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

Specifies the recovery virtual machine size. The value should be from the set of sizes supported by Azure virtual machines.

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

Outputs

Microsoft.Azure.Commands.SiteRecovery.ASRJob