ArmContainerServiceModelFactory.ContainerServiceMachineOSProfile Method

Definition

public static Azure.ResourceManager.ContainerService.Models.ContainerServiceMachineOSProfile ContainerServiceMachineOSProfile(Azure.ResourceManager.ContainerService.Models.ContainerServiceOSType? osType = default, Azure.ResourceManager.ContainerService.Models.ContainerServiceOSSku? osSku = default, int? osDiskSizeInGB = default, Azure.ResourceManager.ContainerService.Models.ContainerServiceOSDiskType? osDiskType = default, bool? isFipsEnabled = default, Azure.ResourceManager.ContainerService.Models.ContainerServiceMachineLinuxProfile linuxProfile = default, bool? isOutboundNatDisabled = default);
static member ContainerServiceMachineOSProfile : Nullable<Azure.ResourceManager.ContainerService.Models.ContainerServiceOSType> * Nullable<Azure.ResourceManager.ContainerService.Models.ContainerServiceOSSku> * Nullable<int> * Nullable<Azure.ResourceManager.ContainerService.Models.ContainerServiceOSDiskType> * Nullable<bool> * Azure.ResourceManager.ContainerService.Models.ContainerServiceMachineLinuxProfile * Nullable<bool> -> Azure.ResourceManager.ContainerService.Models.ContainerServiceMachineOSProfile
Public Shared Function ContainerServiceMachineOSProfile (Optional osType As Nullable(Of ContainerServiceOSType) = Nothing, Optional osSku As Nullable(Of ContainerServiceOSSku) = Nothing, Optional osDiskSizeInGB As Nullable(Of Integer) = Nothing, Optional osDiskType As Nullable(Of ContainerServiceOSDiskType) = Nothing, Optional isFipsEnabled As Nullable(Of Boolean) = Nothing, Optional linuxProfile As ContainerServiceMachineLinuxProfile = Nothing, Optional isOutboundNatDisabled As Nullable(Of Boolean) = Nothing) As ContainerServiceMachineOSProfile

Parameters

osType
Nullable<ContainerServiceOSType>

The operating system type. The default is Linux.

osSku
Nullable<ContainerServiceOSSku>

Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is deprecated.

osDiskSizeInGB
Nullable<Int32>

OS Disk Size in GB to be used to specify the disk size for every machine in the master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified.

osDiskType
Nullable<ContainerServiceOSDiskType>

The OS disk type to be used for machines in the agent pool. The default is 'Ephemeral' if the VM supports it and has a cache disk larger than the requested OSDiskSizeGB. Otherwise, defaults to 'Managed'. May not be changed after creation. For more information see Ephemeral OS.

isFipsEnabled
Nullable<Boolean>

Whether to use a FIPS-enabled OS.

linuxProfile
ContainerServiceMachineLinuxProfile

The Linux machine's specific profile.

isOutboundNatDisabled
Nullable<Boolean>

Whether to disable OutboundNAT in windows nodes. The default value is false. Outbound NAT can only be disabled if the cluster outboundType is NAT Gateway and the Windows agent pool does not have node public IP enabled.

Returns

A new ContainerServiceMachineOSProfile instance for mocking.

Applies to