| Description | : ExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule receives it. |
| Reference | : Link ¶ |
⚶ Changes
{
"#id": "ScheduledActions_VirtualMachinesExecuteDeallocate",
"$parameters": {
"requestBody": {
"$properties": {
"executionParameters": [
{
"@added_504ebd5d3db9443a84843b481c60cc4e": {
"#name": "optimizationPreference",
"Description": "Details that could optimize the user's request",
"Enum": [
[
"Cost",
"Optimize while considering cost savings"
],
[
"Availability",
"Optimize while considering availability of resources"
],
[
"CostAvailabilityBalanced",
"Optimize while considering a balance of cost and availability"
]
],
"Required": false,
"Type": "string"
}
}
]
}
}
}
}
⚼ 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
,
}