IVirtualMachinesOperations IVirtualMachinesOperations IVirtualMachinesOperations Interface

Definition

VirtualMachinesOperations operations.

public interface IVirtualMachinesOperations
type IVirtualMachinesOperations = interface
Public Interface IVirtualMachinesOperations

Methods

BeginCaptureWithHttpMessagesAsync(String, String, VirtualMachineCaptureParameters, Dictionary<String,List<String>>, CancellationToken) BeginCaptureWithHttpMessagesAsync(String, String, VirtualMachineCaptureParameters, Dictionary<String,List<String>>, CancellationToken) BeginCaptureWithHttpMessagesAsync(String, String, VirtualMachineCaptureParameters, Dictionary<String,List<String>>, CancellationToken)

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

BeginConvertToManagedDisksWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) BeginConvertToManagedDisksWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) BeginConvertToManagedDisksWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

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

BeginCreateOrUpdateWithHttpMessagesAsync(String, String, VirtualMachine, Dictionary<String,List<String>>, CancellationToken) BeginCreateOrUpdateWithHttpMessagesAsync(String, String, VirtualMachine, Dictionary<String,List<String>>, CancellationToken) BeginCreateOrUpdateWithHttpMessagesAsync(String, String, VirtualMachine, Dictionary<String,List<String>>, CancellationToken)

The operation to create or update a virtual machine.

BeginDeallocateWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) BeginDeallocateWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) BeginDeallocateWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

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

BeginDeleteWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) BeginDeleteWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) BeginDeleteWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

The operation to delete a virtual machine.

BeginPerformMaintenanceWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) BeginPerformMaintenanceWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) BeginPerformMaintenanceWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

The operation to perform maintenance on a virtual machine.

BeginPowerOffWithHttpMessagesAsync(String, String, Nullable<Boolean>, Dictionary<String,List<String>>, CancellationToken) BeginPowerOffWithHttpMessagesAsync(String, String, Nullable<Boolean>, Dictionary<String,List<String>>, CancellationToken) BeginPowerOffWithHttpMessagesAsync(String, String, Nullable<Boolean>, Dictionary<String,List<String>>, 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.

BeginRedeployWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) BeginRedeployWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) BeginRedeployWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

The operation to redeploy a virtual machine.

BeginReimageWithHttpMessagesAsync(String, String, Nullable<Boolean>, Dictionary<String,List<String>>, CancellationToken) BeginReimageWithHttpMessagesAsync(String, String, Nullable<Boolean>, Dictionary<String,List<String>>, CancellationToken) BeginReimageWithHttpMessagesAsync(String, String, Nullable<Boolean>, Dictionary<String,List<String>>, CancellationToken)

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

BeginRestartWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) BeginRestartWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) BeginRestartWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

The operation to restart a virtual machine.

BeginRunCommandWithHttpMessagesAsync(String, String, RunCommandInput, Dictionary<String,List<String>>, CancellationToken) BeginRunCommandWithHttpMessagesAsync(String, String, RunCommandInput, Dictionary<String,List<String>>, CancellationToken) BeginRunCommandWithHttpMessagesAsync(String, String, RunCommandInput, Dictionary<String,List<String>>, CancellationToken)

Run command on the VM.

BeginStartWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) BeginStartWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) BeginStartWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

The operation to start a virtual machine.

BeginUpdateWithHttpMessagesAsync(String, String, VirtualMachineUpdate, Dictionary<String,List<String>>, CancellationToken) BeginUpdateWithHttpMessagesAsync(String, String, VirtualMachineUpdate, Dictionary<String,List<String>>, CancellationToken) BeginUpdateWithHttpMessagesAsync(String, String, VirtualMachineUpdate, Dictionary<String,List<String>>, CancellationToken)

The operation to update a virtual machine.

CaptureWithHttpMessagesAsync(String, String, VirtualMachineCaptureParameters, Dictionary<String,List<String>>, CancellationToken) CaptureWithHttpMessagesAsync(String, String, VirtualMachineCaptureParameters, Dictionary<String,List<String>>, CancellationToken) CaptureWithHttpMessagesAsync(String, String, VirtualMachineCaptureParameters, Dictionary<String,List<String>>, CancellationToken)

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

ConvertToManagedDisksWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) ConvertToManagedDisksWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) ConvertToManagedDisksWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

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

