ArmComputeFleetModelFactory.ComputeFleetVmProfile Method

Definition

Initializes a new instance of ComputeFleetVmProfile.

public static Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmProfile ComputeFleetVmProfile(Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssOSProfile osProfile = default, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssStorageProfile storageProfile = default, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssNetworkProfile networkProfile = default, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetSecurityProfile securityProfile = default, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetBootDiagnostics bootDiagnostics = default, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssExtensionProfile extensionProfile = default, string licenseType = default, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetScheduledEventsProfile scheduledEventsProfile = default, string userData = default, Azure.Core.ResourceIdentifier capacityReservationGroupId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmGalleryApplication> galleryApplications = default, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmSizeProperties hardwareVmSizeProperties = default, Azure.Core.ResourceIdentifier serviceArtifactReferenceId = default, Azure.ResourceManager.ComputeFleet.Models.ComputeFleetSecurityPostureReference securityPostureReference = default, DateTimeOffset? createdOn = default);
static member ComputeFleetVmProfile : Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssOSProfile * Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssStorageProfile * Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssNetworkProfile * Azure.ResourceManager.ComputeFleet.Models.ComputeFleetSecurityProfile * Azure.ResourceManager.ComputeFleet.Models.ComputeFleetBootDiagnostics * Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmssExtensionProfile * string * Azure.ResourceManager.ComputeFleet.Models.ComputeFleetScheduledEventsProfile * string * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmGalleryApplication> * Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmSizeProperties * Azure.Core.ResourceIdentifier * Azure.ResourceManager.ComputeFleet.Models.ComputeFleetSecurityPostureReference * Nullable<DateTimeOffset> -> Azure.ResourceManager.ComputeFleet.Models.ComputeFleetVmProfile
Public Shared Function ComputeFleetVmProfile (Optional osProfile As ComputeFleetVmssOSProfile = Nothing, Optional storageProfile As ComputeFleetVmssStorageProfile = Nothing, Optional networkProfile As ComputeFleetVmssNetworkProfile = Nothing, Optional securityProfile As ComputeFleetSecurityProfile = Nothing, Optional bootDiagnostics As ComputeFleetBootDiagnostics = Nothing, Optional extensionProfile As ComputeFleetVmssExtensionProfile = Nothing, Optional licenseType As String = Nothing, Optional scheduledEventsProfile As ComputeFleetScheduledEventsProfile = Nothing, Optional userData As String = Nothing, Optional capacityReservationGroupId As ResourceIdentifier = Nothing, Optional galleryApplications As IEnumerable(Of ComputeFleetVmGalleryApplication) = Nothing, Optional hardwareVmSizeProperties As ComputeFleetVmSizeProperties = Nothing, Optional serviceArtifactReferenceId As ResourceIdentifier = Nothing, Optional securityPostureReference As ComputeFleetSecurityPostureReference = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing) As ComputeFleetVmProfile

Parameters

osProfile
ComputeFleetVmssOSProfile

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

storageProfile
ComputeFleetVmssStorageProfile

Specifies the storage settings for the virtual machine disks.

networkProfile
ComputeFleetVmssNetworkProfile

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

securityProfile
ComputeFleetSecurityProfile

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

bootDiagnostics
ComputeFleetBootDiagnostics

Boot Diagnostics is a debugging feature which allows you to view Console Output and Screenshot to diagnose VM status. NOTE: If storageUri is being specified then ensure that the storage account is in the same region and subscription as the VM. You can easily view the output of your console log. Azure also enables you to see a screenshot of the VM from the hypervisor.

extensionProfile
ComputeFleetVmssExtensionProfile

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

scheduledEventsProfile
ComputeFleetScheduledEventsProfile

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

Resource Id.

galleryApplications
IEnumerable<ComputeFleetVmGalleryApplication>

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

hardwareVmSizeProperties
ComputeFleetVmSizeProperties

Specifies the properties for customizing the size of the virtual machine. Minimum api-version: 2021-11-01. Please follow the instructions in VM Customization for more details.

serviceArtifactReferenceId
ResourceIdentifier

The service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}

securityPostureReference
ComputeFleetSecurityPostureReference

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

createdOn
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 2023-09-01. This value will be added to VMSS Flex VM tags when creating/updating the VMSS VM Profile with minimum api-version 2023-09-01. Examples: "2024-07-01T00:00:01.1234567+00:00"

Returns

A new ComputeFleetVmProfile instance for mocking.

Applies to