IVirtualMachineDiskOperations.UpdateDiskAsync Method (String, VirtualMachineDiskUpdateParameters, CancellationToken)
The Add Disk operation adds a disk to the user image repository. The disk can be an operating system disk or a data disk. (see https://msdn.microsoft.com/library/windowsazure/jj157178.aspx for more information)
Namespace: Microsoft.WindowsAzure.Management.Compute
Assembly: Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)
Syntax
Task<VirtualMachineDiskUpdateResponse> UpdateDiskAsync(
string name,
VirtualMachineDiskUpdateParameters parameters,
CancellationToken cancellationToken
)
Task<VirtualMachineDiskUpdateResponse^>^ UpdateDiskAsync(
String^ name,
VirtualMachineDiskUpdateParameters^ parameters,
CancellationToken cancellationToken
)
abstract UpdateDiskAsync :
name:string *
parameters:VirtualMachineDiskUpdateParameters *
cancellationToken:CancellationToken -> Task<VirtualMachineDiskUpdateResponse>
Function UpdateDiskAsync (
name As String,
parameters As VirtualMachineDiskUpdateParameters,
cancellationToken As CancellationToken
) As Task(Of VirtualMachineDiskUpdateResponse)
Parameters
name
Type: System.StringThe name of the disk being updated.
parameters
Type: Microsoft.WindowsAzure.Management.Compute.Models.VirtualMachineDiskUpdateParametersParameters supplied to the Update Virtual Machine Disk operation.
cancellationToken
Type: System.Threading.CancellationTokenCancellation token.
Return Value
Type: System.Threading.Tasks.Task<VirtualMachineDiskUpdateResponse>
A virtual machine disk associated with your subscription.
See Also
IVirtualMachineDiskOperations Interface
Microsoft.WindowsAzure.Management.Compute Namespace
Return to top