CreateOrUpdateWithHttpMessagesAsync(String, String, VirtualMachine, Dictionary<String,List<String>>, CancellationToken) CreateOrUpdateWithHttpMessagesAsync(String, String, VirtualMachine, Dictionary<String,List<String>>, CancellationToken) CreateOrUpdateWithHttpMessagesAsync(String, String, VirtualMachine, Dictionary<String,List<String>>, CancellationToken)

The operation to create or update a virtual machine.

DeallocateWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) DeallocateWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) DeallocateWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

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

DeleteWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) DeleteWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) DeleteWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

The operation to delete a virtual machine.

GeneralizeWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) GeneralizeWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) GeneralizeWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

Sets the state of the virtual machine to generalized.

GetWithHttpMessagesAsync(String, String, Nullable<InstanceViewTypes>, Dictionary<String,List<String>>, CancellationToken) GetWithHttpMessagesAsync(String, String, Nullable<InstanceViewTypes>, Dictionary<String,List<String>>, CancellationToken) GetWithHttpMessagesAsync(String, String, Nullable<InstanceViewTypes>, Dictionary<String,List<String>>, CancellationToken)

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

InstanceViewWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) InstanceViewWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) InstanceViewWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

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

ListAllNextWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken) ListAllNextWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken) ListAllNextWithHttpMessagesAsync(String, Dictionary<String,List<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.

ListAllWithHttpMessagesAsync(Dictionary<String,List<String>>, CancellationToken) ListAllWithHttpMessagesAsync(Dictionary<String,List<String>>, CancellationToken) ListAllWithHttpMessagesAsync(Dictionary<String,List<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.

ListAvailableSizesWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) ListAvailableSizesWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) ListAvailableSizesWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

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

ListByLocationNextWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken) ListByLocationNextWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken) ListByLocationNextWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken)

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

ListByLocationWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken) ListByLocationWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken) ListByLocationWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken)

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

ListNextWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken) ListNextWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken) ListNextWithHttpMessagesAsync(String, Dictionary<String,List<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.

ListWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken) ListWithHttpMessagesAsync(String, Dictionary<String,List<String>>, CancellationToken) ListWithHttpMessagesAsync(String, Dictionary<String,List<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.

PerformMaintenanceWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) PerformMaintenanceWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) PerformMaintenanceWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

The operation to perform maintenance on a virtual machine.

PowerOffWithHttpMessagesAsync(String, String, Nullable<Boolean>, Dictionary<String,List<String>>, CancellationToken) PowerOffWithHttpMessagesAsync(String, String, Nullable<Boolean>, Dictionary<String,List<String>>, CancellationToken) PowerOffWithHttpMessagesAsync(String, String, Nullable<Boolean>, Dictionary<String,List<String>>, 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.

RedeployWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) RedeployWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) RedeployWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

The operation to redeploy a virtual machine.

ReimageWithHttpMessagesAsync(String, String, Nullable<Boolean>, Dictionary<String,List<String>>, CancellationToken) ReimageWithHttpMessagesAsync(String, String, Nullable<Boolean>, Dictionary<String,List<String>>, CancellationToken) ReimageWithHttpMessagesAsync(String, String, Nullable<Boolean>, Dictionary<String,List<String>>, CancellationToken)

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

RestartWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) RestartWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) RestartWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

The operation to restart a virtual machine.

RunCommandWithHttpMessagesAsync(String, String, RunCommandInput, Dictionary<String,List<String>>, CancellationToken) RunCommandWithHttpMessagesAsync(String, String, RunCommandInput, Dictionary<String,List<String>>, CancellationToken) RunCommandWithHttpMessagesAsync(String, String, RunCommandInput, Dictionary<String,List<String>>, CancellationToken)

Run command on the VM.

StartWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) StartWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken) StartWithHttpMessagesAsync(String, String, Dictionary<String,List<String>>, CancellationToken)

The operation to start a virtual machine.

UpdateWithHttpMessagesAsync(String, String, VirtualMachineUpdate, Dictionary<String,List<String>>, CancellationToken) UpdateWithHttpMessagesAsync(String, String, VirtualMachineUpdate, Dictionary<String,List<String>>, CancellationToken) UpdateWithHttpMessagesAsync(String, String, VirtualMachineUpdate, Dictionary<String,List<String>>, CancellationToken)

The operation to update a virtual machine.

Extension Methods

