---
title: "POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/commit"
method: POST
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/commit"
tags: ["MoveCollections"]
---

# POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/commit

`POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Migrate/moveCollections/{moveCollectionName}/commit`

Commits the set of resources included in the request body. The commit operation is triggered on the moveResources in the moveState 'CommitPending' or 'CommitFailed', on a successful completion the moveResource moveState do a transition to Committed. To aid the user to prerequisite the operation the client can call operation with validateOnly property set to true.

## Path parameters

- `subscriptionId` string, required
- `resourceGroupName` string, required
- `moveCollectionName` string, required

## Query parameters

- `api-version` string, required

## Request body

- CommitRequest — Defines the request body for commit operation.
  - `validateOnly` boolean — Gets or sets a value indicating whether the operation needs to only run pre-requisite.
  - `moveResources` string[], required — Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property.
  - `moveResourceInputType` 'MoveResourceId' | 'MoveResourceSourceId' — Defines the move resource input type.

## Response `200`

OK

- OperationStatus — Operation status REST resource.
  - `id` string — Resource Id.
  - `name` string — Operation name.
  - `status` string — Status of the operation. ARM expects the terminal status to be one of Succeeded/ Failed/ Canceled. All other values imply that the operation is still running.
  - `startTime` string — Start time.
  - `endTime` string — End time.
  - `error` OperationStatusError — Class for operation status errors.
    - `code` string — The error code.
    - `message` string — The error message.
    - `details` OperationStatusError[] — The error details.
    - `additionalInfo` OperationErrorAdditionalInfo[] — The additional info.
      - `type` string — The error type.
      - `info` MoveErrorInfo — The move custom error info.
        - `moveResources` AffectedMoveResource[] — The affected move resources.
          - `id` string — The affected move resource id.
          - `sourceId` string — The affected move resource source id.
          - `moveResources` AffectedMoveResource[] — The affected move resources.
  - `properties` OperationStatusProperties — Class for operation result properties.

## Other responses

- `202` — Accepted
- `default` — Error response describing why the operation failed.

---

[API](https://skmtc.net/azure/apis/resourcemover-microsoft-migrate-resourcemover.md) · [All operations](https://skmtc.net/azure/apis/resourcemover-microsoft-migrate-resourcemover/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/resourcemover-microsoft-migrate-resourcemover/versions/387a098d4474/schema)
