VirtualMachinesOperations.InstanceViewAsync(String, String, CancellationToken) 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.
Retrieves information about the run-time state of a virtual machine.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.VirtualMachineInstanceView>> InstanceViewAsync (string resourceGroupName, string vmName, System.Threading.CancellationToken cancellationToken = default);
abstract member InstanceViewAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.VirtualMachineInstanceView>>
override this.InstanceViewAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.VirtualMachineInstanceView>>
Public Overridable Function InstanceViewAsync (resourceGroupName As String, vmName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VirtualMachineInstanceView))
Parameters
- resourceGroupName
- System.String
The name of the resource group.
- vmName
- System.String
The name of the virtual machine.
- cancellationToken
- System.Threading.CancellationToken
The cancellation token to use.
Returns
- System.Threading.Tasks.Task<Response<VirtualMachineInstanceView>>