< Back

Add-AzureRmVmssNetworkInterfaceConfiguration

Tue Jan 29, 2019 9:37 pm

NAME Add-AzureRmVmssNetworkInterfaceConfiguration



SYNOPSIS

Adds a network interface configuration to the VMSS.





SYNTAX

Add-AzureRmVmssNetworkInterfaceConfiguration [-VirtualMachineScaleSet] <PSVirtualMachineScaleSet> [[-Name] <String>] [[-Primary] <Boolean>] [[-Id]

<String>] [[-IpConfiguration] <VirtualMachineScaleSetIPConfiguration[]>] [-DefaultProfile <IAzureContextContainer>] [-DnsSettingsDnsServer

<String[]>] [-EnableAcceleratedNetworking] [-EnableIPForwarding] [-NetworkSecurityGroupId <String>] [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DnsSettingsDnsServer <String[]>

List of dns server IP addresses for dns settings.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-EnableAcceleratedNetworking [<SwitchParameter>]

Specifies whether the network interface is accelerated networking-enabled.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-EnableIPForwarding [<SwitchParameter>]

Specifies whether IP forwarding enabled on this NIC.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Id <String>

Specifies the Resource ID of the virtual machine.



Required? false

Position? 3

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-IpConfiguration <VirtualMachineScaleSetIPConfiguration[]>

Specifies the IP configurations of the network interface.



Required? false

Position? 4

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Name <String>

Specifies the name of the network interface configuration.



Required? false

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-NetworkSecurityGroupId <String>

Id of the network security group.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Primary <Boolean>

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

the virtual machine.



Required? false

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-VirtualMachineScaleSet <PSVirtualMachineScaleSet>

Specifies the VMSS object. You can use the New-AzureRmVmssConfig (./New-AzureRmVmssConfig.md)cmdlet to create the object.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName, ByValue)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

VirtualMachineScaleSet

Parameter 'VirtualMachineScaleSet' accepts value of type 'VirtualMachineScaleSet' from the pipeline





OUTPUTS



This cmdlet does not generate any output.





NOTES









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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... figuration

New-AzureRmVmssConfig