Udostępnij za pośrednictwem


VirtualMachineOperationsExtensions Class

Definition

The Service Management API provides programmatic access to much of the functionality available through the Management Portal. The Service Management API is a REST API. All API operations are performed over SSL, and are mutually authenticated using X.509 v3 certificates. (see http://msdn.microsoft.com/en-us/library/windowsazure/ee460799.aspx for more information)

public static class VirtualMachineOperationsExtensions
type VirtualMachineOperationsExtensions = class
Public Module VirtualMachineOperationsExtensions
Inheritance
VirtualMachineOperationsExtensions

Methods

BeginCapturingOSImage(IVirtualMachineOperations, String, String, String, VirtualMachineCaptureOSImageParameters)

The Begin Capturing Role operation creates a copy of the operating system virtual hard disk (VHD) that is deployed in the virtual machine, saves the VHD copy in the same storage location as the operating system VHD, and registers the copy as an image in your image gallery. From the captured image, you can create additional customized virtual machines. For more information about images and disks, see Manage Disks and Images at http://msdn.microsoft.com/en-us/library/windowsazure/jj672979.aspx. For more information about capturing images, see How to Capture an Image of a Virtual Machine Running Windows Server 2008 R2 at http://www.windowsazure.com/en-us/documentation/articles/virtual-machines-capture-image-windows-server/ or How to Capture an Image of a Virtual Machine Running Linux at http://www.windowsazure.com/en-us/documentation/articles/virtual-machines-linux-capture-image/. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157201.aspx for more information)

BeginCapturingOSImageAsync(IVirtualMachineOperations, String, String, String, VirtualMachineCaptureOSImageParameters)

The Begin Capturing Role operation creates a copy of the operating system virtual hard disk (VHD) that is deployed in the virtual machine, saves the VHD copy in the same storage location as the operating system VHD, and registers the copy as an image in your image gallery. From the captured image, you can create additional customized virtual machines. For more information about images and disks, see Manage Disks and Images at http://msdn.microsoft.com/en-us/library/windowsazure/jj672979.aspx. For more information about capturing images, see How to Capture an Image of a Virtual Machine Running Windows Server 2008 R2 at http://www.windowsazure.com/en-us/documentation/articles/virtual-machines-capture-image-windows-server/ or How to Capture an Image of a Virtual Machine Running Linux at http://www.windowsazure.com/en-us/documentation/articles/virtual-machines-linux-capture-image/. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157201.aspx for more information)

BeginCapturingVMImage(IVirtualMachineOperations, String, String, String, VirtualMachineCaptureVMImageParameters)

Begin capturing role as VM template.

BeginCapturingVMImageAsync(IVirtualMachineOperations, String, String, String, VirtualMachineCaptureVMImageParameters)

Begin capturing role as VM template.

BeginCreating(IVirtualMachineOperations, String, String, VirtualMachineCreateParameters)

The Begin Creating Role operation adds a virtual machine to an existing deployment. You can refer to the OSDisk in the Add Role operation in the following ways: Platform/User Image - Set the SourceImageName to a platform or user image. You can optionally specify the DiskName and MediaLink values as part the operation to control the name and location of target disk. When DiskName and MediaLink are specified in this mode, they must not already exist in the system, otherwise a conflict fault is returned; UserDisk - Set DiskName to a user supplied image in image repository. SourceImageName must be set to NULL. All other properties are ignored; or Blob in a Storage Account - Set MediaLink to a blob containing the image. SourceImageName and DiskName are set to NULL. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157186.aspx for more information)

BeginCreatingAsync(IVirtualMachineOperations, String, String, VirtualMachineCreateParameters)

The Begin Creating Role operation adds a virtual machine to an existing deployment. You can refer to the OSDisk in the Add Role operation in the following ways: Platform/User Image - Set the SourceImageName to a platform or user image. You can optionally specify the DiskName and MediaLink values as part the operation to control the name and location of target disk. When DiskName and MediaLink are specified in this mode, they must not already exist in the system, otherwise a conflict fault is returned; UserDisk - Set DiskName to a user supplied image in image repository. SourceImageName must be set to NULL. All other properties are ignored; or Blob in a Storage Account - Set MediaLink to a blob containing the image. SourceImageName and DiskName are set to NULL. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157186.aspx for more information)

BeginCreatingDeployment(IVirtualMachineOperations, String, VirtualMachineCreateDeploymentParameters)

