IVirtualMachineDiskOperations Interface

 

Represents the interface for the operations that are used to manage the disks in a subscription.

Namespace:   Microsoft.WindowsAzure.Management.Compute
Assembly:  Microsoft.WindowsAzure.Management.Compute (in Microsoft.WindowsAzure.Management.Compute.dll)

Syntax

public interface IVirtualMachineDiskOperations
public interface class IVirtualMachineDiskOperations
type IVirtualMachineDiskOperations = interface end
Public Interface IVirtualMachineDiskOperations

Methods

Name Description
System_CAPS_pubmethod BeginCreatingDataDiskAsync(String, String, String, VirtualMachineDataDiskCreateParameters, CancellationToken)

The Create Data Disk operation adds a data disk to a virtual machine. There are three ways to create the data disk using the Add Data Disk operation. Option 1 - Attach an empty data disk to the role by specifying the disk label and location of the disk image. Do not include the DiskName and SourceMediaLink elements in the request body. Include the MediaLink element and reference a blob that is in the same geographical region as the role. You can also omit the MediaLink element. In this usage, Azure will create the data disk in the storage account configured as default for the role. Option 2 - Attach an existing data disk that is in the image repository. Do not include the DiskName and SourceMediaLink elements in the request body. Specify the data disk to use by including the DiskName element. Note: If included the in the response body, the MediaLink and LogicalDiskSizeInGB elements are ignored. Option 3 - Specify the location of a blob in your storage account that contain a disk image to use. Include the SourceMediaLink element. Note: If the MediaLink element isincluded, it is ignored. (see https://msdn.microsoft.com/library/windowsazure/jj157199.aspx for more information)

System_CAPS_pubmethod BeginDeletingDataDiskAsync(String, String, String, Int32, Boolean, CancellationToken)

The Begin Deleting Data Disk operation removes the specified data disk from a virtual machine. (see https://msdn.microsoft.com/library/windowsazure/jj157179.aspx for more information)

System_CAPS_pubmethod CreateDataDiskAsync(String, String, String, VirtualMachineDataDiskCreateParameters, CancellationToken)

The Create Data Disk operation adds a data disk to a virtual machine. There are three ways to create the data disk using the Add Data Disk operation. Option 1 - Attach an empty data disk to the role by specifying the disk label and location of the disk image. Do not include the DiskName and SourceMediaLink elements in the request body. Include the MediaLink element and reference a blob that is in the same geographical region as the role. You can also omit the MediaLink element. In this usage, Azure will create the data disk in the storage account configured as default for the role. Option 2 - Attach an existing data disk that is in the image repository. Do not include the DiskName and SourceMediaLink elements in the request body. Specify the data disk to use by including the DiskName element. Note: If included the in the response body, the MediaLink and LogicalDiskSizeInGB elements are ignored. Option 3 - Specify the location of a blob in your storage account that contain a disk image to use. Include the SourceMediaLink element. Note: If the MediaLink element isincluded, it is ignored. (see https://msdn.microsoft.com/library/windowsazure/jj157199.aspx for more information)

System_CAPS_pubmethod CreateDiskAsync(VirtualMachineDiskCreateParameters, CancellationToken)

The Create 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)

System_CAPS_pubmethod DeleteDataDiskAsync(String, String, String, Int32, Boolean, CancellationToken)

The Delete Data Disk operation removes the specified data disk from a virtual machine. (see https://msdn.microsoft.com/library/windowsazure/jj157179.aspx for more information)

System_CAPS_pubmethod DeleteDiskAsync(String, Boolean, CancellationToken)

Asynchronously deletes the specified data or operating system disk from the user disk repository.

System_CAPS_pubmethod GetDataDiskAsync(String, String, String, Int32, CancellationToken)

Asynchronously retrieves information about the specified data disk.

System_CAPS_pubmethod GetDiskAsync(String, CancellationToken)

Asynchronously retrieves information about a disk in the user disk repository.

System_CAPS_pubmethod ListDisksAsync(CancellationToken)

Asynchronously retrieves a list of disks in the user disk repository.

System_CAPS_pubmethod UpdateDataDiskAsync(String, String, String, Int32, VirtualMachineDataDiskUpdateParameters, CancellationToken)

The Update Data Disk operation updates the specified data disk attached to the specified virtual machine. (see https://msdn.microsoft.com/library/windowsazure/jj157190.aspx for more information)

System_CAPS_pubmethod UpdateDiskAsync(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)

Extension Methods

Name Description
System_CAPS_pubmethod BeginCreatingDataDisk(String, String, String, VirtualMachineDataDiskCreateParameters)

The Create Data Disk operation adds a data disk to a virtual machine. There are three ways to create the data disk using the Add Data Disk operation. Option 1 - Attach an empty data disk to the role by specifying the disk label and location of the disk image. Do not include the DiskName and SourceMediaLink elements in the request body. Include the MediaLink element and reference a blob that is in the same geographical region as the role. You can also omit the MediaLink element. In this usage, Azure will create the data disk in the storage account configured as default for the role. Option 2 - Attach an existing data disk that is in the image repository. Do not include the DiskName and SourceMediaLink elements in the request body. Specify the data disk to use by including the DiskName element. Note: If included the in the response body, the MediaLink and LogicalDiskSizeInGB elements are ignored. Option 3 - Specify the location of a blob in your storage account that contain a disk image to use. Include the SourceMediaLink element. Note: If the MediaLink element isincluded, it is ignored. (see https://msdn.microsoft.com/library/windowsazure/jj157199.aspx for more information)(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod BeginCreatingDataDiskAsync(String, String, String, VirtualMachineDataDiskCreateParameters)

The Create Data Disk operation adds a data disk to a virtual machine. There are three ways to create the data disk using the Add Data Disk operation. Option 1 - Attach an empty data disk to the role by specifying the disk label and location of the disk image. Do not include the DiskName and SourceMediaLink elements in the request body. Include the MediaLink element and reference a blob that is in the same geographical region as the role. You can also omit the MediaLink element. In this usage, Azure will create the data disk in the storage account configured as default for the role. Option 2 - Attach an existing data disk that is in the image repository. Do not include the DiskName and SourceMediaLink elements in the request body. Specify the data disk to use by including the DiskName element. Note: If included the in the response body, the MediaLink and LogicalDiskSizeInGB elements are ignored. Option 3 - Specify the location of a blob in your storage account that contain a disk image to use. Include the SourceMediaLink element. Note: If the MediaLink element isincluded, it is ignored. (see https://msdn.microsoft.com/library/windowsazure/jj157199.aspx for more information)(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod BeginDeletingDataDisk(String, String, String, Int32, Boolean)

The Begin Deleting Data Disk operation removes the specified data disk from a virtual machine. (see https://msdn.microsoft.com/library/windowsazure/jj157179.aspx for more information)(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod BeginDeletingDataDiskAsync(String, String, String, Int32, Boolean)

The Begin Deleting Data Disk operation removes the specified data disk from a virtual machine. (see https://msdn.microsoft.com/library/windowsazure/jj157179.aspx for more information)(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod CreateDataDisk(String, String, String, VirtualMachineDataDiskCreateParameters)

The Create Data Disk operation adds a data disk to a virtual machine. There are three ways to create the data disk using the Add Data Disk operation. Option 1 - Attach an empty data disk to the role by specifying the disk label and location of the disk image. Do not include the DiskName and SourceMediaLink elements in the request body. Include the MediaLink element and reference a blob that is in the same geographical region as the role. You can also omit the MediaLink element. In this usage, Azure will create the data disk in the storage account configured as default for the role. Option 2 - Attach an existing data disk that is in the image repository. Do not include the DiskName and SourceMediaLink elements in the request body. Specify the data disk to use by including the DiskName element. Note: If included the in the response body, the MediaLink and LogicalDiskSizeInGB elements are ignored. Option 3 - Specify the location of a blob in your storage account that contain a disk image to use. Include the SourceMediaLink element. Note: If the MediaLink element isincluded, it is ignored. (see https://msdn.microsoft.com/library/windowsazure/jj157199.aspx for more information)(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod CreateDataDiskAsync(String, String, String, VirtualMachineDataDiskCreateParameters)

The Create Data Disk operation adds a data disk to a virtual machine. There are three ways to create the data disk using the Add Data Disk operation. Option 1 - Attach an empty data disk to the role by specifying the disk label and location of the disk image. Do not include the DiskName and SourceMediaLink elements in the request body. Include the MediaLink element and reference a blob that is in the same geographical region as the role. You can also omit the MediaLink element. In this usage, Azure will create the data disk in the storage account configured as default for the role. Option 2 - Attach an existing data disk that is in the image repository. Do not include the DiskName and SourceMediaLink elements in the request body. Specify the data disk to use by including the DiskName element. Note: If included the in the response body, the MediaLink and LogicalDiskSizeInGB elements are ignored. Option 3 - Specify the location of a blob in your storage account that contain a disk image to use. Include the SourceMediaLink element. Note: If the MediaLink element isincluded, it is ignored. (see https://msdn.microsoft.com/library/windowsazure/jj157199.aspx for more information)(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod CreateDisk(VirtualMachineDiskCreateParameters)

The Create 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)(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod CreateDiskAsync(VirtualMachineDiskCreateParameters)

The Create 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)(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod DeleteDataDisk(String, String, String, Int32, Boolean)

The Delete Data Disk operation removes the specified data disk from a virtual machine. (see https://msdn.microsoft.com/library/windowsazure/jj157179.aspx for more information)(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod DeleteDataDiskAsync(String, String, String, Int32, Boolean)

The Delete Data Disk operation removes the specified data disk from a virtual machine. (see https://msdn.microsoft.com/library/windowsazure/jj157179.aspx for more information)(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod DeleteDisk(String, Boolean)

Deletes the specified data or operating system disk from the user disk repository.(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod DeleteDiskAsync(String, Boolean)

Asynchronously deletes the specified data or operating system disk from the user disk repository.(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod GetDataDisk(String, String, String, Int32)

Retrieves information about the specified data disk.(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod GetDataDiskAsync(String, String, String, Int32)

Asynchronously retrieves information about the specified data disk.(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod GetDisk(String)

Retrieves information about a disk in the user disk repository.(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod GetDiskAsync(String)

Asynchronously retrieves information about a disk in the user disk repository.(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod ListDisks()

Retrieves a list of disks from the user disk repository.(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod ListDisksAsync()

Asynchronously retrieves a list of disks from the user disk repository.(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod UpdateDataDisk(String, String, String, Int32, VirtualMachineDataDiskUpdateParameters)

The Update Data Disk operation updates the specified data disk attached to the specified virtual machine. (see https://msdn.microsoft.com/library/windowsazure/jj157190.aspx for more information)(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod UpdateDataDiskAsync(String, String, String, Int32, VirtualMachineDataDiskUpdateParameters)

The Update Data Disk operation updates the specified data disk attached to the specified virtual machine. (see https://msdn.microsoft.com/library/windowsazure/jj157190.aspx for more information)(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod UpdateDisk(String, VirtualMachineDiskUpdateParameters)

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)(Defined by VirtualMachineDiskOperationsExtensions.)

System_CAPS_pubmethod UpdateDiskAsync(String, VirtualMachineDiskUpdateParameters)

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)(Defined by VirtualMachineDiskOperationsExtensions.)

Remarks

For more information about managing disks, see the following resources:

See Also

Microsoft.WindowsAzure.Management.Compute Namespace

Return to top