VirtualMachinesClient Interface

public interface VirtualMachinesClient

An instance of this class provides access to all the operations defined in VirtualMachinesClient.

Method Summary

Modifier and Type Method and Description
abstract void addDataDisk(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties)

Attach a new or existing data disk to virtual machine.

abstract void addDataDisk(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties, Context context)

Attach a new or existing data disk to virtual machine.

abstract void applyArtifacts(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest)

Apply artifacts to virtual machine.

abstract void applyArtifacts(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest, Context context)

Apply artifacts to virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginAddDataDisk(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties)

Attach a new or existing data disk to virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginAddDataDisk(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties, Context context)

Attach a new or existing data disk to virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginApplyArtifacts(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest)

Apply artifacts to virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginApplyArtifacts(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest, Context context)

Apply artifacts to virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginClaim(String resourceGroupName, String labName, String name)

Take ownership of an existing virtual machine This operation can take a while to complete.

abstract SyncPoller<PollResult<Void>,Void> beginClaim(String resourceGroupName, String labName, String name, Context context)

Take ownership of an existing virtual machine This operation can take a while to complete.

abstract SyncPoller<PollResult<LabVirtualMachineInner>,LabVirtualMachineInner> beginCreateOrUpdate(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine)

Create or replace an existing virtual machine.

abstract SyncPoller<PollResult<LabVirtualMachineInner>,LabVirtualMachineInner> beginCreateOrUpdate(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine, Context context)

Create or replace an existing virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String labName, String name)

Delete virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String labName, String name, Context context)

Delete virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginDetachDataDisk(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties)

Detach the specified disk from the virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginDetachDataDisk(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties, Context context)

Detach the specified disk from the virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginRedeploy(String resourceGroupName, String labName, String name)

Redeploy a virtual machine This operation can take a while to complete.

abstract SyncPoller<PollResult<Void>,Void> beginRedeploy(String resourceGroupName, String labName, String name, Context context)

Redeploy a virtual machine This operation can take a while to complete.

abstract SyncPoller<PollResult<Void>,Void> beginResize(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties)

Resize Virtual Machine.

abstract SyncPoller<PollResult<Void>,Void> beginResize(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties, Context context)

Resize Virtual Machine.

abstract SyncPoller<PollResult<Void>,Void> beginRestart(String resourceGroupName, String labName, String name)

Restart a virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginRestart(String resourceGroupName, String labName, String name, Context context)

Restart a virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginStart(String resourceGroupName, String labName, String name)

Start a virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginStart(String resourceGroupName, String labName, String name, Context context)

Start a virtual machine.

abstract SyncPoller<PollResult<Void>,Void> beginStop(String resourceGroupName, String labName, String name)

Stop a virtual machine This operation can take a while to complete.

abstract SyncPoller<PollResult<Void>,Void> beginStop(String resourceGroupName, String labName, String name, Context context)

Stop a virtual machine This operation can take a while to complete.

abstract SyncPoller<PollResult<Void>,Void> beginTransferDisks(String resourceGroupName, String labName, String name)

Transfers all data disks attached to the virtual machine to be owned by the current user.

abstract SyncPoller<PollResult<Void>,Void> beginTransferDisks(String resourceGroupName, String labName, String name, Context context)

Transfers all data disks attached to the virtual machine to be owned by the current user.

abstract SyncPoller<PollResult<Void>,Void> beginUnClaim(String resourceGroupName, String labName, String name)

Release ownership of an existing virtual machine This operation can take a while to complete.

abstract SyncPoller<PollResult<Void>,Void> beginUnClaim(String resourceGroupName, String labName, String name, Context context)

Release ownership of an existing virtual machine This operation can take a while to complete.

abstract void claim(String resourceGroupName, String labName, String name)

Take ownership of an existing virtual machine This operation can take a while to complete.

abstract void claim(String resourceGroupName, String labName, String name, Context context)

Take ownership of an existing virtual machine This operation can take a while to complete.

abstract LabVirtualMachineInner createOrUpdate(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine)

Create or replace an existing virtual machine.

abstract LabVirtualMachineInner createOrUpdate(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine, Context context)

Create or replace an existing virtual machine.

abstract void delete(String resourceGroupName, String labName, String name)

Delete virtual machine.

abstract void delete(String resourceGroupName, String labName, String name, Context context)

Delete virtual machine.

abstract void detachDataDisk(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties)

Detach the specified disk from the virtual machine.

abstract void detachDataDisk(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties, Context context)

Detach the specified disk from the virtual machine.

abstract LabVirtualMachineInner get(String resourceGroupName, String labName, String name)

Get virtual machine.

abstract RdpConnectionInner getRdpFileContents(String resourceGroupName, String labName, String name)

Gets a string that represents the contents of the RDP file for the virtual machine.

