ScheduleProfile Class
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.
Defines the schedule for Block and Future capacity reservations. Specifies the schedule during which capacity reservation is active and VM or VMSS resource can be allocated using reservation. For Block capacity reservations, the scheduleProfile, start, and end fields are immutable after creation. Please refer to https://aka.ms/blockcapacityreservation for more details. Minimum API version for Block capacity reservations: 2025-04-01. Future capacity reservations must use this property with only a start time, which can be changed until the ‘modifiableUntil’ time. Please refer to https://aka.ms/futurecapacityreservation for more details. Minimum API version for Future capacity reservations: 2026-04-01.
public class ScheduleProfile : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Compute.Models.ScheduleProfile>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Compute.Models.ScheduleProfile>
type ScheduleProfile = class
interface IJsonModel<ScheduleProfile>
interface IPersistableModel<ScheduleProfile>
Public Class ScheduleProfile
Implements IJsonModel(Of ScheduleProfile), IPersistableModel(Of ScheduleProfile)
- Inheritance
-
ScheduleProfile
- Implements
Constructors
| Name | Description |
|---|---|
| ScheduleProfile() |
Initializes a new instance of ScheduleProfile. |
Properties
| Name | Description |
|---|---|
| End |
The required end date for Block capacity reservations. Must be after the start date, with a duration of either 1–14 whole days or 3–26 whole weeks. Example: 2025-06-28. |
| MinimumCommitmentDays |
The minimum number of days that must pass after the start date before a Future capacity reservation can be updated or deleted once it has been committed. Will be populated with a default value if not provided. |
| ModifiableUntil |
The date/time until which a Future capacity reservation can be updated or deleted. Read-only. |
| Start |
The required start date for Block or Future capacity reservations. Block capacity reservations: Must be today or within 56 days in the future. For same-day scheduling, requests must be submitted before 11:30 AM UTC. Future capacity reservations: Must be at least 7 days in the future, and maximum 6 months in the future. Minimum API version for Future capacity reservations: 2026-04-01. Example: 2025-06-27, applicable for both Block and Future capacity reservations. |
Methods
Explicit Interface Implementations
| Name | Description |
|---|---|
| IJsonModel<ScheduleProfile>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
| IJsonModel<ScheduleProfile>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
| IPersistableModel<ScheduleProfile>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
| IPersistableModel<ScheduleProfile>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
| IPersistableModel<ScheduleProfile>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |