Share via


VirtualMachinesOperationsExtensions Class

Definition

Extension methods for VirtualMachinesOperations.

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

Methods

AssessPatches(IVirtualMachinesOperations, String, String)

Assess patches on the VM.

AssessPatchesAsync(IVirtualMachinesOperations, String, String, CancellationToken)

Assess patches on the VM.

BeginAssessPatches(IVirtualMachinesOperations, String, String)

Assess patches on the VM.

BeginAssessPatchesAsync(IVirtualMachinesOperations, String, String, CancellationToken)

Assess patches on the VM.

BeginCapture(IVirtualMachinesOperations, String, String, VirtualMachineCaptureParameters)

Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs.

BeginCaptureAsync(IVirtualMachinesOperations, String, String, VirtualMachineCaptureParameters, CancellationToken)

Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs.

BeginConvertToManagedDisks(IVirtualMachinesOperations, String, String)

Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.

BeginConvertToManagedDisksAsync(IVirtualMachinesOperations, String, String, CancellationToken)

Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.

BeginCreateOrUpdate(IVirtualMachinesOperations, String, String, VirtualMachine)

The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.

BeginCreateOrUpdateAsync(IVirtualMachinesOperations, String, String, VirtualMachine, CancellationToken)

The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.

BeginDeallocate(IVirtualMachinesOperations, String, String, Nullable<Boolean>)

Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.

BeginDeallocateAsync(IVirtualMachinesOperations, String, String, Nullable<Boolean>, CancellationToken)

Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.

BeginDelete(IVirtualMachinesOperations, String, String, Nullable<Boolean>)

The operation to delete a virtual machine.

BeginDeleteAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to delete a virtual machine.

BeginDeleteAsync(IVirtualMachinesOperations, String, String, Nullable<Boolean>, CancellationToken)

The operation to delete a virtual machine.

BeginDeleteAsync(IVirtualMachinesOperations, String, String)

The operation to delete a virtual machine.

BeginInstallPatches(IVirtualMachinesOperations, String, String, VirtualMachineInstallPatchesParameters)

Installs patches on the VM.

BeginInstallPatchesAsync(IVirtualMachinesOperations, String, String, VirtualMachineInstallPatchesParameters, CancellationToken)

Installs patches on the VM.

BeginPerformMaintenance(IVirtualMachinesOperations, String, String)

The operation to perform maintenance on a virtual machine.

BeginPerformMaintenanceAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to perform maintenance on a virtual machine.

BeginPowerOff(IVirtualMachinesOperations, String, String, Nullable<Boolean>)

The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.

BeginPowerOffAsync(IVirtualMachinesOperations, String, String, Nullable<Boolean>, CancellationToken)

The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.

BeginReapply(IVirtualMachinesOperations, String, String)

The operation to reapply a virtual machine's state.

BeginReapplyAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to reapply a virtual machine's state.

BeginRedeploy(IVirtualMachinesOperations, String, String)

Shuts down the virtual machine, moves it to a new node, and powers it back on.

BeginRedeployAsync(IVirtualMachinesOperations, String, String, CancellationToken)

Shuts down the virtual machine, moves it to a new node, and powers it back on.

BeginReimage(IVirtualMachinesOperations, String, String, Nullable<Boolean>)

Reimages the virtual machine which has an ephemeral OS disk back to its initial state.

BeginReimage(IVirtualMachinesOperations, String, String, VirtualMachineReimageParameters)

Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.

BeginReimageAsync(IVirtualMachinesOperations, String, String, Nullable<Boolean>, CancellationToken)

Reimages the virtual machine which has an ephemeral OS disk back to its initial state.

BeginReimageAsync(IVirtualMachinesOperations, String, String, VirtualMachineReimageParameters, CancellationToken)

Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.

BeginRestart(IVirtualMachinesOperations, String, String)

The operation to restart a virtual machine.

BeginRestartAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to restart a virtual machine.

BeginRunCommand(IVirtualMachinesOperations, String, String, RunCommandInput)

Run command on the VM.

BeginRunCommandAsync(IVirtualMachinesOperations, String, String, RunCommandInput, CancellationToken)

