Microsoft.ComputeSchedule (stable:2024-10-01)

2024/12/09 • 9 updated methods

ScheduledActions_VirtualMachinesCancelOperations (updated)
Description CancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request for submit-type ComputeSchedule operations
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesCancelOperations",
  "Description": {
    "new": "CancelOperations: Cancel a previously submitted (start/deallocate/hibernate) request for submit-type ComputeSchedule operations",
    "old": "virtualMachinesCancelOperations: cancelOperations for a virtual machine"
  },
  "$responses": {
    "200": {
      "$properties": {
        "results": {
          "$properties": {
            "operation": [
              {
                "#name": "deadlineType",
                "Enum": {
                  "new": [
                    [
                      "Unknown",
                      "Default value of Unknown."
                    ],
                    [
                      "InitiateAt",
                      "Initiate the operation at the given deadline."
                    ]
                  ],
                  "old": [
                    [
                      "Unknown",
                      "Default value of Unknown."
                    ],
                    [
                      "InitiateAt",
                      "Initiate the operation at the given deadline."
                    ],
                    [
                      "CompleteBy",
                      "Complete the operation by the given deadline."
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ 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_VirtualMachinesExecuteDeallocate (updated)
Description ExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesExecuteDeallocate",
  "Description": {
    "new": "ExecuteDeallocate: Execute deallocate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.",
    "old": "virtualMachinesExecuteDeallocate: executeDeallocate for a virtual machine"
  },
  "$parameters": {
    "requestBody": {
      "$properties": {
        "executionParameters": [
          {
            "@removed_c99a63c1c16e474298e4f57287801237": {
              "#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"
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "results": {
          "$properties": {
            "operation": [
              {
                "#name": "deadlineType",
                "Enum": {
                  "new": [
                    [
                      "Unknown",
                      "Default value of Unknown."
                    ],
                    [
                      "InitiateAt",
                      "Initiate the operation at the given deadline."
                    ]
                  ],
                  "old": [
                    [
                      "Unknown",
                      "Default value of Unknown."
                    ],
                    [
                      "InitiateAt",
                      "Initiate the operation at the given deadline."
                    ],
                    [
                      "CompleteBy",
                      "Complete the operation by the given deadline."
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteDeallocate
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
executionParameters:
{
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_VirtualMachinesExecuteHibernate (updated)
Description ExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesExecuteHibernate",
  "Description": {
    "new": "ExecuteHibernate: Execute hibernate operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.",
    "old": "virtualMachinesExecuteHibernate: executeHibernate for a virtual machine"
  },
  "$parameters": {
    "requestBody": {
      "$properties": {
        "executionParameters": [
          {
            "@removed_a067a1e250594840a4a11933cc51fa29": {
              "#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"
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "results": {
          "$properties": {
            "operation": [
              {
                "#name": "deadlineType",
                "Enum": {
                  "new": [
                    [
                      "Unknown",
                      "Default value of Unknown."
                    ],
                    [
                      "InitiateAt",
                      "Initiate the operation at the given deadline."
                    ]
                  ],
                  "old": [
                    [
                      "Unknown",
                      "Default value of Unknown."
                    ],
                    [
                      "InitiateAt",
                      "Initiate the operation at the given deadline."
                    ],
                    [
                      "CompleteBy",
                      "Complete the operation by the given deadline."
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteHibernate
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
executionParameters:
{
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 (updated)
Description ExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesExecuteStart",
  "Description": {
    "new": "ExecuteStart: Execute start operation for a batch of virtual machines, this operation is triggered as soon as Computeschedule recieves it.",
    "old": "virtualMachinesExecuteStart: executeStart for a virtual machine"
  },
  "$parameters": {
    "requestBody": {
      "$properties": {
        "executionParameters": [
          {
            "@removed_79ac25d2bbc84544a0639f0f23a55944": {
              "#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"
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "results": {
          "$properties": {
            "operation": [
              {
                "#name": "deadlineType",
                "Enum": {
                  "new": [
                    [
                      "Unknown",
                      "Default value of Unknown."
                    ],
                    [
                      "InitiateAt",
                      "Initiate the operation at the given deadline."
                    ]
                  ],
                  "old": [
                    [
                      "Unknown",
                      "Default value of Unknown."
                    ],
                    [
                      "InitiateAt",
                      "Initiate the operation at the given deadline."
                    ],
                    [
                      "CompleteBy",
                      "Complete the operation by the given deadline."
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

POST:  /subscriptions/{subscriptionId}/providers/Microsoft.ComputeSchedule/locations/{locationparameter}/virtualMachinesExecuteStart
{
api-version: string ,
subscriptionId: string ,
locationparameter: string ,
requestBody:
{
executionParameters:
{
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 (updated)
Description GetOperationErrors: Get operation error details on operation errors (like transient errors encountered, additional logs) if they exist.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesGetOperationErrors",
  "Description": {
    "new": "GetOperationErrors: Get operation error details on operation errors (like transient errors encountered, additional logs) if they exist.",
    "old": "virtualMachinesGetOperationErrors: getOperationErrors associated with an operation on a virtual machine"
  }
}

⚼ 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 (updated)
Description GetOperationStatus: Polling endpoint to read status of operations performed on virtual machines
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesGetOperationStatus",
  "Description": {
    "new": "GetOperationStatus: Polling endpoint to read status of operations performed on virtual machines",
    "old": "virtualMachinesGetOperationStatus: getOperationStatus for a virtual machine"
  },
  "$responses": {
    "200": {
      "$properties": {
        "results": {
          "$properties": {
            "operation": [
              {
                "#name": "deadlineType",
                "Enum": {
                  "new": [
                    [
                      "Unknown",
                      "Default value of Unknown."
                    ],
                    [
                      "InitiateAt",
                      "Initiate the operation at the given deadline."
                    ]
                  ],
                  "old": [
                    [
                      "Unknown",
                      "Default value of Unknown."
                    ],
                    [
                      "InitiateAt",
                      "Initiate the operation at the given deadline."
                    ],
                    [
                      "CompleteBy",
                      "Complete the operation by the given deadline."
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ 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_VirtualMachinesSubmitDeallocate (updated)
Description SubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesSubmitDeallocate",
  "Description": {
    "new": "SubmitDeallocate: Schedule deallocate operation for a batch of virtual machines at datetime in future.",
    "old": "virtualMachinesSubmitDeallocate: submitDeallocate for a virtual machine"
  },
  "$parameters": {
    "requestBody": {
      "$properties": {
        "schedule": [
          {
            "#name": "deadlineType",
            "Enum": {
              "new": [
                [
                  "Unknown",
                  "Default value of Unknown."
                ],
                [
                  "InitiateAt",
                  "Initiate the operation at the given deadline."
                ]
              ],
              "old": [
                [
                  "Unknown",
                  "Default value of Unknown."
                ],
                [
                  "InitiateAt",
                  "Initiate the operation at the given deadline."
                ],
                [
                  "CompleteBy",
                  "Complete the operation by the given deadline."
                ]
              ]
            }
          }
        ],
        "executionParameters": [
          {
            "@removed_6245c3a1b49d48278442b2e39de525b3": {
              "#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"
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "results": {
          "$properties": {
            "operation": [
              {
                "#name": "deadlineType",
                "Enum": {
                  "new": [
                    [
                      "Unknown",
                      "Default value of Unknown."
                    ],
                    [
                      "InitiateAt",
                      "Initiate the operation at the given deadline."
                    ]
                  ],
                  "old": [
                    [
                      "Unknown",
                      "Default value of Unknown."
                    ],
                    [
                      "InitiateAt",
                      "Initiate the operation at the given deadline."
                    ],
                    [
                      "CompleteBy",
                      "Complete the operation by the given deadline."
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ 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:
{
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_VirtualMachinesSubmitHibernate (updated)
Description SubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesSubmitHibernate",
  "Description": {
    "new": "SubmitHibernate: Schedule hibernate operation for a batch of virtual machines at datetime in future.",
    "old": "virtualMachinesSubmitHibernate: submitHibernate for a virtual machine"
  },
  "$parameters": {
    "requestBody": {
      "$properties": {
        "schedule": [
          {
            "#name": "deadlineType",
            "Enum": {
              "new": [
                [
                  "Unknown",
                  "Default value of Unknown."
                ],
                [
                  "InitiateAt",
                  "Initiate the operation at the given deadline."
                ]
              ],
              "old": [
                [
                  "Unknown",
                  "Default value of Unknown."
                ],
                [
                  "InitiateAt",
                  "Initiate the operation at the given deadline."
                ],
                [
                  "CompleteBy",
                  "Complete the operation by the given deadline."
                ]
              ]
            }
          }
        ],
        "executionParameters": [
          {
            "@removed_5198ce195b9d4cd180ad074e13cee74f": {
              "#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"
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "results": {
          "$properties": {
            "operation": [
              {
                "#name": "deadlineType",
                "Enum": {
                  "new": [
                    [
                      "Unknown",
                      "Default value of Unknown."
                    ],
                    [
                      "InitiateAt",
                      "Initiate the operation at the given deadline."
                    ]
                  ],
                  "old": [
                    [
                      "Unknown",
                      "Default value of Unknown."
                    ],
                    [
                      "InitiateAt",
                      "Initiate the operation at the given deadline."
                    ],
                    [
                      "CompleteBy",
                      "Complete the operation by the given deadline."
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ 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:
{
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 (updated)
Description SubmitStart: Schedule start operation for a batch of virtual machines at datetime in future.
Reference Link ¶

⚶ Changes

{
  "#id": "ScheduledActions_VirtualMachinesSubmitStart",
  "Description": {
    "new": "SubmitStart: Schedule start operation for a batch of virtual machines at datetime in future.",
    "old": "virtualMachinesSubmitStart: submitStart for a virtual machine"
  },
  "$parameters": {
    "requestBody": {
      "$properties": {
        "schedule": [
          {
            "#name": "deadlineType",
            "Enum": {
              "new": [
                [
                  "Unknown",
                  "Default value of Unknown."
                ],
                [
                  "InitiateAt",
                  "Initiate the operation at the given deadline."
                ]
              ],
              "old": [
                [
                  "Unknown",
                  "Default value of Unknown."
                ],
                [
                  "InitiateAt",
                  "Initiate the operation at the given deadline."
                ],
                [
                  "CompleteBy",
                  "Complete the operation by the given deadline."
                ]
              ]
            }
          }
        ],
        "executionParameters": [
          {
            "@removed_cfe25d7bfaeb44cb8c7fa1a72d7bac27": {
              "#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"
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "results": {
          "$properties": {
            "operation": [
              {
                "#name": "deadlineType",
                "Enum": {
                  "new": [
                    [
                      "Unknown",
                      "Default value of Unknown."
                    ],
                    [
                      "InitiateAt",
                      "Initiate the operation at the given deadline."
                    ]
                  ],
                  "old": [
                    [
                      "Unknown",
                      "Default value of Unknown."
                    ],
                    [
                      "InitiateAt",
                      "Initiate the operation at the given deadline."
                    ],
                    [
                      "CompleteBy",
                      "Complete the operation by the given deadline."
                    ]
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ 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:
{
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 ,
}
,
]
,
}
,
}