The Begin Creating Virtual Machine Deployment operation provisions a virtual machine based on the supplied configuration. When you create a deployment of a virtual machine, you should make sure that the cloud service and the disk or image that you use are located in the same region. For example, if the cloud service was created in the West US region, the disk or image that you use should also be located in a storage account in the West US region. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157194.aspx for more information)

BeginCreatingDeploymentAsync(IVirtualMachineOperations, String, VirtualMachineCreateDeploymentParameters)

The Begin Creating Virtual Machine Deployment operation provisions a virtual machine based on the supplied configuration. When you create a deployment of a virtual machine, you should make sure that the cloud service and the disk or image that you use are located in the same region. For example, if the cloud service was created in the West US region, the disk or image that you use should also be located in a storage account in the West US region. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157194.aspx for more information)

BeginDeleting(IVirtualMachineOperations, String, String, String, Boolean)

The Begin Deleting Role operation deletes the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157184.aspx for more information)

BeginDeletingAsync(IVirtualMachineOperations, String, String, String, Boolean)

The Begin Deleting Role operation deletes the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157184.aspx for more information)

BeginInitiatingMaintenance(IVirtualMachineOperations, String, String, String)

The Begin Initiating Maintenance on role operation initiates maintenance on the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157197.aspx for more information)

BeginInitiatingMaintenanceAsync(IVirtualMachineOperations, String, String, String)

The Begin Initiating Maintenance on role operation initiates maintenance on the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157197.aspx for more information)

BeginRedeploying(IVirtualMachineOperations, String, String, String)

The Begin Redeploying role operation redeploys the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157197.aspx for more information)

BeginRedeployingAsync(IVirtualMachineOperations, String, String, String)

The Begin Redeploying role operation redeploys the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157197.aspx for more information)

BeginRestarting(IVirtualMachineOperations, String, String, String)

The Begin Restarting role operation restarts the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157197.aspx for more information)

BeginRestartingAsync(IVirtualMachineOperations, String, String, String)

The Begin Restarting role operation restarts the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157197.aspx for more information)

BeginShutdown(IVirtualMachineOperations, String, String, String, VirtualMachineShutdownParameters)

The Shutdown Role operation shuts down the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157195.aspx for more information)

BeginShutdownAsync(IVirtualMachineOperations, String, String, String, VirtualMachineShutdownParameters)

The Shutdown Role operation shuts down the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157195.aspx for more information)

BeginShuttingDownRoles(IVirtualMachineOperations, String, String, VirtualMachineShutdownRolesParameters)

The Begin Shutting Down Roles operation stops the specified set of virtual machines. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn469421.aspx for more information)

BeginShuttingDownRolesAsync(IVirtualMachineOperations, String, String, VirtualMachineShutdownRolesParameters)

The Begin Shutting Down Roles operation stops the specified set of virtual machines. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn469421.aspx for more information)

BeginStarting(IVirtualMachineOperations, String, String, String)

The Begin Starting Role operation starts the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157189.aspx for more information)

BeginStartingAsync(IVirtualMachineOperations, String, String, String)

The Begin Starting Role operation starts the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157189.aspx for more information)

BeginStartingRoles(IVirtualMachineOperations, String, String, VirtualMachineStartRolesParameters)

The Begin Starting Roles operation starts the specified set of virtual machines. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn469419.aspx for more information)

BeginStartingRolesAsync(IVirtualMachineOperations, String, String, VirtualMachineStartRolesParameters)

The Begin Starting Roles operation starts the specified set of virtual machines. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn469419.aspx for more information)

BeginUpdating(IVirtualMachineOperations, String, String, String, VirtualMachineUpdateParameters)

The Begin Updating Role operation adds a virtual machine to an existing deployment. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157187.aspx for more information)

BeginUpdatingAsync(IVirtualMachineOperations, String, String, String, VirtualMachineUpdateParameters)

The Begin Updating Role operation adds a virtual machine to an existing deployment. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157187.aspx for more information)

BeginUpdatingLoadBalancedEndpointSet(IVirtualMachineOperations, String, String, VirtualMachineUpdateLoadBalancedSetParameters)

The Begin Updating Load Balanced Endpoint Set operation changes the specified load-balanced InputEndpoints on all the roles of an Infrastructure as a Service deployment. Non-load-balanced endpoints must be changed using UpdateRole. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn469417.aspx for more information)

BeginUpdatingLoadBalancedEndpointSetAsync(IVirtualMachineOperations, String, String, VirtualMachineUpdateLoadBalancedSetParameters)

