Options
All
  • Public
  • Public/Protected
  • All
Menu

Class VirtualMachines

Package version

Class representing a VirtualMachines.

Hierarchy

  • VirtualMachines

Index

Constructors

constructor

Methods

beginCreateOrUpdate

  • beginCreateOrUpdate(resourceGroupName: string, virtualMachineName: string, virtualMachineRequest: VirtualMachine, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>
  • Create Or Update Virtual Machine

    summary

    Implements virtual machine PUT method

    Parameters

    • resourceGroupName: string

      The name of the resource group

    • virtualMachineName: string

      virtual machine name

    • virtualMachineRequest: VirtualMachine

      Create or Update Virtual Machine request

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

beginDeleteMethod

  • beginDeleteMethod(resourceGroupName: string, virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>
  • Delete virtual machine

    summary

    Implements virtual machine DELETE method

    Parameters

    • resourceGroupName: string

      The name of the resource group

    • virtualMachineName: string

      virtual machine name

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

beginStart

  • beginStart(resourceGroupName: string, virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller>
  • Power on virtual machine

    summary

    Implements a start method for a virtual machine

    Parameters

    • resourceGroupName: string

      The name of the resource group

    • virtualMachineName: string

      virtual machine name

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

beginStop

  • beginStop(resourceGroupName: string, virtualMachineName: string, options?: Models.VirtualMachinesBeginStopOptionalParams): Promise<msRestAzure.LROPoller>
  • Power off virtual machine, options: shutdown, poweroff, and suspend

    summary

    Implements shutdown, poweroff, and suspend method for a virtual machine

    Parameters

    • resourceGroupName: string

      The name of the resource group

    • virtualMachineName: string

      virtual machine name

    • Optional options: Models.VirtualMachinesBeginStopOptionalParams

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

beginUpdate

  • beginUpdate(resourceGroupName: string, virtualMachineName: string, options?: Models.VirtualMachinesBeginUpdateOptionalParams): Promise<msRestAzure.LROPoller>
  • Patch virtual machine properties

    summary

    Implements virtual machine PATCH method

    Parameters

    • resourceGroupName: string

      The name of the resource group

    • virtualMachineName: string

      virtual machine name

    • Optional options: Models.VirtualMachinesBeginUpdateOptionalParams

    Returns Promise<msRestAzure.LROPoller>

    Promise<msRestAzure.LROPoller>

createOrUpdate

  • createOrUpdate(resourceGroupName: string, virtualMachineName: string, virtualMachineRequest: VirtualMachine, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachinesCreateOrUpdateResponse>
  • Create Or Update Virtual Machine

    summary

    Implements virtual machine PUT method

    Parameters

    • resourceGroupName: string

      The name of the resource group

    • virtualMachineName: string

      virtual machine name

    • virtualMachineRequest: VirtualMachine

      Create or Update Virtual Machine request

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachinesCreateOrUpdateResponse>

    Promise<Models.VirtualMachinesCreateOrUpdateResponse>

deleteMethod

  • deleteMethod(resourceGroupName: string, virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachinesDeleteResponse>
  • Delete virtual machine

    summary

    Implements virtual machine DELETE method

    Parameters

    • resourceGroupName: string

      The name of the resource group

    • virtualMachineName: string

      virtual machine name

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachinesDeleteResponse>

    Promise<Models.VirtualMachinesDeleteResponse>

get

  • get(resourceGroupName: string, virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachinesGetResponse>
  • get(resourceGroupName: string, virtualMachineName: string, callback: msRest.ServiceCallback<VirtualMachine>): void
  • get(resourceGroupName: string, virtualMachineName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<VirtualMachine>): void
  • Get virtual machine

    summary

    Implements virtual machine GET method

    Parameters

    • resourceGroupName: string

      The name of the resource group

    • virtualMachineName: string

      virtual machine name

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachinesGetResponse>

    Promise<Models.VirtualMachinesGetResponse>

  • Parameters

    • resourceGroupName: string

      The name of the resource group

    • virtualMachineName: string

      virtual machine name

    • callback: msRest.ServiceCallback<VirtualMachine>

      The callback

    Returns void

  • Parameters

    • resourceGroupName: string

      The name of the resource group

    • virtualMachineName: string

      virtual machine name

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<VirtualMachine>

      The callback

    Returns void

listByResourceGroup

listByResourceGroupNext

  • listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachinesListByResourceGroupNextResponse>
  • listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<VirtualMachineListResponse>): void
  • listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<VirtualMachineListResponse>): void
  • Returns list of virtual machine within resource group

    summary

    Implements list virtual machine within RG method

    Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachinesListByResourceGroupNextResponse>

    Promise<Models.VirtualMachinesListByResourceGroupNextResponse>

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • callback: msRest.ServiceCallback<VirtualMachineListResponse>

      The callback

    Returns void

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<VirtualMachineListResponse>

      The callback

    Returns void

listBySubscription

listBySubscriptionNext

  • listBySubscriptionNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachinesListBySubscriptionNextResponse>
  • listBySubscriptionNext(nextPageLink: string, callback: msRest.ServiceCallback<VirtualMachineListResponse>): void
  • listBySubscriptionNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<VirtualMachineListResponse>): void
  • Returns list virtual machine within subscription

    summary

    Implements list virtual machine within subscription method

    Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachinesListBySubscriptionNextResponse>

    Promise<Models.VirtualMachinesListBySubscriptionNextResponse>

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • callback: msRest.ServiceCallback<VirtualMachineListResponse>

      The callback

    Returns void

  • Parameters

    • nextPageLink: string

      The NextLink from the previous successful call to List operation.

    • options: msRest.RequestOptionsBase

      The optional parameters

    • callback: msRest.ServiceCallback<VirtualMachineListResponse>

      The callback

    Returns void

start

  • start(resourceGroupName: string, virtualMachineName: string, options?: msRest.RequestOptionsBase): Promise<Models.VirtualMachinesStartResponse>
  • Power on virtual machine

    summary

    Implements a start method for a virtual machine

    Parameters

    • resourceGroupName: string

      The name of the resource group

    • virtualMachineName: string

      virtual machine name

    • Optional options: msRest.RequestOptionsBase

    Returns Promise<Models.VirtualMachinesStartResponse>

    Promise<Models.VirtualMachinesStartResponse>

stop

  • stop(resourceGroupName: string, virtualMachineName: string, options?: Models.VirtualMachinesStopOptionalParams): Promise<Models.VirtualMachinesStopResponse>
  • Power off virtual machine, options: shutdown, poweroff, and suspend

    summary

    Implements shutdown, poweroff, and suspend method for a virtual machine

    Parameters

    • resourceGroupName: string

      The name of the resource group

    • virtualMachineName: string

      virtual machine name

    • Optional options: Models.VirtualMachinesStopOptionalParams

    Returns Promise<Models.VirtualMachinesStopResponse>

    Promise<Models.VirtualMachinesStopResponse>

update

  • update(resourceGroupName: string, virtualMachineName: string, options?: Models.VirtualMachinesUpdateOptionalParams): Promise<Models.VirtualMachinesUpdateResponse>
  • Patch virtual machine properties

    summary

    Implements virtual machine PATCH method

    Parameters

    • resourceGroupName: string

      The name of the resource group

    • virtualMachineName: string

      virtual machine name

    • Optional options: Models.VirtualMachinesUpdateOptionalParams

    Returns Promise<Models.VirtualMachinesUpdateResponse>

    Promise<Models.VirtualMachinesUpdateResponse>

Generated using TypeDoc