Run command on the VM.

BeginStart(IVirtualMachinesOperations, String, String)

The operation to start a virtual machine.

BeginStartAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to start a virtual machine.

BeginUpdate(IVirtualMachinesOperations, String, String, VirtualMachineUpdate)

The operation to update a virtual machine.

BeginUpdateAsync(IVirtualMachinesOperations, String, String, VirtualMachineUpdate, CancellationToken)

The operation to update a virtual machine.

Capture(IVirtualMachinesOperations, String, String, VirtualMachineCaptureParameters)

Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs.

CaptureAsync(IVirtualMachinesOperations, String, String, VirtualMachineCaptureParameters, CancellationToken)

Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to create similar VMs.

ConvertToManagedDisks(IVirtualMachinesOperations, String, String)

Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.

ConvertToManagedDisksAsync(IVirtualMachinesOperations, String, String, CancellationToken)

Converts virtual machine disks from blob-based to managed disks. Virtual machine must be stop-deallocated before invoking this operation.

CreateOrUpdate(IVirtualMachinesOperations, String, String, VirtualMachine)

The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.

CreateOrUpdateAsync(IVirtualMachinesOperations, String, String, VirtualMachine, CancellationToken)

The operation to create or update a virtual machine. Please note some properties can be set only during virtual machine creation.

Deallocate(IVirtualMachinesOperations, String, String, Nullable<Boolean>)

Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.

DeallocateAsync(IVirtualMachinesOperations, String, String, Nullable<Boolean>, CancellationToken)

Shuts down the virtual machine and releases the compute resources. You are not billed for the compute resources that this virtual machine uses.

Delete(IVirtualMachinesOperations, String, String, Nullable<Boolean>)

The operation to delete a virtual machine.

DeleteAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to delete a virtual machine.

DeleteAsync(IVirtualMachinesOperations, String, String, Nullable<Boolean>, CancellationToken)

The operation to delete a virtual machine.

DeleteAsync(IVirtualMachinesOperations, String, String)

The operation to delete a virtual machine.

Generalize(IVirtualMachinesOperations, String, String)

Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. For Windows, please refer to Create a managed image of a generalized VM in Azure. For Linux, please refer to How to create an image of a virtual machine or VHD.

GeneralizeAsync(IVirtualMachinesOperations, String, String, CancellationToken)

Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual machine before performing this operation. For Windows, please refer to Create a managed image of a generalized VM in Azure. For Linux, please refer to How to create an image of a virtual machine or VHD.

Get(IVirtualMachinesOperations, String, String, Nullable<InstanceViewTypes>)

Retrieves information about the model view or the instance view of a virtual machine.

GetAsync(IVirtualMachinesOperations, String, String, Nullable<InstanceViewTypes>, CancellationToken)

Retrieves information about the model view or the instance view of a virtual machine.

InstallPatches(IVirtualMachinesOperations, String, String, VirtualMachineInstallPatchesParameters)

Installs patches on the VM.

InstallPatchesAsync(IVirtualMachinesOperations, String, String, VirtualMachineInstallPatchesParameters, CancellationToken)

Installs patches on the VM.

InstanceView(IVirtualMachinesOperations, String, String)

Retrieves information about the run-time state of a virtual machine.

InstanceViewAsync(IVirtualMachinesOperations, String, String, CancellationToken)

Retrieves information about the run-time state of a virtual machine.

List(IVirtualMachinesOperations, String, String, String)

Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines.

ListAll(IVirtualMachinesOperations, String, String, String)

Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.

ListAllAsync(IVirtualMachinesOperations, String, CancellationToken)

Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.

ListAllAsync(IVirtualMachinesOperations, String, String, String, CancellationToken)

Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.

ListAllNext(IVirtualMachinesOperations, String)

Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.

ListAllNextAsync(IVirtualMachinesOperations, String, CancellationToken)

Lists all of the virtual machines in the specified subscription. Use the nextLink property in the response to get the next page of virtual machines.

ListAsync(IVirtualMachinesOperations, String, CancellationToken)

Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines.

ListAsync(IVirtualMachinesOperations, String, String, String, CancellationToken)

Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines.