abstract Response<RdpConnectionInner> getRdpFileContentsWithResponse(String resourceGroupName, String labName, String name, Context context)

Gets a string that represents the contents of the RDP file for the virtual machine.

abstract Response<LabVirtualMachineInner> getWithResponse(String resourceGroupName, String labName, String name, String expand, Context context)

Get virtual machine.

abstract PagedIterable<LabVirtualMachineInner> list(String resourceGroupName, String labName)

List virtual machines in a given lab.

abstract PagedIterable<LabVirtualMachineInner> list(String resourceGroupName, String labName, String expand, String filter, Integer top, String orderby, Context context)

List virtual machines in a given lab.

abstract ApplicableScheduleInner listApplicableSchedules(String resourceGroupName, String labName, String name)

Lists the applicable start/stop schedules, if any.

abstract Response<ApplicableScheduleInner> listApplicableSchedulesWithResponse(String resourceGroupName, String labName, String name, Context context)

Lists the applicable start/stop schedules, if any.

abstract void redeploy(String resourceGroupName, String labName, String name)

Redeploy a virtual machine This operation can take a while to complete.

abstract void redeploy(String resourceGroupName, String labName, String name, Context context)

Redeploy a virtual machine This operation can take a while to complete.

abstract void resize(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties)

Resize Virtual Machine.

abstract void resize(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties, Context context)

Resize Virtual Machine.

abstract void restart(String resourceGroupName, String labName, String name)

Restart a virtual machine.

abstract void restart(String resourceGroupName, String labName, String name, Context context)

Restart a virtual machine.

abstract void start(String resourceGroupName, String labName, String name)

Start a virtual machine.

abstract void start(String resourceGroupName, String labName, String name, Context context)

Start a virtual machine.

abstract void stop(String resourceGroupName, String labName, String name)

Stop a virtual machine This operation can take a while to complete.

abstract void stop(String resourceGroupName, String labName, String name, Context context)

Stop a virtual machine This operation can take a while to complete.

abstract void transferDisks(String resourceGroupName, String labName, String name)

Transfers all data disks attached to the virtual machine to be owned by the current user.

abstract void transferDisks(String resourceGroupName, String labName, String name, Context context)

Transfers all data disks attached to the virtual machine to be owned by the current user.

abstract void unClaim(String resourceGroupName, String labName, String name)

Release ownership of an existing virtual machine This operation can take a while to complete.

abstract void unClaim(String resourceGroupName, String labName, String name, Context context)

Release ownership of an existing virtual machine This operation can take a while to complete.

abstract LabVirtualMachineInner update(String resourceGroupName, String labName, String name, LabVirtualMachineFragment labVirtualMachine)

Allows modifying tags of virtual machines.

abstract Response<LabVirtualMachineInner> updateWithResponse(String resourceGroupName, String labName, String name, LabVirtualMachineFragment labVirtualMachine, Context context)

Allows modifying tags of virtual machines.

Method Details

addDataDisk

public abstract void addDataDisk(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties)

Attach a new or existing data disk to virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
dataDiskProperties - Request body for adding a new or existing data disk to a virtual machine.

addDataDisk

public abstract void addDataDisk(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties, Context context)

Attach a new or existing data disk to virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
dataDiskProperties - Request body for adding a new or existing data disk to a virtual machine.
context - The context to associate with this operation.

applyArtifacts

public abstract void applyArtifacts(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest)

Apply artifacts to virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
applyArtifactsRequest - Request body for applying artifacts to a virtual machine.

applyArtifacts

public abstract void applyArtifacts(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest, Context context)

Apply artifacts to virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
applyArtifactsRequest - Request body for applying artifacts to a virtual machine.
context - The context to associate with this operation.

beginAddDataDisk

public abstract SyncPoller<PollResult<Void>,Void> beginAddDataDisk(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties)

Attach a new or existing data disk to virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
dataDiskProperties - Request body for adding a new or existing data disk to a virtual machine.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginAddDataDisk

public abstract SyncPoller<PollResult<Void>,Void> beginAddDataDisk(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties, Context context)

Attach a new or existing data disk to virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
dataDiskProperties - Request body for adding a new or existing data disk to a virtual machine.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginApplyArtifacts

public abstract SyncPoller<PollResult<Void>,Void> beginApplyArtifacts(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest)

Apply artifacts to virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
applyArtifactsRequest - Request body for applying artifacts to a virtual machine.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginApplyArtifacts

public abstract SyncPoller<PollResult<Void>,Void> beginApplyArtifacts(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest, Context context)

Apply artifacts to virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
applyArtifactsRequest - Request body for applying artifacts to a virtual machine.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginClaim

public abstract SyncPoller<PollResult<Void>,Void> beginClaim(String resourceGroupName, String labName, String name)

Take ownership of an existing virtual machine This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginClaim

