Add-​Azure​Rm​Vmss​Network​Interface​Configuration

Adds a network interface configuration to the VMSS.

Syntax

Add-AzureRmVmssNetworkInterfaceConfiguration
   [-VirtualMachineScaleSet] <VirtualMachineScaleSet>
   [[-Name] <String>]
   [[-Primary] <Boolean>]
   [[-Id] <String>]
   [[-IpConfiguration] <VirtualMachineScaleSetIPConfiguration[]>]
   [-DnsSettingsDnsServer <String[]>]
   [-NetworkSecurityGroupId <String>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The Add-AzureRmVmssNetworkInterfaceConfiguration cmdlet adds a network interface configuration to the Virtual Machine Scale Set (VMSS).

Examples

Example 1: Add a network interface configuration to the VMSS

PS C:\> Add-AzureRmVmssNetworkInterfaceConfiguration -VirtualMachineScaleSet $VMSS -Name "Test" -Primary $True -IPConfiguration $IPCfg

This command adds a network interface configuration to the VMSS.

Required Parameters

-VirtualMachineScaleSet

Specifies the VMSS object. You can use the New-AzureRmVmssConfig cmdlet to create the object.

Type:VirtualMachineScaleSet
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DnsSettingsDnsServer

List of dns server IP addresses for dns settings.

Type:String[]
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Id

Specifies the Resource ID of the virtual machine.

Type:String
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-IpConfiguration

Specifies the IP configurations of the network interface.

Type:VirtualMachineScaleSetIPConfiguration[]
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

Specifies the name of the network interface configuration.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-NetworkSecurityGroupId

Id of the network security group.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Primary

Indicates whether network interfaces created from the network interface configuration will be the primary network information center (NIC) of the virtual machine.

Type:Boolean
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

This cmdlet does not generate any output.