Editar

Compartilhar via


New-AzMigrateNicMapping

Creates an object to update NIC properties of a replicating server.

Syntax

New-AzMigrateNicMapping
   -NicID <String>
   [-TargetNicSelectionType <String>]
   [-TargetNicSubnet <String>]
   [-TargetNicName <String>]
   [-TargetNicIP <String>]
   [-TestNicSubnet <String>]
   [-TestNicIP <String>]
   [<CommonParameters>]

Description

The New-AzMigrateNicMapping cmdlet creates a mapping of the source NIC attached to the server to be migrated. This object is provided as an input to the Set-AzMigrateServerReplication cmdlet to update the NIC and its properties for a replicating server.

Examples

Example 1: Create a NIC object

New-AzMigrateNicMapping -NicID a2399354-653a-464e-a567-d30ef5467a31 -TargetNicSelectionType primary -TargetNicIP "172.17.1.17"

IsPrimaryNic IsSelectedForMigration NicId                                TargetStaticIPAddress TargetSubnetName
------------ ---------------------- -----                                --------------------- ----------------
false        false                  a2399354-653a-464e-a567-d30ef5467a31

Creates a NIC update object.

Parameters

-NicID

Specifies the ID of the NIC to be updated.

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

-TargetNicIP

Specifies the IP within the destination subnet to be used for the NIC.

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

-TargetNicName

Specifies the name of the NIC to be created.

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

-TargetNicSelectionType

Specifies whether the NIC to be updated will be the primary, secondary or not migrated.

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

-TargetNicSubnet

Specifies the Subnet name for the NIC in the destination Virtual Network to which the server needs to be migrated.

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

-TestNicIP

Specifies the IP within the destination test subnet to be used for the NIC.

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

-TestNicSubnet

Specifies the Subnet name for the NIC in the destination Virtual Network to which the server needs to be test migrated.

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

Outputs

IVMwareCbtNicInput