public abstract SyncPoller<PollResult<Void>,Void> beginClaim(String resourceGroupName, String labName, String name, Context context)

Take ownership of an existing virtual machine This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginCreateOrUpdate

public abstract SyncPoller<PollResult<LabVirtualMachineInner>,LabVirtualMachineInner> beginCreateOrUpdate(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine)

Create or replace an existing virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
labVirtualMachine - A virtual machine.

Returns:

the SyncPoller<T,U> for polling of a virtual machine.

beginCreateOrUpdate

public abstract SyncPoller<PollResult<LabVirtualMachineInner>,LabVirtualMachineInner> beginCreateOrUpdate(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine, Context context)

Create or replace an existing virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
labVirtualMachine - A virtual machine.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of a virtual machine.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String labName, String name)

Delete virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String labName, String name, Context context)

Delete virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginDetachDataDisk

public abstract SyncPoller<PollResult<Void>,Void> beginDetachDataDisk(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties)

Detach the specified disk from the virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
detachDataDiskProperties - Request body for detaching data disk from a virtual machine.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginDetachDataDisk

public abstract SyncPoller<PollResult<Void>,Void> beginDetachDataDisk(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties, Context context)

Detach the specified disk from the virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
detachDataDiskProperties - Request body for detaching data disk from a virtual machine.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginRedeploy

public abstract SyncPoller<PollResult<Void>,Void> beginRedeploy(String resourceGroupName, String labName, String name)

Redeploy a virtual machine This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginRedeploy

public abstract SyncPoller<PollResult<Void>,Void> beginRedeploy(String resourceGroupName, String labName, String name, Context context)

Redeploy a virtual machine This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginResize

public abstract SyncPoller<PollResult<Void>,Void> beginResize(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties)

Resize Virtual Machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
resizeLabVirtualMachineProperties - Request body for resizing a virtual machine.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginResize

public abstract SyncPoller<PollResult<Void>,Void> beginResize(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties, Context context)

Resize Virtual Machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
resizeLabVirtualMachineProperties - Request body for resizing a virtual machine.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginRestart

public abstract SyncPoller<PollResult<Void>,Void> beginRestart(String resourceGroupName, String labName, String name)

Restart a virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginRestart

public abstract SyncPoller<PollResult<Void>,Void> beginRestart(String resourceGroupName, String labName, String name, Context context)

Restart a virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginStart

public abstract SyncPoller<PollResult<Void>,Void> beginStart(String resourceGroupName, String labName, String name)

Start a virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginStart

public abstract SyncPoller<PollResult<Void>,Void> beginStart(String resourceGroupName, String labName, String name, Context context)

Start a virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginStop

public abstract SyncPoller<PollResult<Void>,Void> beginStop(String resourceGroupName, String labName, String name)

Stop a virtual machine This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginStop

public abstract SyncPoller<PollResult<Void>,Void> beginStop(String resourceGroupName, String labName, String name, Context context)

Stop a virtual machine This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginTransferDisks

public abstract SyncPoller<PollResult<Void>,Void> beginTransferDisks(String resourceGroupName, String labName, String name)

Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginTransferDisks

public abstract SyncPoller<PollResult<Void>,Void> beginTransferDisks(String resourceGroupName, String labName, String name, Context context)

Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginUnClaim

public abstract SyncPoller<PollResult<Void>,Void> beginUnClaim(String resourceGroupName, String labName, String name)

Release ownership of an existing virtual machine This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginUnClaim

public abstract SyncPoller<PollResult<Void>,Void> beginUnClaim(String resourceGroupName, String labName, String name, Context context)

Release ownership of an existing virtual machine This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

claim

public abstract void claim(String resourceGroupName, String labName, String name)

Take ownership of an existing virtual machine This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

claim

public abstract void claim(String resourceGroupName, String labName, String name, Context context)

Take ownership of an existing virtual machine This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

createOrUpdate

public abstract LabVirtualMachineInner createOrUpdate(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine)

Create or replace an existing virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
labVirtualMachine - A virtual machine.

Returns:

a virtual machine.

createOrUpdate

public abstract LabVirtualMachineInner createOrUpdate(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine, Context context)

Create or replace an existing virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
labVirtualMachine - A virtual machine.
context - The context to associate with this operation.

Returns:

a virtual machine.

delete

public abstract void delete(String resourceGroupName, String labName, String name)

Delete virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

delete

public abstract void delete(String resourceGroupName, String labName, String name, Context context)

Delete virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

detachDataDisk

public abstract void detachDataDisk(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties)

Detach the specified disk from the virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
detachDataDiskProperties - Request body for detaching data disk from a virtual machine.

detachDataDisk

public abstract void detachDataDisk(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties, Context context)

Detach the specified disk from the virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
detachDataDiskProperties - Request body for detaching data disk from a virtual machine.
context - The context to associate with this operation.