ListAvailableSizes(IVirtualMachinesOperations, String, String)

Lists all available virtual machine sizes to which the specified virtual machine can be resized.

ListAvailableSizesAsync(IVirtualMachinesOperations, String, String, CancellationToken)

Lists all available virtual machine sizes to which the specified virtual machine can be resized.

ListByLocation(IVirtualMachinesOperations, String)

Gets all the virtual machines under the specified subscription for the specified location.

ListByLocationAsync(IVirtualMachinesOperations, String, CancellationToken)

Gets all the virtual machines under the specified subscription for the specified location.

ListByLocationNext(IVirtualMachinesOperations, String)

Gets all the virtual machines under the specified subscription for the specified location.

ListByLocationNextAsync(IVirtualMachinesOperations, String, CancellationToken)

Gets all the virtual machines under the specified subscription for the specified location.

ListNext(IVirtualMachinesOperations, String)

Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines.

ListNextAsync(IVirtualMachinesOperations, String, CancellationToken)

Lists all of the virtual machines in the specified resource group. Use the nextLink property in the response to get the next page of virtual machines.

PerformMaintenance(IVirtualMachinesOperations, String, String)

The operation to perform maintenance on a virtual machine.

PerformMaintenanceAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to perform maintenance on a virtual machine.

PowerOff(IVirtualMachinesOperations, String, String, Nullable<Boolean>)

The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.

PowerOffAsync(IVirtualMachinesOperations, String, String, Nullable<Boolean>, CancellationToken)

The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are still charged for this virtual machine.

Reapply(IVirtualMachinesOperations, String, String)

The operation to reapply a virtual machine's state.

ReapplyAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to reapply a virtual machine's state.

Redeploy(IVirtualMachinesOperations, String, String)

Shuts down the virtual machine, moves it to a new node, and powers it back on.

RedeployAsync(IVirtualMachinesOperations, String, String, CancellationToken)

Shuts down the virtual machine, moves it to a new node, and powers it back on.

Reimage(IVirtualMachinesOperations, String, String, Nullable<Boolean>)

Reimages the virtual machine which has an ephemeral OS disk back to its initial state.

Reimage(IVirtualMachinesOperations, String, String, VirtualMachineReimageParameters)

Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.

ReimageAsync(IVirtualMachinesOperations, String, String, Nullable<Boolean>, CancellationToken)

Reimages the virtual machine which has an ephemeral OS disk back to its initial state.

ReimageAsync(IVirtualMachinesOperations, String, String, VirtualMachineReimageParameters, CancellationToken)

Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for virtual machines who have a ephemeral OS disk the virtual machine is reset to initial state. NOTE: The retaining of old OS disk depends on the value of deleteOption of OS disk. If deleteOption is detach, the old OS disk will be preserved after reimage. If deleteOption is delete, the old OS disk will be deleted after reimage. The deleteOption of the OS disk should be updated accordingly before performing the reimage.

Restart(IVirtualMachinesOperations, String, String)

The operation to restart a virtual machine.

RestartAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to restart a virtual machine.

RetrieveBootDiagnosticsData(IVirtualMachinesOperations, String, String, Nullable<Int32>)

The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs.

RetrieveBootDiagnosticsDataAsync(IVirtualMachinesOperations, String, String, Nullable<Int32>, CancellationToken)

The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs.

RunCommand(IVirtualMachinesOperations, String, String, RunCommandInput)

Run command on the VM.

RunCommandAsync(IVirtualMachinesOperations, String, String, RunCommandInput, CancellationToken)

Run command on the VM.

SimulateEviction(IVirtualMachinesOperations, String, String)

The operation to simulate the eviction of spot virtual machine.

SimulateEvictionAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to simulate the eviction of spot virtual machine.

Start(IVirtualMachinesOperations, String, String)

The operation to start a virtual machine.

StartAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to start a virtual machine.

Update(IVirtualMachinesOperations, String, String, VirtualMachineUpdate)

The operation to update a virtual machine.

UpdateAsync(IVirtualMachinesOperations, String, String, VirtualMachineUpdate, CancellationToken)

The operation to update a virtual machine.

Applies to