VirtualMachineDiskOperationsExtensions Class

 

Represents the extensions for disk management.

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

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Management.Compute.VirtualMachineDiskOperationsExtensions

Syntax

public static class VirtualMachineDiskOperationsExtensions
[ExtensionAttribute]
public ref class VirtualMachineDiskOperationsExtensions abstract sealed 
[<AbstractClass>]
[<Sealed>]
type VirtualMachineDiskOperationsExtensions = class end
<ExtensionAttribute>
Public NotInheritable Class VirtualMachineDiskOperationsExtensions

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static BeginCreatingDataDisk(IVirtualMachineDiskOperations, 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)

System_CAPS_pubmethodSystem_CAPS_static BeginCreatingDataDiskAsync(IVirtualMachineDiskOperations, 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)

System_CAPS_pubmethodSystem_CAPS_static BeginDeletingDataDisk(IVirtualMachineDiskOperations, 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)

System_CAPS_pubmethodSystem_CAPS_static BeginDeletingDataDiskAsync(IVirtualMachineDiskOperations, 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)

System_CAPS_pubmethodSystem_CAPS_static CreateDataDisk(IVirtualMachineDiskOperations, 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)

System_CAPS_pubmethodSystem_CAPS_static CreateDataDiskAsync(IVirtualMachineDiskOperations, 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)

System_CAPS_pubmethodSystem_CAPS_static CreateDisk(IVirtualMachineDiskOperations, 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)

System_CAPS_pubmethodSystem_CAPS_static CreateDiskAsync(IVirtualMachineDiskOperations, 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)

System_CAPS_pubmethodSystem_CAPS_static DeleteDataDisk(IVirtualMachineDiskOperations, 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)

System_CAPS_pubmethodSystem_CAPS_static DeleteDataDiskAsync(IVirtualMachineDiskOperations, 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)

System_CAPS_pubmethodSystem_CAPS_static DeleteDisk(IVirtualMachineDiskOperations, String, Boolean)

Deletes the specified data or operating system disk from the user disk repository.

System_CAPS_pubmethodSystem_CAPS_static DeleteDiskAsync(IVirtualMachineDiskOperations, String, Boolean)

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

System_CAPS_pubmethodSystem_CAPS_static GetDataDisk(IVirtualMachineDiskOperations, String, String, String, Int32)

Retrieves information about the specified data disk.

System_CAPS_pubmethodSystem_CAPS_static GetDataDiskAsync(IVirtualMachineDiskOperations, String, String, String, Int32)

Asynchronously retrieves information about the specified data disk.

System_CAPS_pubmethodSystem_CAPS_static GetDisk(IVirtualMachineDiskOperations, String)

Retrieves information about a disk in the user disk repository.

System_CAPS_pubmethodSystem_CAPS_static GetDiskAsync(IVirtualMachineDiskOperations, String)

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

System_CAPS_pubmethodSystem_CAPS_static ListDisks(IVirtualMachineDiskOperations)

Retrieves a list of disks from the user disk repository.

System_CAPS_pubmethodSystem_CAPS_static ListDisksAsync(IVirtualMachineDiskOperations)

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

System_CAPS_pubmethodSystem_CAPS_static UpdateDataDisk(IVirtualMachineDiskOperations, 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)

System_CAPS_pubmethodSystem_CAPS_static UpdateDataDiskAsync(IVirtualMachineDiskOperations, 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)

System_CAPS_pubmethodSystem_CAPS_static UpdateDisk(IVirtualMachineDiskOperations, 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)

System_CAPS_pubmethodSystem_CAPS_static UpdateDiskAsync(IVirtualMachineDiskOperations, 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)

Remarks

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

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Management.Compute Namespace

Return to top