Language

ArmComputeModelFactory.CapacityReservationProfile Method

Definition

public static Azure.ResourceManager.Compute.Models.CapacityReservationProfile CapacityReservationProfile(Azure.Core.ResourceIdentifier capacityReservationGroupId = default, bool? disableCapacityReservationAssignment = default);
static member CapacityReservationProfile : Azure.Core.ResourceIdentifier * Nullable<bool> -> Azure.ResourceManager.Compute.Models.CapacityReservationProfile
Public Shared Function CapacityReservationProfile (Optional capacityReservationGroupId As ResourceIdentifier = Nothing, Optional disableCapacityReservationAssignment As Nullable(Of Boolean) = Nothing) As CapacityReservationProfile

Parameters

capacityReservationGroupId
ResourceIdentifier

Resource Id.

disableCapacityReservationAssignment
Nullable<Boolean>

Specifies whether the virtual machine is explicitly opted out from being associated with any capacity reservation. When set to true, the virtual machine will not be allowed to implicitly or explicitly associate with any type of capacity reservation and will consume capacity from the publicly available capacity. Minimum api-version: 2026-04-01.

Returns

A new CapacityReservationProfile instance for mocking.

Applies to