The Begin Updating Load Balanced Endpoint Set operation changes the specified load-balanced InputEndpoints on all the roles of an Infrastructure as a Service deployment. Non-load-balanced endpoints must be changed using UpdateRole. (see http://msdn.microsoft.com/en-us/library/windowsazure/dn469417.aspx for more information)

CaptureOSImage(IVirtualMachineOperations, String, String, String, VirtualMachineCaptureOSImageParameters)

The Capture Role operation creates a copy of the operating system virtual hard disk (VHD) that is deployed in the virtual machine, saves the VHD copy in the same storage location as the operating system VHD, and registers the copy as an image in your image gallery. From the captured image, you can create additional customized virtual machines. For more information about images and disks, see Manage Disks and Images at http://msdn.microsoft.com/en-us/library/windowsazure/jj672979.aspx. For more information about capturing images, see How to Capture an Image of a Virtual Machine Running Windows Server 2008 R2 at http://www.windowsazure.com/en-us/documentation/articles/virtual-machines-capture-image-windows-server/ or How to Capture an Image of a Virtual Machine Running Linux at http://www.windowsazure.com/en-us/documentation/articles/virtual-machines-linux-capture-image/. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157201.aspx for more information)

CaptureOSImageAsync(IVirtualMachineOperations, String, String, String, VirtualMachineCaptureOSImageParameters)

The Capture Role operation creates a copy of the operating system virtual hard disk (VHD) that is deployed in the virtual machine, saves the VHD copy in the same storage location as the operating system VHD, and registers the copy as an image in your image gallery. From the captured image, you can create additional customized virtual machines. For more information about images and disks, see Manage Disks and Images at http://msdn.microsoft.com/en-us/library/windowsazure/jj672979.aspx. For more information about capturing images, see How to Capture an Image of a Virtual Machine Running Windows Server 2008 R2 at http://www.windowsazure.com/en-us/documentation/articles/virtual-machines-capture-image-windows-server/ or How to Capture an Image of a Virtual Machine Running Linux at http://www.windowsazure.com/en-us/documentation/articles/virtual-machines-linux-capture-image/. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157201.aspx for more information)

CaptureVMImage(IVirtualMachineOperations, String, String, String, VirtualMachineCaptureVMImageParameters)

Capture role as VM template.

CaptureVMImageAsync(IVirtualMachineOperations, String, String, String, VirtualMachineCaptureVMImageParameters)

Capture role as VM template.

Create(IVirtualMachineOperations, String, String, VirtualMachineCreateParameters)

The Create Role operation adds a virtual machine to an existing deployment. You can refer to the OSDisk in the Add Role operation in the following ways: Platform/User Image - Set the SourceImageName to a platform or user image. You can optionally specify the DiskName and MediaLink values as part the operation to control the name and location of target disk. When DiskName and MediaLink are specified in this mode, they must not already exist in the system, otherwise a conflict fault is returned; UserDisk - Set DiskName to a user supplied image in image repository. SourceImageName must be set to NULL. All other properties are ignored; or Blob in a Storage Account - Set MediaLink to a blob containing the image. SourceImageName and DiskName are set to NULL. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157186.aspx for more information)

CreateAsync(IVirtualMachineOperations, String, String, VirtualMachineCreateParameters)

The Create Role operation adds a virtual machine to an existing deployment. You can refer to the OSDisk in the Add Role operation in the following ways: Platform/User Image - Set the SourceImageName to a platform or user image. You can optionally specify the DiskName and MediaLink values as part the operation to control the name and location of target disk. When DiskName and MediaLink are specified in this mode, they must not already exist in the system, otherwise a conflict fault is returned; UserDisk - Set DiskName to a user supplied image in image repository. SourceImageName must be set to NULL. All other properties are ignored; or Blob in a Storage Account - Set MediaLink to a blob containing the image. SourceImageName and DiskName are set to NULL. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157186.aspx for more information)

CreateDeployment(IVirtualMachineOperations, String, VirtualMachineCreateDeploymentParameters)

The Create Virtual Machine Deployment operation provisions a virtual machine based on the supplied configuration. When you create a deployment of a virtual machine, you should make sure that the cloud service and the disk or image that you use are located in the same region. For example, if the cloud service was created in the West US region, the disk or image that you use should also be located in a storage account in the West US region. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157194.aspx for more information)

CreateDeploymentAsync(IVirtualMachineOperations, String, VirtualMachineCreateDeploymentParameters)

