get Virtual Machine
Retrieves information about the model view or the instance view of a virtual machine. API Version: 2021-03-01.
Return
Describes a Virtual Machine.
Parameters
argument
null
suspend fun getVirtualMachine(expand: String? = null, resourceGroupName: String, vmName: String): GetVirtualMachineResult
Return
Describes a Virtual Machine.
Parameters
expand
The expand expression to apply on the operation. 'InstanceView' retrieves a snapshot of the runtime properties of the virtual machine that is managed by the platform and can change outside of control plane operations. 'UserData' retrieves the UserData property as part of the VM model view that was provided by the user during the VM Create/Update operation.
resource Group Name
The name of the resource group.
vm Name
The name of the virtual machine.
See also
suspend fun getVirtualMachine(argument: suspend GetVirtualMachinePlainArgsBuilder.() -> Unit): GetVirtualMachineResult
Return
Describes a Virtual Machine.
Parameters
argument
Builder for com.pulumi.azurenative.compute.kotlin.inputs.GetVirtualMachinePlainArgs.