VirtualMachinesOperationsExtensions.GetAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get a lab virtual machine.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.LabServices.Models.VirtualMachine> GetAsync (this Microsoft.Azure.Management.LabServices.IVirtualMachinesOperations operations, string resourceGroupName, string labName, string virtualMachineName, System.Threading.CancellationToken cancellationToken = default);
static member GetAsync : Microsoft.Azure.Management.LabServices.IVirtualMachinesOperations * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.LabServices.Models.VirtualMachine>
<Extension()>
Public Function GetAsync (operations As IVirtualMachinesOperations, resourceGroupName As String, labName As String, virtualMachineName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of VirtualMachine)
Parameters
- operations
- IVirtualMachinesOperations
The operations group for this extension method.
- resourceGroupName
- String
The name of the resource group. The name is case insensitive.
- labName
- String
The name of the lab that uniquely identifies it within containing lab account. Used in resource URIs.
- virtualMachineName
- String
The ID of the virtual machine that uniquely identifies it within the containing lab. Used in resource URIs.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Remarks
Returns the properties for a lab virtual machine.
Applies to
Azure SDK for .NET