The Create Virtual Machine Deployment operation provisions a virtual machine based on the supplied configuration. When you create a deployment of a virtual machine, you should make sure that the cloud service and the disk or image that you use are located in the same region. For example, if the cloud service was created in the West US region, the disk or image that you use should also be located in a storage account in the West US region. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157194.aspx for more information)

Delete(IVirtualMachineOperations, String, String, String, Boolean)

The Delete Role operation deletes the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157184.aspx for more information)

DeleteAsync(IVirtualMachineOperations, String, String, String, Boolean)

The Delete Role operation deletes the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157184.aspx for more information)

Get(IVirtualMachineOperations, String, String, String)

The Get Role operation retrieves information about the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157193.aspx for more information)

GetAsync(IVirtualMachineOperations, String, String, String)

The Get Role operation retrieves information about the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157193.aspx for more information)

GetRemoteDesktopFile(IVirtualMachineOperations, String, String, String)

The Download RDP file operation retrieves the Remote Desktop Protocol configuration file from the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157183.aspx for more information)

GetRemoteDesktopFileAsync(IVirtualMachineOperations, String, String, String)

The Download RDP file operation retrieves the Remote Desktop Protocol configuration file from the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157183.aspx for more information)

InitiateMaintenance(IVirtualMachineOperations, String, String, String)

The Initiate Maintenance on role operation initiates maintenance on the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157197.aspx for more information)

InitiateMaintenanceAsync(IVirtualMachineOperations, String, String, String)

The Initiate Maintenance on role operation initiates maintenance on the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157197.aspx for more information)

Redeploy(IVirtualMachineOperations, String, String, String)

The Redeploy role operation redeploys the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157197.aspx for more information)

RedeployAsync(IVirtualMachineOperations, String, String, String)

The Redeploy role operation redeploys the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157197.aspx for more information)

Restart(IVirtualMachineOperations, String, String, String)

The Restart role operation restarts the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157197.aspx for more information)

RestartAsync(IVirtualMachineOperations, String, String, String)

The Restart role operation restarts the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157197.aspx for more information)

Shutdown(IVirtualMachineOperations, String, String, String, VirtualMachineShutdownParameters)

The Shutdown Role operation shuts down the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157195.aspx for more information)

ShutdownAsync(IVirtualMachineOperations, String, String, String, VirtualMachineShutdownParameters)

The Shutdown Role operation shuts down the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157195.aspx for more information)

ShutdownRoles(IVirtualMachineOperations, String, String, VirtualMachineShutdownRolesParameters)

The Shutdown Roles operation stops the specified set of virtual machines.

ShutdownRolesAsync(IVirtualMachineOperations, String, String, VirtualMachineShutdownRolesParameters)

The Shutdown Roles operation stops the specified set of virtual machines.

Start(IVirtualMachineOperations, String, String, String)

The Start Role operation starts the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157189.aspx for more information)

StartAsync(IVirtualMachineOperations, String, String, String)

The Start Role operation starts the specified virtual machine. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157189.aspx for more information)

StartRoles(IVirtualMachineOperations, String, String, VirtualMachineStartRolesParameters)

The Start Roles operation starts the specified set of virtual machines.

StartRolesAsync(IVirtualMachineOperations, String, String, VirtualMachineStartRolesParameters)

The Start Roles operation starts the specified set of virtual machines.

Update(IVirtualMachineOperations, String, String, String, VirtualMachineUpdateParameters)

The Update Role operation adds a virtual machine to an existing deployment. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157187.aspx for more information)

UpdateAsync(IVirtualMachineOperations, String, String, String, VirtualMachineUpdateParameters)

The Update Role operation adds a virtual machine to an existing deployment. (see http://msdn.microsoft.com/en-us/library/windowsazure/jj157187.aspx for more information)

UpdateLoadBalancedEndpointSet(IVirtualMachineOperations, String, String, VirtualMachineUpdateLoadBalancedSetParameters)

The Update Load Balanced Endpoint Set operation changes the specified load-balanced InputEndpoints on all the roles of an Infrastructure as a Service deployment. Non-load-balanced endpoints must be changed using UpdateRole.

UpdateLoadBalancedEndpointSetAsync(IVirtualMachineOperations, String, String, VirtualMachineUpdateLoadBalancedSetParameters)

The Update Load Balanced Endpoint Set operation changes the specified load-balanced InputEndpoints on all the roles of an Infrastructure as a Service deployment. Non-load-balanced endpoints must be changed using UpdateRole.

Applies to