IVirtualMachineDiskOperations.BeginDeletingDataDiskAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The Begin Deleting Data Disk operation removes the specified data disk from a virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157179.aspx for more information)
public System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse> BeginDeletingDataDiskAsync (string serviceName, string deploymentName, string roleName, int logicalUnitNumber, bool deleteFromStorage, System.Threading.CancellationToken cancellationToken);
abstract member BeginDeletingDataDiskAsync : string * string * string * int * bool * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.AzureOperationResponse>
Public Function BeginDeletingDataDiskAsync (serviceName As String, deploymentName As String, roleName As String, logicalUnitNumber As Integer, deleteFromStorage As Boolean, cancellationToken As CancellationToken) As Task(Of AzureOperationResponse)
Parameters
- serviceName
- String
The name of your service.
- deploymentName
- String
The name of the deployment.
- roleName
- String
The name of the role to delete the data disk from.
- logicalUnitNumber
- Int32
The logical unit number of the disk.
- deleteFromStorage
- Boolean
Specifies that the source blob for the disk should also be deleted from storage.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
A standard service response including an HTTP status code and request ID.