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}/capture?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 from which you want to save an image. |
| apiVersion |
The version of the API to use. The current version is 2016-04-30-preview. |
{
"vhdPrefix":"pslib",
"destinationContainerName":"dest",
"overwriteVhds":true
}
| Element name |
Required |
Type |
Description |
| vhdPrefix |
Yes |
String |
Specifies the prefix in the name of the blobs that constitute the storage profile of the image. |
| destinationContainerName |
Yes |
String |
Specifies the name of the container inside which the vhds constituting the image resides. |
| overwriteVhds |
Yes |
String |
Specifies if an existing vhd with same prefix inside the destination container is overwritten. |
Response
Status code: If successful, the operation returns 200 (OK); otherwise 404 (Not Found) is returned.