BeginCapture(IVirtualMachinesOperations, String, String, VirtualMachineCaptureParameters) BeginCapture(IVirtualMachinesOperations, String, String, VirtualMachineCaptureParameters) 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) BeginCaptureAsync(IVirtualMachinesOperations, String, String, VirtualMachineCaptureParameters, CancellationToken) 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) BeginConvertToManagedDisks(IVirtualMachinesOperations, String, String) 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) BeginConvertToManagedDisksAsync(IVirtualMachinesOperations, String, String, CancellationToken) 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) BeginCreateOrUpdate(IVirtualMachinesOperations, String, String, VirtualMachine) BeginCreateOrUpdate(IVirtualMachinesOperations, String, String, VirtualMachine)

The operation to create or update a virtual machine.

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

The operation to create or update a virtual machine.

BeginDeallocate(IVirtualMachinesOperations, String, String) BeginDeallocate(IVirtualMachinesOperations, String, String) BeginDeallocate(IVirtualMachinesOperations, String, String)

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, CancellationToken) BeginDeallocateAsync(IVirtualMachinesOperations, String, String, CancellationToken) BeginDeallocateAsync(IVirtualMachinesOperations, String, String, 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) BeginDelete(IVirtualMachinesOperations, String, String) BeginDelete(IVirtualMachinesOperations, String, String)

The operation to delete a virtual machine.

BeginDeleteAsync(IVirtualMachinesOperations, String, String, CancellationToken) BeginDeleteAsync(IVirtualMachinesOperations, String, String, CancellationToken) BeginDeleteAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to delete a virtual machine.

BeginPerformMaintenance(IVirtualMachinesOperations, String, String) BeginPerformMaintenance(IVirtualMachinesOperations, String, String) BeginPerformMaintenance(IVirtualMachinesOperations, String, String)

The operation to perform maintenance on a virtual machine.

BeginPerformMaintenanceAsync(IVirtualMachinesOperations, String, String, CancellationToken) BeginPerformMaintenanceAsync(IVirtualMachinesOperations, String, String, CancellationToken) BeginPerformMaintenanceAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to perform maintenance on a virtual machine.

BeginPowerOff(IVirtualMachinesOperations, String, String, Nullable<Boolean>) BeginPowerOff(IVirtualMachinesOperations, String, String, Nullable<Boolean>) 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) BeginPowerOffAsync(IVirtualMachinesOperations, String, String, Nullable<Boolean>, CancellationToken) 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.

BeginRedeploy(IVirtualMachinesOperations, String, String) BeginRedeploy(IVirtualMachinesOperations, String, String) BeginRedeploy(IVirtualMachinesOperations, String, String)

The operation to redeploy a virtual machine.

BeginRedeployAsync(IVirtualMachinesOperations, String, String, CancellationToken) BeginRedeployAsync(IVirtualMachinesOperations, String, String, CancellationToken) BeginRedeployAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to redeploy a virtual machine.

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

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

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

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

BeginRestart(IVirtualMachinesOperations, String, String) BeginRestart(IVirtualMachinesOperations, String, String) BeginRestart(IVirtualMachinesOperations, String, String)

The operation to restart a virtual machine.

BeginRestartAsync(IVirtualMachinesOperations, String, String, CancellationToken) BeginRestartAsync(IVirtualMachinesOperations, String, String, CancellationToken) BeginRestartAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to restart a virtual machine.

BeginRunCommand(IVirtualMachinesOperations, String, String, RunCommandInput) BeginRunCommand(IVirtualMachinesOperations, String, String, RunCommandInput) BeginRunCommand(IVirtualMachinesOperations, String, String, RunCommandInput)

Run command on the VM.

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

Run command on the VM.

BeginStart(IVirtualMachinesOperations, String, String) BeginStart(IVirtualMachinesOperations, String, String) BeginStart(IVirtualMachinesOperations, String, String)

The operation to start a virtual machine.

BeginStartAsync(IVirtualMachinesOperations, String, String, CancellationToken) BeginStartAsync(IVirtualMachinesOperations, String, String, CancellationToken) BeginStartAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to start a virtual machine.

BeginUpdate(IVirtualMachinesOperations, String, String, VirtualMachineUpdate) BeginUpdate(IVirtualMachinesOperations, String, String, VirtualMachineUpdate) BeginUpdate(IVirtualMachinesOperations, String, String, VirtualMachineUpdate)

The operation to update a virtual machine.

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

The operation to update a virtual machine.

Capture(IVirtualMachinesOperations, String, String, VirtualMachineCaptureParameters) Capture(IVirtualMachinesOperations, String, String, VirtualMachineCaptureParameters) Capture(IVirtualMachinesOperations, String, String, VirtualMachineCaptureParameters)

