Language

SkuMixPlacementCapacityProfile Class

Definition

Capacity-related properties for the placement request.

public class SkuMixPlacementCapacityProfile : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Recommender.Models.SkuMixPlacementCapacityProfile>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Recommender.Models.SkuMixPlacementCapacityProfile>
type SkuMixPlacementCapacityProfile = class
    interface IJsonModel<SkuMixPlacementCapacityProfile>
    interface IPersistableModel<SkuMixPlacementCapacityProfile>
Public Class SkuMixPlacementCapacityProfile
Implements IJsonModel(Of SkuMixPlacementCapacityProfile), IPersistableModel(Of SkuMixPlacementCapacityProfile)
Inheritance
SkuMixPlacementCapacityProfile
Implements

Constructors

Name Description
SkuMixPlacementCapacityProfile(Int32, SkuMixPlacementCapacityType, SkuMixPlacementPriority)

Initializes a new instance of SkuMixPlacementCapacityProfile.

Properties

Name Description
AllocationStrategy

The allocation strategy for determining the optimal SKU split.

Capacity

The capacity to run the workload. For VMs: [1..10,000]. For vCPUs: [1..100,000].

CapacityType

The unit type for the capacity value.

OSType

The OS type. Required when allocationStrategy is LowestPrice because pricing varies by OS.

Priority

The priority of the VMs to allocate.

SpotPriorityMaxPricePerVm

Maximum price per VM the customer is willing to pay. Default: -1 (no price restriction).

ZoneAllocationPolicy

Zone allocation policy. Default: BestEffortBalanced.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<SkuMixPlacementCapacityProfile>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<SkuMixPlacementCapacityProfile>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<SkuMixPlacementCapacityProfile>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<SkuMixPlacementCapacityProfile>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<SkuMixPlacementCapacityProfile>.Write(ModelReaderWriterOptions)

Applies to