ArmComputeModelFactory.CapacityReservationPatch 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 CapacityReservationPatch.
public static Azure.ResourceManager.Compute.Models.CapacityReservationPatch CapacityReservationPatch (System.Collections.Generic.IDictionary<string,string> tags = default, Azure.ResourceManager.Compute.Models.ComputeSku sku = 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 CapacityReservationPatch : System.Collections.Generic.IDictionary<string, string> * Azure.ResourceManager.Compute.Models.ComputeSku * string * Nullable<int> * seq<Azure.ResourceManager.Resources.Models.SubResource> * Nullable<DateTimeOffset> * string * Azure.ResourceManager.Compute.Models.CapacityReservationInstanceView * Nullable<DateTimeOffset> -> Azure.ResourceManager.Compute.Models.CapacityReservationPatch
Public Shared Function CapacityReservationPatch (Optional tags As IDictionary(Of String, String) = Nothing, Optional sku As ComputeSku = 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 CapacityReservationPatch
Parameters
- tags
- IDictionary<String,String>
Resource tags.
- 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.
- 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 CapacityReservationPatch instance for mocking.
Applies to
Azure SDK for .NET