Share via


ArmComputeModelFactory.VirtualMachineScaleSetVmProfile Method

Definition

Initializes a new instance of VirtualMachineScaleSetVmProfile.

public static Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVmProfile VirtualMachineScaleSetVmProfile (Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetOSProfile osProfile = default, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetStorageProfile storageProfile = default, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetNetworkProfile networkProfile = default, Azure.ResourceManager.Compute.Models.SecurityProfile securityProfile = default, Azure.ResourceManager.Compute.Models.BootDiagnostics bootDiagnostics = default, Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetExtensionProfile extensionProfile = default, string licenseType = default, Azure.ResourceManager.Compute.Models.VirtualMachinePriorityType? priority = default, Azure.ResourceManager.Compute.Models.VirtualMachineEvictionPolicyType? evictionPolicy = default, double? billingMaxPrice = default, Azure.ResourceManager.Compute.Models.ComputeScheduledEventsProfile scheduledEventsProfile = default, string userData = default, Azure.Core.ResourceIdentifier capacityReservationGroupId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.VirtualMachineGalleryApplication> galleryApplications = default, Azure.ResourceManager.Compute.Models.VirtualMachineSizeProperties hardwareVmSizeProperties = default, Azure.Core.ResourceIdentifier serviceArtifactReferenceId = default, Azure.ResourceManager.Compute.Models.ComputeSecurityPostureReference securityPostureReference = default, DateTimeOffset? timeCreated = default);
static member VirtualMachineScaleSetVmProfile : Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetOSProfile * Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetStorageProfile * Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetNetworkProfile * Azure.ResourceManager.Compute.Models.SecurityProfile * Azure.ResourceManager.Compute.Models.BootDiagnostics * Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetExtensionProfile * string * Nullable<Azure.ResourceManager.Compute.Models.VirtualMachinePriorityType> * Nullable<Azure.ResourceManager.Compute.Models.VirtualMachineEvictionPolicyType> * Nullable<double> * Azure.ResourceManager.Compute.Models.ComputeScheduledEventsProfile * string * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.Compute.Models.VirtualMachineGalleryApplication> * Azure.ResourceManager.Compute.Models.VirtualMachineSizeProperties * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Compute.Models.ComputeSecurityPostureReference * Nullable<DateTimeOffset> -> Azure.ResourceManager.Compute.Models.VirtualMachineScaleSetVmProfile
Public Shared Function VirtualMachineScaleSetVmProfile (Optional osProfile As VirtualMachineScaleSetOSProfile = Nothing, Optional storageProfile As VirtualMachineScaleSetStorageProfile = Nothing, Optional networkProfile As VirtualMachineScaleSetNetworkProfile = Nothing, Optional securityProfile As SecurityProfile = Nothing, Optional bootDiagnostics As BootDiagnostics = Nothing, Optional extensionProfile As VirtualMachineScaleSetExtensionProfile = Nothing, Optional licenseType As String = Nothing, Optional priority As Nullable(Of VirtualMachinePriorityType) = Nothing, Optional evictionPolicy As Nullable(Of VirtualMachineEvictionPolicyType) = Nothing, Optional billingMaxPrice As Nullable(Of Double) = Nothing, Optional scheduledEventsProfile As ComputeScheduledEventsProfile = Nothing, Optional userData As String = Nothing, Optional capacityReservationGroupId As ResourceIdentifier = Nothing, Optional galleryApplications As IEnumerable(Of VirtualMachineGalleryApplication) = Nothing, Optional hardwareVmSizeProperties As VirtualMachineSizeProperties = Nothing, Optional serviceArtifactReferenceId As ResourceIdentifier = Nothing, Optional securityPostureReference As ComputeSecurityPostureReference = Nothing, Optional timeCreated As Nullable(Of DateTimeOffset) = Nothing) As VirtualMachineScaleSetVmProfile

Parameters

osProfile
VirtualMachineScaleSetOSProfile

Specifies the operating system settings for the virtual machines in the scale set.

storageProfile
VirtualMachineScaleSetStorageProfile

Specifies the storage settings for the virtual machine disks.

networkProfile
VirtualMachineScaleSetNetworkProfile

Specifies properties of the network interfaces of the virtual machines in the scale set.

securityProfile
SecurityProfile

Specifies the Security related profile settings for the virtual machines in the scale set.

bootDiagnostics
BootDiagnostics

Specifies the boot diagnostic settings state. Minimum api-version: 2015-06-15.

extensionProfile
VirtualMachineScaleSetExtensionProfile

Specifies a collection of settings for extensions installed on virtual machines in the scale set.

licenseType
String

Specifies that the image or disk that is being used was licensed on-premises. <br><br> Possible values for Windows Server operating system are: <br><br> Windows_Client <br><br> Windows_Server <br><br> Possible values for Linux Server operating system are: <br><br> RHEL_BYOS (for RHEL) <br><br> SLES_BYOS (for SUSE) <br><br> For more information, see Azure Hybrid Use Benefit for Windows Server <br><br> Azure Hybrid Use Benefit for Linux Server <br><br> Minimum api-version: 2015-06-15.

priority
Nullable<VirtualMachinePriorityType>

Specifies the priority for the virtual machines in the scale set. Minimum api-version: 2017-10-30-preview.

evictionPolicy
Nullable<VirtualMachineEvictionPolicyType>

Specifies the eviction policy for the Azure Spot virtual machine and Azure Spot scale set. For Azure Spot virtual machines, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2019-03-01. For Azure Spot scale sets, both 'Deallocate' and 'Delete' are supported and the minimum api-version is 2017-10-30-preview.

billingMaxPrice
Nullable<Double>

Specifies the billing related details of a Azure Spot VMSS. Minimum api-version: 2019-03-01.

scheduledEventsProfile
ComputeScheduledEventsProfile

Specifies Scheduled Event related configurations.

userData
String

UserData for the virtual machines in the scale set, which must be base-64 encoded. Customer should not pass any secrets in here. Minimum api-version: 2021-03-01.

capacityReservationGroupId
ResourceIdentifier

Specifies the capacity reservation related details of a scale set. Minimum api-version: 2021-04-01.

galleryApplications
IEnumerable<VirtualMachineGalleryApplication>

Specifies the gallery applications that should be made available to the VM/VMSS.

hardwareVmSizeProperties
VirtualMachineSizeProperties

Specifies the hardware profile related details of a scale set. Minimum api-version: 2021-11-01.

serviceArtifactReferenceId
ResourceIdentifier

Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version. Minimum api-version: 2022-11-01.

securityPostureReference
ComputeSecurityPostureReference

Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version: 2023-03-01.

timeCreated
Nullable<DateTimeOffset>

Specifies the time in which this VM profile for the Virtual Machine Scale Set was created. Minimum API version for this property is 2024-03-01. This value will be added to VMSS Flex VM tags when creating/updating the VMSS VM Profile with minimum api-version 2024-03-01.

Returns

A new VirtualMachineScaleSetVmProfile instance for mocking.

Applies to