ArmComputeModelFactory.CapacityReservationData Method

Definition

public static Azure.ResourceManager.Compute.CapacityReservationData CapacityReservationData(Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, string reservationId = default, int? platformFaultDomainCount = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.ComputeSubResourceData> associatedVirtualMachineResources = default, DateTimeOffset? provisioningOn = default, string provisioningState = default, Azure.ResourceManager.Compute.Models.CapacityReservationInstanceView instanceView = default, DateTimeOffset? timeCreated = default, Azure.ResourceManager.Compute.Models.ScheduleProfile scheduleProfile = default, Azure.ResourceManager.Compute.Models.ComputeSku sku = default, System.Collections.Generic.IEnumerable<string> zones = default);
static member CapacityReservationData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * string * Nullable<int> * seq<Azure.ResourceManager.Compute.Models.ComputeSubResourceData> * Nullable<DateTimeOffset> * string * Azure.ResourceManager.Compute.Models.CapacityReservationInstanceView * Nullable<DateTimeOffset> * Azure.ResourceManager.Compute.Models.ScheduleProfile * Azure.ResourceManager.Compute.Models.ComputeSku * seq<string> -> Azure.ResourceManager.Compute.CapacityReservationData
Public Shared Function CapacityReservationData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional reservationId As String = Nothing, Optional platformFaultDomainCount As Nullable(Of Integer) = Nothing, Optional associatedVirtualMachineResources As IEnumerable(Of ComputeSubResourceData) = Nothing, Optional provisioningOn As Nullable(Of DateTimeOffset) = Nothing, Optional provisioningState As String = Nothing, Optional instanceView As CapacityReservationInstanceView = Nothing, Optional timeCreated As Nullable(Of DateTimeOffset) = Nothing, Optional scheduleProfile As ScheduleProfile = Nothing, Optional sku As ComputeSku = Nothing, Optional zones As IEnumerable(Of String) = Nothing) As CapacityReservationData

Parameters

id
ResourceIdentifier

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

name
String

The name of the resource.

resourceType
ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

systemData
SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

tags
IDictionary<String,String>

Resource tags.

location
AzureLocation

The geo-location where the resource lives.

reservationId
String

A unique id generated and assigned to the capacity reservation by the platform which does not change throughout the lifetime of the resource.

platformFaultDomainCount
Nullable<Int32>

Specifies the value of fault domain count that Capacity Reservation supports for requested VM size. Note: The fault domain count specified for a resource (like virtual machines scale set) must be less than or equal to this value if it deploys using capacity reservation. Minimum api-version: 2022-08-01.

associatedVirtualMachineResources
IEnumerable<ComputeSubResourceData>

A list of all virtual machine resource ids that are associated with the capacity reservation.

provisioningOn
Nullable<DateTimeOffset>

The date time when the capacity reservation was last updated.

provisioningState
String

The provisioning state, which only appears in the response.

instanceView
CapacityReservationInstanceView

The Capacity reservation instance view.

timeCreated
Nullable<DateTimeOffset>

Specifies the time at which the Capacity Reservation resource was created. Minimum api-version: 2021-11-01.

scheduleProfile
ScheduleProfile

Defines the schedule for Block-type capacity reservations. Specifies the schedule during which capacity reservation is active and VM or VMSS resource can be allocated using reservation. This property is required and only supported when the capacity reservation group type is 'Block'. The scheduleProfile, start, and end fields are immutable after creation. Minimum API version: 2025-04-01. Please refer to https://aka.ms/blockcapacityreservation for more details.

sku
ComputeSku

SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. For Block capacity reservations, sku.capacity can only accept values 1, 2, 4, 8, 16, 32, 64. Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. When 'CapacityReservationSupported' is true, the SKU capability also specifies the 'SupportedCapacityReservationTypes', which lists the types of capacity reservations (such as Targeted or Block) that the SKU supports. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values.

zones
IEnumerable<String>

The availability zones.

Returns

A new CapacityReservationData instance for mocking.

Applies to