共用方式為


IVirtualMachines.MigrateToManagedAsync Method

Definition

Converts (migrates) the virtual machine with un-managed disks to use managed disk asynchronously.

public System.Threading.Tasks.Task MigrateToManagedAsync (string groupName, string name, System.Threading.CancellationToken cancellationToken = default);
abstract member MigrateToManagedAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function MigrateToManagedAsync (groupName As String, name As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

groupName
String

The resource group name.

name
String

The virtual machine name.

cancellationToken
CancellationToken

Returns

Applies to