VirtualMachines interface

Interface representing a VirtualMachines.

Methods

beginCreateOrUpdate(string, string, VirtualMachine, VirtualMachinesCreateOrUpdateOptionalParams)

Create a new virtual machine or update the properties of the existing virtual machine.

beginCreateOrUpdateAndWait(string, string, VirtualMachine, VirtualMachinesCreateOrUpdateOptionalParams)

Create a new virtual machine or update the properties of the existing virtual machine.

beginDelete(string, string, VirtualMachinesDeleteOptionalParams)

Delete the provided virtual machine.

beginDeleteAndWait(string, string, VirtualMachinesDeleteOptionalParams)

Delete the provided virtual machine.

beginPowerOff(string, string, VirtualMachinesPowerOffOptionalParams)

Power off the provided virtual machine.

beginPowerOffAndWait(string, string, VirtualMachinesPowerOffOptionalParams)

Power off the provided virtual machine.

beginReimage(string, string, VirtualMachinesReimageOptionalParams)

Reimage the provided virtual machine.

beginReimageAndWait(string, string, VirtualMachinesReimageOptionalParams)

Reimage the provided virtual machine.

beginRestart(string, string, VirtualMachinesRestartOptionalParams)

Restart the provided virtual machine.

beginRestartAndWait(string, string, VirtualMachinesRestartOptionalParams)

Restart the provided virtual machine.

beginStart(string, string, VirtualMachinesStartOptionalParams)

Start the provided virtual machine.

beginStartAndWait(string, string, VirtualMachinesStartOptionalParams)

Start the provided virtual machine.

beginUpdate(string, string, VirtualMachinesUpdateOptionalParams)

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently.

beginUpdateAndWait(string, string, VirtualMachinesUpdateOptionalParams)

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently.

get(string, string, VirtualMachinesGetOptionalParams)

Get properties of the provided virtual machine.

listByResourceGroup(string, VirtualMachinesListByResourceGroupOptionalParams)

Get a list of virtual machines in the provided resource group.

listBySubscription(VirtualMachinesListBySubscriptionOptionalParams)

Get a list of virtual machines in the provided subscription.

Method Details

beginCreateOrUpdate(string, string, VirtualMachine, VirtualMachinesCreateOrUpdateOptionalParams)

Create a new virtual machine or update the properties of the existing virtual machine.

