Udostępnij za pośrednictwem


IVirtualMachineOperations.BeginCapturingVMImageAsync Method

Definition

Begin capturing role as VM template.

public System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> BeginCapturingVMImageAsync (string serviceName, string deploymentName, string virtualMachineName, Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineCaptureVMImageParameters parameters, System.Threading.CancellationToken cancellationToken);
abstract member BeginCapturingVMImageAsync : string * string * string * Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineCaptureVMImageParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function BeginCapturingVMImageAsync (serviceName As String, deploymentName As String, virtualMachineName As String, parameters As VirtualMachineCaptureVMImageParameters, cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)

Parameters

serviceName
String

The name of your service.

deploymentName
String

The name of your deployment.

virtualMachineName
String

The name of the virtual machine to restart.

parameters
VirtualMachineCaptureVMImageParameters

Parameters supplied to the Capture Virtual Machine operation.

cancellationToken
CancellationToken

Cancellation token.

Returns

Task<Microsoft.Azure.AzureOperationResponse>

A standard service response including an HTTP status code and request ID.

Applies to