get

public abstract LabVirtualMachineInner get(String resourceGroupName, String labName, String name)

Get virtual machine.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

Returns:

virtual machine.

getRdpFileContents

public abstract RdpConnectionInner getRdpFileContents(String resourceGroupName, String labName, String name)

Gets a string that represents the contents of the RDP file for the virtual machine.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

Returns:

a string that represents the contents of the RDP file for the virtual machine.

getRdpFileContentsWithResponse

public abstract Response<RdpConnectionInner> getRdpFileContentsWithResponse(String resourceGroupName, String labName, String name, Context context)

Gets a string that represents the contents of the RDP file for the virtual machine.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

Returns:

a string that represents the contents of the RDP file for the virtual machine along with Response<T>.

getWithResponse

public abstract Response<LabVirtualMachineInner> getWithResponse(String resourceGroupName, String labName, String name, String expand, Context context)

Get virtual machine.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
expand - Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'.
context - The context to associate with this operation.

Returns:

virtual machine along with Response<T>.

list

public abstract PagedIterable<LabVirtualMachineInner> list(String resourceGroupName, String labName)

List virtual machines in a given lab.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.

Returns:

the response of a list operation as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<LabVirtualMachineInner> list(String resourceGroupName, String labName, String expand, String filter, Integer top, String orderby, Context context)

List virtual machines in a given lab.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
expand - Specify the $expand query. Example: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'.
filter - The filter to apply to the operation. Example: '$filter=contains(name,'myName').
top - The maximum number of resources to return from the operation. Example: '$top=10'.
orderby - The ordering expression for the results, using OData notation. Example: '$orderby=name desc'.
context - The context to associate with this operation.

Returns:

the response of a list operation as paginated response with PagedIterable<T>.

listApplicableSchedules

public abstract ApplicableScheduleInner listApplicableSchedules(String resourceGroupName, String labName, String name)

Lists the applicable start/stop schedules, if any.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

Returns:

schedules applicable to a virtual machine.

listApplicableSchedulesWithResponse

public abstract Response<ApplicableScheduleInner> listApplicableSchedulesWithResponse(String resourceGroupName, String labName, String name, Context context)

Lists the applicable start/stop schedules, if any.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

Returns:

schedules applicable to a virtual machine along with Response<T>.

redeploy

public abstract void redeploy(String resourceGroupName, String labName, String name)

Redeploy a virtual machine This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

redeploy

public abstract void redeploy(String resourceGroupName, String labName, String name, Context context)

Redeploy a virtual machine This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

resize

public abstract void resize(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties)

Resize Virtual Machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
resizeLabVirtualMachineProperties - Request body for resizing a virtual machine.

resize

public abstract void resize(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties, Context context)

Resize Virtual Machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
resizeLabVirtualMachineProperties - Request body for resizing a virtual machine.
context - The context to associate with this operation.

restart

public abstract void restart(String resourceGroupName, String labName, String name)

Restart a virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

restart

public abstract void restart(String resourceGroupName, String labName, String name, Context context)

Restart a virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

start

public abstract void start(String resourceGroupName, String labName, String name)

Start a virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

start

public abstract void start(String resourceGroupName, String labName, String name, Context context)

Start a virtual machine. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

stop

public abstract void stop(String resourceGroupName, String labName, String name)

Stop a virtual machine This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

stop

public abstract void stop(String resourceGroupName, String labName, String name, Context context)

Stop a virtual machine This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

transferDisks

public abstract void transferDisks(String resourceGroupName, String labName, String name)

Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

transferDisks

public abstract void transferDisks(String resourceGroupName, String labName, String name, Context context)

Transfers all data disks attached to the virtual machine to be owned by the current user. This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

unClaim

public abstract void unClaim(String resourceGroupName, String labName, String name)

Release ownership of an existing virtual machine This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.

unClaim

public abstract void unClaim(String resourceGroupName, String labName, String name, Context context)

Release ownership of an existing virtual machine This operation can take a while to complete.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
context - The context to associate with this operation.

update

public abstract LabVirtualMachineInner update(String resourceGroupName, String labName, String name, LabVirtualMachineFragment labVirtualMachine)

Allows modifying tags of virtual machines. All other properties will be ignored.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
labVirtualMachine - A virtual machine.

Returns:

a virtual machine.

updateWithResponse

public abstract Response<LabVirtualMachineInner> updateWithResponse(String resourceGroupName, String labName, String name, LabVirtualMachineFragment labVirtualMachine, Context context)

Allows modifying tags of virtual machines. All other properties will be ignored.

Parameters:

resourceGroupName - The name of the resource group.
labName - The name of the lab.
name - The name of the virtual machine.
labVirtualMachine - A virtual machine.
context - The context to associate with this operation.

Returns:

a virtual machine along with Response<T>.

Applies to