function beginCreateOrUpdate(resourceGroupName: string, virtualMachineName: string, virtualMachineParameters: VirtualMachine, options?: VirtualMachinesCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VirtualMachine>, VirtualMachine>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

virtualMachineName

string

The name of the virtual machine.

virtualMachineParameters
VirtualMachine

The request body.

options
VirtualMachinesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<VirtualMachine>, VirtualMachine>>

beginCreateOrUpdateAndWait(string, string, VirtualMachine, VirtualMachinesCreateOrUpdateOptionalParams)

Create a new virtual machine or update the properties of the existing virtual machine.

function beginCreateOrUpdateAndWait(resourceGroupName: string, virtualMachineName: string, virtualMachineParameters: VirtualMachine, options?: VirtualMachinesCreateOrUpdateOptionalParams): Promise<VirtualMachine>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

virtualMachineName

string

The name of the virtual machine.

virtualMachineParameters
VirtualMachine

The request body.

options
VirtualMachinesCreateOrUpdateOptionalParams

The options parameters.

Returns

Promise<VirtualMachine>

beginDelete(string, string, VirtualMachinesDeleteOptionalParams)

Delete the provided virtual machine.

function beginDelete(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

virtualMachineName

string

The name of the virtual machine.

options
VirtualMachinesDeleteOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<void>, void>>

beginDeleteAndWait(string, string, VirtualMachinesDeleteOptionalParams)

Delete the provided virtual machine.

function beginDeleteAndWait(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesDeleteOptionalParams): Promise<void>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

virtualMachineName

string

The name of the virtual machine.

options
VirtualMachinesDeleteOptionalParams

The options parameters.

Returns

Promise<void>

beginPowerOff(string, string, VirtualMachinesPowerOffOptionalParams)

Power off the provided virtual machine.

function beginPowerOff(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesPowerOffOptionalParams): Promise<SimplePollerLike<OperationState<OperationStatusResult>, OperationStatusResult>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

virtualMachineName

string

The name of the virtual machine.

options
VirtualMachinesPowerOffOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<OperationStatusResult>, OperationStatusResult>>

beginPowerOffAndWait(string, string, VirtualMachinesPowerOffOptionalParams)

Power off the provided virtual machine.

function beginPowerOffAndWait(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesPowerOffOptionalParams): Promise<OperationStatusResult>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

virtualMachineName

string

The name of the virtual machine.

options
VirtualMachinesPowerOffOptionalParams

The options parameters.

Returns

beginReimage(string, string, VirtualMachinesReimageOptionalParams)

Reimage the provided virtual machine.

function beginReimage(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesReimageOptionalParams): Promise<SimplePollerLike<OperationState<OperationStatusResult>, OperationStatusResult>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

virtualMachineName

string

The name of the virtual machine.

options
VirtualMachinesReimageOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<OperationStatusResult>, OperationStatusResult>>

beginReimageAndWait(string, string, VirtualMachinesReimageOptionalParams)

Reimage the provided virtual machine.

function beginReimageAndWait(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesReimageOptionalParams): Promise<OperationStatusResult>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

virtualMachineName

string

The name of the virtual machine.

options
VirtualMachinesReimageOptionalParams

The options parameters.

Returns

beginRestart(string, string, VirtualMachinesRestartOptionalParams)

Restart the provided virtual machine.

function beginRestart(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesRestartOptionalParams): Promise<SimplePollerLike<OperationState<OperationStatusResult>, OperationStatusResult>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

virtualMachineName

string

The name of the virtual machine.

options
VirtualMachinesRestartOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<OperationStatusResult>, OperationStatusResult>>

beginRestartAndWait(string, string, VirtualMachinesRestartOptionalParams)

Restart the provided virtual machine.

function beginRestartAndWait(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesRestartOptionalParams): Promise<OperationStatusResult>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

virtualMachineName

string

The name of the virtual machine.

options
VirtualMachinesRestartOptionalParams

The options parameters.

Returns

beginStart(string, string, VirtualMachinesStartOptionalParams)

Start the provided virtual machine.

function beginStart(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesStartOptionalParams): Promise<SimplePollerLike<OperationState<OperationStatusResult>, OperationStatusResult>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

virtualMachineName

string

The name of the virtual machine.

options
VirtualMachinesStartOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<OperationStatusResult>, OperationStatusResult>>

beginStartAndWait(string, string, VirtualMachinesStartOptionalParams)

Start the provided virtual machine.

function beginStartAndWait(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesStartOptionalParams): Promise<OperationStatusResult>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

virtualMachineName

string

The name of the virtual machine.

options
VirtualMachinesStartOptionalParams

The options parameters.

Returns

beginUpdate(string, string, VirtualMachinesUpdateOptionalParams)

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently.

function beginUpdate(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VirtualMachine>, VirtualMachine>>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

virtualMachineName

string

The name of the virtual machine.

options
VirtualMachinesUpdateOptionalParams

The options parameters.

Returns

Promise<@azure/core-lro.SimplePollerLike<OperationState<VirtualMachine>, VirtualMachine>>

beginUpdateAndWait(string, string, VirtualMachinesUpdateOptionalParams)

Patch the properties of the provided virtual machine, or update the tags associated with the virtual machine. Properties and tag updates can be done independently.

function beginUpdateAndWait(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesUpdateOptionalParams): Promise<VirtualMachine>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

virtualMachineName

string

The name of the virtual machine.

options
VirtualMachinesUpdateOptionalParams

The options parameters.

Returns

Promise<VirtualMachine>

get(string, string, VirtualMachinesGetOptionalParams)

Get properties of the provided virtual machine.

function get(resourceGroupName: string, virtualMachineName: string, options?: VirtualMachinesGetOptionalParams): Promise<VirtualMachine>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

virtualMachineName

string

The name of the virtual machine.

options
VirtualMachinesGetOptionalParams

The options parameters.

Returns

Promise<VirtualMachine>

listByResourceGroup(string, VirtualMachinesListByResourceGroupOptionalParams)

Get a list of virtual machines in the provided resource group.

function listByResourceGroup(resourceGroupName: string, options?: VirtualMachinesListByResourceGroupOptionalParams): PagedAsyncIterableIterator<VirtualMachine, VirtualMachine[], PageSettings>

Parameters

resourceGroupName

string

The name of the resource group. The name is case insensitive.

options
VirtualMachinesListByResourceGroupOptionalParams

The options parameters.

Returns

listBySubscription(VirtualMachinesListBySubscriptionOptionalParams)

Get a list of virtual machines in the provided subscription.

function listBySubscription(options?: VirtualMachinesListBySubscriptionOptionalParams): PagedAsyncIterableIterator<VirtualMachine, VirtualMachine[], PageSettings>

Parameters

options
VirtualMachinesListBySubscriptionOptionalParams

The options parameters.

Returns