ArmComputeModelFactory.CapacityReservationData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of CapacityReservationData.
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, Azure.ResourceManager.Compute.Models.ComputeSku sku = default, System.Collections.Generic.IEnumerable<string> zones = default, string reservationId = default, int? platformFaultDomainCount = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Resources.Models.SubResource> virtualMachinesAssociated = default, DateTimeOffset? provisioningOn = default, string provisioningState = default, Azure.ResourceManager.Compute.Models.CapacityReservationInstanceView instanceView = default, DateTimeOffset? timeCreated = default);
static member CapacityReservationData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.Compute.Models.ComputeSku * seq<string> * string * Nullable<int> * seq<Azure.ResourceManager.Resources.Models.SubResource> * Nullable<DateTimeOffset> * string * Azure.ResourceManager.Compute.Models.CapacityReservationInstanceView * Nullable<DateTimeOffset> -> 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 sku As ComputeSku = Nothing, Optional zones As IEnumerable(Of String) = Nothing, Optional reservationId As String = Nothing, Optional platformFaultDomainCount As Nullable(Of Integer) = Nothing, Optional virtualMachinesAssociated As IEnumerable(Of SubResource) = 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) As CapacityReservationData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
- tags
- IDictionary<String,String>
The tags.
- location
- AzureLocation
The location.
- sku
- ComputeSku
SKU of the resource for which capacity needs be reserved. The SKU name and capacity is required to be set. Currently VM Skus with the capability called 'CapacityReservationSupported' set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://docs.microsoft.com/rest/api/compute/resourceskus/list) for supported values.
- zones
- IEnumerable<String>
Availability Zone to use for this capacity reservation. The zone has to be single value and also should be part for the list of zones specified during the capacity reservation group creation. The zone can be assigned only during creation. If not provided, the reservation supports only non-zonal deployments. If provided, enforces VM/VMSS using this capacity reservation to be in same zone.
- 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.
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.
- virtualMachinesAssociated
- IEnumerable<SubResource>
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.
Returns
A new CapacityReservationData instance for mocking.