---
title: "Import VM to a Stateful Node"
method: POST
path: "/azure/compute/statefulNode/import"
tags: ["Elastigroup Azure Stateful"]
---

# Import VM to a Stateful Node

`POST /azure/compute/statefulNode/import`

Import an Azure VM and create a stateful node by providing a node configuration.

## Parameters

- `#/paths/~1azure~1costs/get/parameters/0` — unresolved $ref

## Request body

- object
  - `statefulNodeImport` object
    - `statefulImportId` string — Azure Import Stateful Node ID
    - `originalVmName` string, required — Azure Import Stateful Node Name
    - `resourceGroupName` string, required — Name of the Resource Group for Stateful Node.
    - `drainingTimeout` integer — Time in seconds before shutdown incase of load balancing.
    - `resourcesRetentionTime` integer — Time in hours to delete the original resources after the import has finished.
    - `convertUnmanagedDisks` boolean — Converts virtual machine unmanaged disks to managed disks.
    - `node` StatefulNode — unresolved $ref

## Other responses

- `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)