Here is content that is injected by the overwrite file method, so writers can add as much as they want to the generated API documentation in Markown format.


uid: Microsoft.Azure.Management.Compute.VirtualMachinesOperationsExtensions.Capture(Microsoft.Azure.Management.Compute.IVirtualMachinesOperations,System.String,System.String,Microsoft.Azure.Management.Compute.Models.VirtualMachineCaptureParameters) remarks: *content

The code below demonstrates how to call the Capture method using the Azure .NET SDK.

using Microsoft.Azure.Management.Compute;
using Microsoft.Azure.Management.Compute.Models;
using Microsoft.Rest;

namespace MyAzureVmClientApp
{
    class Program
    {
        static void Main(string[] args)
        {
            var token = "[Token Obtained from ADAL]";

            var credential = new TokenCredentials(token);

            var captureResponse = 
                new ComputeManagementClient(credential)
                .VirtualMachines
                    .Capture(
                        "myResourceGroup",
                        "myVmName",
                        new VirtualMachineCaptureParameters
                        {
                            DestinationContainerName = "myblobcontainer",
                            OverwriteVhds = true,
                            VhdPrefix = "backup"
                        });
        }
    }
}
CaptureAsync(IVirtualMachinesOperations, String, String, VirtualMachineCaptureParameters, CancellationToken) CaptureAsync(IVirtualMachinesOperations, String, String, VirtualMachineCaptureParameters, CancellationToken) 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) ConvertToManagedDisks(IVirtualMachinesOperations, String, String) 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) ConvertToManagedDisksAsync(IVirtualMachinesOperations, String, String, CancellationToken) 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) CreateOrUpdate(IVirtualMachinesOperations, String, String, VirtualMachine) CreateOrUpdate(IVirtualMachinesOperations, String, String, VirtualMachine)

The operation to create or update a virtual machine.

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

The operation to create or update a virtual machine.

Deallocate(IVirtualMachinesOperations, String, String) Deallocate(IVirtualMachinesOperations, String, String) Deallocate(IVirtualMachinesOperations, String, String)

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, CancellationToken) DeallocateAsync(IVirtualMachinesOperations, String, String, CancellationToken) DeallocateAsync(IVirtualMachinesOperations, String, String, 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) Delete(IVirtualMachinesOperations, String, String) Delete(IVirtualMachinesOperations, String, String)

The operation to delete a virtual machine.

DeleteAsync(IVirtualMachinesOperations, String, String, CancellationToken) DeleteAsync(IVirtualMachinesOperations, String, String, CancellationToken) DeleteAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to delete a virtual machine.

Generalize(IVirtualMachinesOperations, String, String) Generalize(IVirtualMachinesOperations, String, String) Generalize(IVirtualMachinesOperations, String, String)

Sets the state of the virtual machine to generalized.

GeneralizeAsync(IVirtualMachinesOperations, String, String, CancellationToken) GeneralizeAsync(IVirtualMachinesOperations, String, String, CancellationToken) GeneralizeAsync(IVirtualMachinesOperations, String, String, CancellationToken)

Sets the state of the virtual machine to generalized.

Get(IVirtualMachinesOperations, String, String, Nullable<InstanceViewTypes>) Get(IVirtualMachinesOperations, String, String, Nullable<InstanceViewTypes>) 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) GetAsync(IVirtualMachinesOperations, String, String, Nullable<InstanceViewTypes>, CancellationToken) GetAsync(IVirtualMachinesOperations, String, String, Nullable<InstanceViewTypes>, CancellationToken)

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

InstanceView(IVirtualMachinesOperations, String, String) InstanceView(IVirtualMachinesOperations, String, String) InstanceView(IVirtualMachinesOperations, String, String)

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

InstanceViewAsync(IVirtualMachinesOperations, String, String, CancellationToken) InstanceViewAsync(IVirtualMachinesOperations, String, String, CancellationToken) InstanceViewAsync(IVirtualMachinesOperations, String, String, CancellationToken)

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

List(IVirtualMachinesOperations, String) List(IVirtualMachinesOperations, String) List(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.

ListAll(IVirtualMachinesOperations) ListAll(IVirtualMachinesOperations) ListAll(IVirtualMachinesOperations)

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, CancellationToken) ListAllAsync(IVirtualMachinesOperations, CancellationToken) ListAllAsync(IVirtualMachinesOperations, 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) ListAllNext(IVirtualMachinesOperations, String) 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) ListAllNextAsync(IVirtualMachinesOperations, String, CancellationToken) 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) ListAsync(IVirtualMachinesOperations, String, CancellationToken) 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.

