---
title: "Start Deployment"
method: POST
path: "/azure/compute/group/{groupId}/deployment"
tags: ["Elastigroup Azure Spot VMs"]
---

# Start Deployment

`POST /azure/compute/group/{groupId}/deployment`

Deploy the Elastigroup. This triggers a Blue/Green deployment that replaces the existing VMs in the Elastigroup.

## Parameters

- `#/paths/~1azure~1costs/get/parameters/0` — unresolved $ref
- `#/paths/~1aws~1ec2~1group~1%7BgroupId%7D/put/parameters/0` — unresolved $ref

## Request body

- object
  - `deployment` object
    - `id` string
    - `groupId` string
    - `status` string
    - `currentBatch` integer
    - `numOfBatches` integer
    - `progress` object
      - `unit` string
      - `value` integer
    - `updatedAt` string
    - `createdAt` string
    - `batchSizePercentage` integer — Indicates (in percentage) the batch size of the deployment (meaning, how many nodes to replace in each batch).\ Cannot be null.
    - `gracePeriod` integer — Indicates (in seconds) the timeout to wait until the node becomes healthy.
    - `batchMinHealthyPercentage` integer — Indicates the threshold of minimum healthy virtual machines in a single batch.\ If the amount of healthy virtual machines in a single batch is under the threshold, the deployment will fail.\ The value of the parameter should represent the number in percentage (%) of the batch.
    - `drainingTimeout` integer — Indicates (in seconds) the timeout to drain the instances. Can be null.\ Default - The Elastigroups draining time out or 120.
    - `healthCheckTypes` string[] — Define a health check type. Can be null.\ If no value is set, the deployment will use the group's auto-healing health check.

## Other responses

- `200` — unresolved $ref
- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
