Interface VirtualMachinesClient
public interface VirtualMachinesClient
An instance of this class provides access to all the operations defined in VirtualMachinesClient.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDataDisk
(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties) Attach a new or existing data disk to virtual machine.void
addDataDisk
(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties, com.azure.core.util.Context context) Attach a new or existing data disk to virtual machine.void
applyArtifacts
(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest) Apply artifacts to virtual machine.void
applyArtifacts
(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest, com.azure.core.util.Context context) Apply artifacts to virtual machine.beginAddDataDisk
(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties) Attach a new or existing data disk to virtual machine.beginAddDataDisk
(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties, com.azure.core.util.Context context) Attach a new or existing data disk to virtual machine.beginApplyArtifacts
(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest) Apply artifacts to virtual machine.beginApplyArtifacts
(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest, com.azure.core.util.Context context) Apply artifacts to virtual machine.beginClaim
(String resourceGroupName, String labName, String name) Take ownership of an existing virtual machine This operation can take a while to complete.beginClaim
(String resourceGroupName, String labName, String name, com.azure.core.util.Context context) Take ownership of an existing virtual machine This operation can take a while to complete.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LabVirtualMachineInner>,
LabVirtualMachineInner> beginCreateOrUpdate
(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine) Create or replace an existing virtual machine.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LabVirtualMachineInner>,
LabVirtualMachineInner> beginCreateOrUpdate
(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine, com.azure.core.util.Context context) Create or replace an existing virtual machine.beginDelete
(String resourceGroupName, String labName, String name) Delete virtual machine.beginDelete
(String resourceGroupName, String labName, String name, com.azure.core.util.Context context) Delete virtual machine.beginDetachDataDisk
(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties) Detach the specified disk from the virtual machine.beginDetachDataDisk
(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties, com.azure.core.util.Context context) Detach the specified disk from the virtual machine.beginRedeploy
(String resourceGroupName, String labName, String name) Redeploy a virtual machine This operation can take a while to complete.beginRedeploy
(String resourceGroupName, String labName, String name, com.azure.core.util.Context context) Redeploy a virtual machine This operation can take a while to complete.beginResize
(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties) Resize Virtual Machine.beginResize
(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties, com.azure.core.util.Context context) Resize Virtual Machine.beginRestart
(String resourceGroupName, String labName, String name) Restart a virtual machine.beginRestart
(String resourceGroupName, String labName, String name, com.azure.core.util.Context context) Restart a virtual machine.beginStart
(String resourceGroupName, String labName, String name) Start a virtual machine.beginStart
(String resourceGroupName, String labName, String name, com.azure.core.util.Context context) Start a virtual machine.Stop a virtual machine This operation can take a while to complete.beginStop
(String resourceGroupName, String labName, String name, com.azure.core.util.Context context) Stop a virtual machine This operation can take a while to complete.beginTransferDisks
(String resourceGroupName, String labName, String name) Transfers all data disks attached to the virtual machine to be owned by the current user.beginTransferDisks
(String resourceGroupName, String labName, String name, com.azure.core.util.Context context) Transfers all data disks attached to the virtual machine to be owned by the current user.beginUnClaim
(String resourceGroupName, String labName, String name) Release ownership of an existing virtual machine This operation can take a while to complete.beginUnClaim
(String resourceGroupName, String labName, String name, com.azure.core.util.Context context) Release ownership of an existing virtual machine This operation can take a while to complete.void
Take ownership of an existing virtual machine This operation can take a while to complete.void
Take ownership of an existing virtual machine This operation can take a while to complete.createOrUpdate
(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine) Create or replace an existing virtual machine.createOrUpdate
(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine, com.azure.core.util.Context context) Create or replace an existing virtual machine.void
Delete virtual machine.void
Delete virtual machine.void
detachDataDisk
(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties) Detach the specified disk from the virtual machine.void
detachDataDisk
(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties, com.azure.core.util.Context context) Detach the specified disk from the virtual machine.Get virtual machine.getRdpFileContents
(String resourceGroupName, String labName, String name) Gets a string that represents the contents of the RDP file for the virtual machine.com.azure.core.http.rest.Response<RdpConnectionInner>
getRdpFileContentsWithResponse
(String resourceGroupName, String labName, String name, com.azure.core.util.Context context) Gets a string that represents the contents of the RDP file for the virtual machine.com.azure.core.http.rest.Response<LabVirtualMachineInner>
getWithResponse
(String resourceGroupName, String labName, String name, String expand, com.azure.core.util.Context context) Get virtual machine.com.azure.core.http.rest.PagedIterable<LabVirtualMachineInner>
List virtual machines in a given lab.com.azure.core.http.rest.PagedIterable<LabVirtualMachineInner>
list
(String resourceGroupName, String labName, String expand, String filter, Integer top, String orderby, com.azure.core.util.Context context) List virtual machines in a given lab.listApplicableSchedules
(String resourceGroupName, String labName, String name) Lists the applicable start/stop schedules, if any.com.azure.core.http.rest.Response<ApplicableScheduleInner>
listApplicableSchedulesWithResponse
(String resourceGroupName, String labName, String name, com.azure.core.util.Context context) Lists the applicable start/stop schedules, if any.void
Redeploy a virtual machine This operation can take a while to complete.void
redeploy
(String resourceGroupName, String labName, String name, com.azure.core.util.Context context) Redeploy a virtual machine This operation can take a while to complete.void
resize
(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties) Resize Virtual Machine.void
resize
(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties, com.azure.core.util.Context context) Resize Virtual Machine.void
Restart a virtual machine.void
Restart a virtual machine.void
Start a virtual machine.void
Start a virtual machine.void
Stop a virtual machine This operation can take a while to complete.void
Stop a virtual machine This operation can take a while to complete.void
transferDisks
(String resourceGroupName, String labName, String name) Transfers all data disks attached to the virtual machine to be owned by the current user.void
transferDisks
(String resourceGroupName, String labName, String name, com.azure.core.util.Context context) Transfers all data disks attached to the virtual machine to be owned by the current user.void
Release ownership of an existing virtual machine This operation can take a while to complete.void
Release ownership of an existing virtual machine This operation can take a while to complete.update
(String resourceGroupName, String labName, String name, LabVirtualMachineFragment labVirtualMachine) Allows modifying tags of virtual machines.com.azure.core.http.rest.Response<LabVirtualMachineInner>
updateWithResponse
(String resourceGroupName, String labName, String name, LabVirtualMachineFragment labVirtualMachine, com.azure.core.util.Context context) Allows modifying tags of virtual machines.
-
Method Details
-
list
com.azure.core.http.rest.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<LabVirtualMachineInner> list(String resourceGroupName, String labName, String expand, String filter, Integer top, String orderby, com.azure.core.util.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<LabVirtualMachineInner> getWithResponse(String resourceGroupName, String labName, String name, String expand, com.azure.core.util.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
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.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.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
for polling of a virtual machine. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LabVirtualMachineInner>,LabVirtualMachineInner> beginCreateOrUpdate(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine, com.azure.core.util.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
for polling of a virtual machine. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
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.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
createOrUpdate
LabVirtualMachineInner createOrUpdate(String resourceGroupName, String labName, String name, LabVirtualMachineInner labVirtualMachine, com.azure.core.util.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.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String labName, String name, com.azure.core.util.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String labName, String name, com.azure.core.util.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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponse
com.azure.core.http.rest.Response<LabVirtualMachineInner> updateWithResponse(String resourceGroupName, String labName, String name, LabVirtualMachineFragment labVirtualMachine, com.azure.core.util.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
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.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginAddDataDisk
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginAddDataDisk
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginAddDataDisk(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties, com.azure.core.util.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
addDataDisk
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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
addDataDisk
void addDataDisk(String resourceGroupName, String labName, String name, DataDiskProperties dataDiskProperties, com.azure.core.util.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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginApplyArtifacts
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginApplyArtifacts
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginApplyArtifacts(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest, com.azure.core.util.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
applyArtifacts
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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
applyArtifacts
void applyArtifacts(String resourceGroupName, String labName, String name, ApplyArtifactsRequest applyArtifactsRequest, com.azure.core.util.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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginClaim
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginClaim
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginClaim(String resourceGroupName, String labName, String name, com.azure.core.util.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
claim
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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
claim
void claim(String resourceGroupName, String labName, String name, com.azure.core.util.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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDetachDataDisk
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginDetachDataDisk
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDetachDataDisk(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties, com.azure.core.util.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
detachDataDisk
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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
detachDataDisk
void detachDataDisk(String resourceGroupName, String labName, String name, DetachDataDiskProperties detachDataDiskProperties, com.azure.core.util.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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getRdpFileContentsWithResponse
com.azure.core.http.rest.Response<RdpConnectionInner> getRdpFileContentsWithResponse(String resourceGroupName, String labName, String name, com.azure.core.util.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getRdpFileContents
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.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listApplicableSchedulesWithResponse
com.azure.core.http.rest.Response<ApplicableScheduleInner> listApplicableSchedulesWithResponse(String resourceGroupName, String labName, String name, com.azure.core.util.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listApplicableSchedules
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.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginRedeploy
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginRedeploy
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRedeploy(String resourceGroupName, String labName, String name, com.azure.core.util.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
redeploy
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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
redeploy
void redeploy(String resourceGroupName, String labName, String name, com.azure.core.util.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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginResize
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginResize
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginResize(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties, com.azure.core.util.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
resize
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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
resize
void resize(String resourceGroupName, String labName, String name, ResizeLabVirtualMachineProperties resizeLabVirtualMachineProperties, com.azure.core.util.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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginRestart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginRestart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginRestart(String resourceGroupName, String labName, String name, com.azure.core.util.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
restart
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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
restart
void restart(String resourceGroupName, String labName, String name, com.azure.core.util.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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginStart
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStart(String resourceGroupName, String labName, String name, com.azure.core.util.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
start
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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
start
void start(String resourceGroupName, String labName, String name, com.azure.core.util.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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginStop
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginStop
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginStop(String resourceGroupName, String labName, String name, com.azure.core.util.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stop
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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
stop
void stop(String resourceGroupName, String labName, String name, com.azure.core.util.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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginTransferDisks
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginTransferDisks
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginTransferDisks(String resourceGroupName, String labName, String name, com.azure.core.util.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
transferDisks
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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
transferDisks
void transferDisks(String resourceGroupName, String labName, String name, com.azure.core.util.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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUnClaim
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginUnClaim
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginUnClaim(String resourceGroupName, String labName, String name, com.azure.core.util.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
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
unClaim
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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
unClaim
void unClaim(String resourceGroupName, String labName, String name, com.azure.core.util.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.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-