getVirtualMachine

Retrieves information about the model view or the instance view of a virtual machine. Uses Azure REST API version 2023-03-01. Other available API versions: 2023-07-01, 2023-09-01, 2024-03-01, 2024-07-01, 2024-11-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.

resourceGroupName

The name of the resource group.

vmName

The name of the virtual machine.

See also


Return

Describes a Virtual Machine.

Parameters

argument

Builder for com.pulumi.azurenative.compute.kotlin.inputs.GetVirtualMachinePlainArgs.

See also