ArmContainerServiceModelFactory.AgentPoolNetworkInterface Method

Definition

public static Azure.ResourceManager.ContainerService.Models.AgentPoolNetworkInterface AgentPoolNetworkInterface(Azure.ResourceManager.ContainerService.Models.AgentPoolNetworkInterfaceType? type = default, Azure.Core.ResourceIdentifier vnetSubnetId = default, bool? enableAcceleratedNetworking = default);
static member AgentPoolNetworkInterface : Nullable<Azure.ResourceManager.ContainerService.Models.AgentPoolNetworkInterfaceType> * Azure.Core.ResourceIdentifier * Nullable<bool> -> Azure.ResourceManager.ContainerService.Models.AgentPoolNetworkInterface
Public Shared Function AgentPoolNetworkInterface (Optional type As Nullable(Of AgentPoolNetworkInterfaceType) = Nothing, Optional vnetSubnetId As ResourceIdentifier = Nothing, Optional enableAcceleratedNetworking As Nullable(Of Boolean) = Nothing) As AgentPoolNetworkInterface

Parameters

type
Nullable<AgentPoolNetworkInterfaceType>

Type of NIC to be provisioned on the VM.

vnetSubnetId
ResourceIdentifier

The resource ID of the subnet which will be attached to the secondary network interface. Required when type is Standard; must be an empty string ("") or omitted when type is Dynamic.

enableAcceleratedNetworking
Nullable<Boolean>

Whether accelerated networking is enabled on this secondary NIC. If omitted, this defaults to true only when the agent pool VM SKU supports accelerated networking. Validation will fail if it is enabled on an unsupported SKU or NIC configuration.

Returns

A new AgentPoolNetworkInterface instance for mocking.

Applies to