ListAvailableSizes(IVirtualMachinesOperations, String, String) ListAvailableSizes(IVirtualMachinesOperations, String, String) ListAvailableSizes(IVirtualMachinesOperations, String, String)

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

ListAvailableSizesAsync(IVirtualMachinesOperations, String, String, CancellationToken) ListAvailableSizesAsync(IVirtualMachinesOperations, String, String, CancellationToken) ListAvailableSizesAsync(IVirtualMachinesOperations, String, String, CancellationToken)

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

ListByLocation(IVirtualMachinesOperations, String) ListByLocation(IVirtualMachinesOperations, String) ListByLocation(IVirtualMachinesOperations, String)

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

ListByLocationAsync(IVirtualMachinesOperations, String, CancellationToken) ListByLocationAsync(IVirtualMachinesOperations, String, CancellationToken) ListByLocationAsync(IVirtualMachinesOperations, String, CancellationToken)

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

ListByLocationNext(IVirtualMachinesOperations, String) ListByLocationNext(IVirtualMachinesOperations, String) ListByLocationNext(IVirtualMachinesOperations, String)

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

ListByLocationNextAsync(IVirtualMachinesOperations, String, CancellationToken) ListByLocationNextAsync(IVirtualMachinesOperations, String, CancellationToken) ListByLocationNextAsync(IVirtualMachinesOperations, String, CancellationToken)

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

ListNext(IVirtualMachinesOperations, String) ListNext(IVirtualMachinesOperations, String) 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) ListNextAsync(IVirtualMachinesOperations, String, CancellationToken) 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) PerformMaintenance(IVirtualMachinesOperations, String, String) PerformMaintenance(IVirtualMachinesOperations, String, String)

The operation to perform maintenance on a virtual machine.

PerformMaintenanceAsync(IVirtualMachinesOperations, String, String, CancellationToken) PerformMaintenanceAsync(IVirtualMachinesOperations, String, String, CancellationToken) PerformMaintenanceAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to perform maintenance on a virtual machine.

PowerOff(IVirtualMachinesOperations, String, String, Nullable<Boolean>) PowerOff(IVirtualMachinesOperations, String, String, Nullable<Boolean>) 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) PowerOffAsync(IVirtualMachinesOperations, String, String, Nullable<Boolean>, CancellationToken) 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.

Redeploy(IVirtualMachinesOperations, String, String) Redeploy(IVirtualMachinesOperations, String, String) Redeploy(IVirtualMachinesOperations, String, String)

The operation to redeploy a virtual machine.

RedeployAsync(IVirtualMachinesOperations, String, String, CancellationToken) RedeployAsync(IVirtualMachinesOperations, String, String, CancellationToken) RedeployAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to redeploy a virtual machine.

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

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

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

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

Restart(IVirtualMachinesOperations, String, String) Restart(IVirtualMachinesOperations, String, String) Restart(IVirtualMachinesOperations, String, String)

The operation to restart a virtual machine.

RestartAsync(IVirtualMachinesOperations, String, String, CancellationToken) RestartAsync(IVirtualMachinesOperations, String, String, CancellationToken) RestartAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to restart a virtual machine.

RunCommand(IVirtualMachinesOperations, String, String, RunCommandInput) RunCommand(IVirtualMachinesOperations, String, String, RunCommandInput) RunCommand(IVirtualMachinesOperations, String, String, RunCommandInput)

Run command on the VM.

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

Run command on the VM.

Start(IVirtualMachinesOperations, String, String) Start(IVirtualMachinesOperations, String, String) Start(IVirtualMachinesOperations, String, String)

The operation to start a virtual machine.

StartAsync(IVirtualMachinesOperations, String, String, CancellationToken) StartAsync(IVirtualMachinesOperations, String, String, CancellationToken) StartAsync(IVirtualMachinesOperations, String, String, CancellationToken)

The operation to start a virtual machine.

Update(IVirtualMachinesOperations, String, String, VirtualMachineUpdate) Update(IVirtualMachinesOperations, String, String, VirtualMachineUpdate) Update(IVirtualMachinesOperations, String, String, VirtualMachineUpdate)

The operation to update a virtual machine.

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

The operation to update a virtual machine.

Applies to