ArmContainerServiceModelFactory.ContainerServiceMachineNetworkProperties Method

Definition

network properties of the machine.

public static Azure.ResourceManager.ContainerService.Models.ContainerServiceMachineNetworkProperties ContainerServiceMachineNetworkProperties(System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerService.Models.ContainerServiceMachineIPAddress> ipAddresses = default, Azure.Core.ResourceIdentifier vnetSubnetId = default, Azure.Core.ResourceIdentifier podSubnetId = default, bool? isNodePublicIpEnabled = default, Azure.Core.ResourceIdentifier nodePublicIpPrefixId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerService.Models.ContainerServiceIPTag> nodePublicIPTags = default);
static member ContainerServiceMachineNetworkProperties : seq<Azure.ResourceManager.ContainerService.Models.ContainerServiceMachineIPAddress> * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Nullable<bool> * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.ContainerService.Models.ContainerServiceIPTag> -> Azure.ResourceManager.ContainerService.Models.ContainerServiceMachineNetworkProperties
Public Shared Function ContainerServiceMachineNetworkProperties (Optional ipAddresses As IEnumerable(Of ContainerServiceMachineIPAddress) = Nothing, Optional vnetSubnetId As ResourceIdentifier = Nothing, Optional podSubnetId As ResourceIdentifier = Nothing, Optional isNodePublicIpEnabled As Nullable(Of Boolean) = Nothing, Optional nodePublicIpPrefixId As ResourceIdentifier = Nothing, Optional nodePublicIPTags As IEnumerable(Of ContainerServiceIPTag) = Nothing) As ContainerServiceMachineNetworkProperties

Parameters

ipAddresses
IEnumerable<ContainerServiceMachineIPAddress>

IPv4, IPv6 addresses of the machine.

vnetSubnetId
ResourceIdentifier

The ID of the subnet which node and optionally pods will join on startup. If this is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to nodes and pods, otherwise it applies to just nodes. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.

podSubnetId
ResourceIdentifier

The ID of the subnet which pods will join when launched. If omitted, pod IPs are statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}.

isNodePublicIpEnabled
Nullable<Boolean>

Whether the machine is allocated its own public IP. Some scenarios may require the machine to receive their own dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. The default is false.

nodePublicIpPrefixId
ResourceIdentifier

The public IP prefix ID which VM node should use IPs from. This is of the form: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}.

nodePublicIPTags
IEnumerable<ContainerServiceIPTag>

IPTags of instance-level public IPs.

Returns

A new ContainerServiceMachineNetworkProperties instance for mocking.

Applies to