This API is used to mark a Virtual Machine as generalized in Azure. You need to still run sysprep on the machine before calling this API. This operation is required before calling the Save an image from a VM.
Request
For information about getting started with Azure REST operations including request authentication, see Azure REST API Reference.
| Method | Request URI |
|---|---|
| POST | https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vm}/generalize?api-version={apiVersion} |
| Parameter | Description |
|---|---|
| subscriptionId | The identifier of your subscription. |
| resourceGroup | The resource group that contains the virtual machine. |
| vm | The name of the virtual machine to mark as generalized. |
| apiVersion | The version of the API to use. The current version is 2016-04-30-preview. |
Response
Status code: If successful, the operation returns 200 (OK); otherwise 404 (Not Found) is returned.
