Microsoft.ComputeSchedule (stable:2025-05-01)

2025/04/24 • 14 new methods

Operations_List (new)
Description List the operations for the provider
Reference Link ¶

⚼ Request

GET:  /providers/Microsoft.ComputeSchedule/operations
{
api-version: string ,
}

⚐ Response (200)

{
value:
[
{
name: string ,
isDataAction: boolean ,
display:
{
provider: string ,
resource: string ,
operation: string ,
description: string ,
}
,
origin: enum ,
actionType: enum ,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesCancelOperations (new)
Description VirtualMachinesCancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesCancelOperations
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
operationIds:
[
string ,
]
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timezone: string ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesExecuteCreate (new)
Description VirtualMachinesExecuteCreate: Execute create operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteCreate
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
resourceConfigParameters:
{
baseProfile: string ,
resourceOverrides:
[
string ,
]
,
resourceCount: integer ,
resourcePrefix: string ,
}
,
executionParameters:
{
optimizationPreference: enum ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
description: string ,
type: string ,
location: string ,
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timezone: string ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesExecuteDeallocate (new)
Description VirtualMachinesExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
executionParameters:
{
optimizationPreference: enum ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
resources:
{
ids:
[
string ,
]
,
}
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
description: string ,
type: string ,
location: string ,
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timezone: string ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesExecuteDelete (new)
Description VirtualMachinesExecuteDelete: Execute delete operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDelete
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
executionParameters:
{
optimizationPreference: enum ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
resources:
{
ids:
[
string ,
]
,
}
,
correlationid: string ,
forceDeletion: boolean ,
}
,
}

⚐ Response (200)

{
description: string ,
type: string ,
location: string ,
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timezone: string ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesExecuteHibernate (new)
Description VirtualMachinesExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
executionParameters:
{
optimizationPreference: enum ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
resources:
{
ids:
[
string ,
]
,
}
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
description: string ,
type: string ,
location: string ,
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timezone: string ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesExecuteStart (new)
Description VirtualMachinesExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
executionParameters:
{
optimizationPreference: enum ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
resources:
{
ids:
[
string ,
]
,
}
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
description: string ,
type: string ,
location: string ,
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timezone: string ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesGetOperationErrors (new)
Description VirtualMachinesGetOperationErrors: Get error details on operation errors (like transient errors encountered, additional logs) if they exist.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationErrors
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
operationIds:
[
string ,
]
,
}
,
}

⚐ Response (200)

{
results:
[
{
operationId: string ,
creationTime: string ,
activationTime: string ,
completedAt: string ,
operationErrors:
[
{
errorCode: string ,
errorDetails: string ,
timestamp: string ,
timeStamp: string ,
azureOperationName: string ,
crpOperationId: string ,
}
,
]
,
requestErrorCode: string ,
requestErrorDetails: string ,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesGetOperationStatus (new)
Description VirtualMachinesGetOperationStatus: Polling endpoint to read status of operations performed on virtual machines
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesGetOperationStatus
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
operationIds:
[
string ,
]
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timezone: string ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesSubmitCreate (new)
Description VirtualMachinesSubmitCreate: submit create operation for a batch of virtual machines, at datetime in future.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitCreate
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
schedule:
{
deadline: string ,
deadLine: string ,
timezone: string ,
timeZone: string ,
deadlineType: enum ,
}
,
resourceConfigParameters:
{
baseProfile: string ,
resourceOverrides:
[
string ,
]
,
resourceCount: integer ,
resourcePrefix: string ,
}
,
executionParameters:
{
optimizationPreference: enum ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
description: string ,
type: string ,
location: string ,
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timezone: string ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesSubmitDeallocate (new)
Description VirtualMachinesSubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitDeallocate
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
schedule:
{
deadline: string ,
deadLine: string ,
timezone: string ,
timeZone: string ,
deadlineType: enum ,
}
,
executionParameters:
{
optimizationPreference: enum ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
resources:
{
ids:
[
string ,
]
,
}
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
description: string ,
type: string ,
location: string ,
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timezone: string ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesSubmitDelete (new)
Description VirtualMachinesSubmitDelete: submit delete operation for a batch of virtual machines, at datetime in future.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitDelete
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
schedule:
{
deadline: string ,
deadLine: string ,
timezone: string ,
timeZone: string ,
deadlineType: enum ,
}
,
executionParameters:
{
optimizationPreference: enum ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
resources:
{
ids:
[
string ,
]
,
}
,
correlationid: string ,
forceDeletion: boolean ,
}
,
}

⚐ Response (200)

{
description: string ,
type: string ,
location: string ,
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timezone: string ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesSubmitHibernate (new)
Description VirtualMachinesSubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitHibernate
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
schedule:
{
deadline: string ,
deadLine: string ,
timezone: string ,
timeZone: string ,
deadlineType: enum ,
}
,
executionParameters:
{
optimizationPreference: enum ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
resources:
{
ids:
[
string ,
]
,
}
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
description: string ,
type: string ,
location: string ,
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timezone: string ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}
ScheduledActions_VirtualMachinesSubmitStart (new)
Description VirtualMachinesSubmitStart: Schedule start operation for a batch of virtual machines at datetime in future.
Reference Link ¶

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesSubmitStart
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
schedule:
{
deadline: string ,
deadLine: string ,
timezone: string ,
timeZone: string ,
deadlineType: enum ,
}
,
executionParameters:
{
optimizationPreference: enum ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
resources:
{
ids:
[
string ,
]
,
}
,
correlationid: string ,
}
,
}

⚐ Response (200)

{
description: string ,
type: string ,
location: string ,
results:
[
{
resourceId: string ,
errorCode: string ,
errorDetails: string ,
operation:
{
operationId: string ,
resourceId: string ,
opType: enum ,
subscriptionId: string ,
deadline: string ,
deadlineType: enum ,
state: enum ,
timezone: string ,
timeZone: string ,
resourceOperationError:
{
errorCode: string ,
errorDetails: string ,
}
,
completedAt: string ,
retryPolicy:
{
retryCount: integer ,
retryWindowInMinutes: integer ,
}
,
}
,
}
,
]
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}