ArmComputeModelFactory.CapacityReservationProfile 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.
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.
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.