Virtual Machine Instances - Get

Gets a virtual machine.
Retrieves information about a virtual machine instance.

GET https://management.azure.com/{resourceUri}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default?api-version=2023-12-01

URI Parameters

Name In Required Type Description
resourceUri
path True

string

The fully qualified Azure Resource manager identifier of the Hybrid Compute machine resource to be extended.

api-version
query True

string

Client Api Version.

Responses

Name Type Description
200 OK

VirtualMachineInstance

Success

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

GetVirtualMachine

Sample request

GET https://management.azure.com/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default?api-version=2023-12-01

Sample response

{
  "id": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.HybridCompute/machines/DemoVM/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineInstances/default",
  "name": "default",
  "type": "Microsoft.ConnectedVMwarevSphere/VirtualMachines",
  "extendedLocation": {
    "type": "customLocation",
    "name": "/subscriptions/a5015e1c-867f-4533-8541-85cd470d0cfb/resourceGroups/demoRG/providers/Microsoft.ExtendedLocation/customLocations/contoso"
  },
  "properties": {
    "infrastructureProfile": {
      "templateId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VirtualMachineTemplates/WebFrontEndTemplate",
      "vCenterId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/VCenters/ContosoVCenter",
      "moRefId": "aaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
    },
    "placementProfile": {
      "resourcePoolId": "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/testrg/providers/Microsoft.ConnectedVMwarevSphere/ResourcePools/HRPool"
    },
    "osProfile": {
      "computerName": "DemoVM",
      "osType": "Windows"
    },
    "hardwareProfile": {
      "memorySizeMB": 4196,
      "numCPUs": 4
    },
    "provisioningState": "Succeeded"
  }
}

Definitions

Name Description
createdByType

The type of identity that created the resource.

DiskMode

Defines the different types of disk modes.

DiskType

Defines the different types of disks.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

ExtendedLocation

The extended location.

FirmwareType

Firmware type

HardwareProfile

Specifies the hardware settings for the virtual machine.

InfrastructureProfile

Specifies the vCenter infrastructure specific settings for the virtual machine.

IPAddressAllocationMethod

IP address allocation method.

NetworkInterface

Network Interface model

NetworkProfile

Specifies the network interfaces of the virtual machine.

NicIPAddressSettings

IP address information for a virtual network adapter reported by the fabric.

NicIPSettings

Defines the network interface ip settings.

NICType

NIC type

OsProfileForVMInstance

Specifies the operating system settings for the virtual machine.

OsType

Defines the different types of VM guest operating systems.

PlacementProfile

Specifies the compute and storage placement settings for the virtual machine.

PowerOnBootOption

Defines the options for power on boot.

ProvisioningState

Gets the provisioning state.

ResourceStatus

The resource status information.

SCSIControllerType

Defines the different types of SCSI controllers.

SecurityProfile

Specifies the Security profile settings for the virtual machine.

StorageProfile

Specifies the storage settings for the virtual machine disks.

systemData

Metadata pertaining to creation and last modification of the resource.

UefiSettings

Specifies the security settings like secure boot used while creating the virtual machine.

VirtualDisk

Virtual disk model

VirtualMachineInstance

Define the virtualMachineInstance.

VirtualSCSIController

This data object type contains the properties of a SCSI controller device attached to a virtual machine that is reported by the controller.

VirtualSCSISharing

Defines the sharing mode for sharing the SCSI bus.

WindowsConfiguration

Specifies the Windows Configuration settings for the virtual machine.

createdByType

The type of identity that created the resource.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

DiskMode

Defines the different types of disk modes.

Name Type Description
independent_nonpersistent

string

independent_persistent

string

persistent

string

DiskType

Defines the different types of disks.

Name Type Description
flat

string

pmem

string

rawphysical

string

rawvirtual

string

sesparse

string

sparse

string

unknown

string

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

ExtendedLocation

The extended location.

Name Type Description
name

string

The extended location name.

type

string

The extended location type.

FirmwareType

Firmware type

Name Type Description
bios

string

efi

string

HardwareProfile

Specifies the hardware settings for the virtual machine.

Name Type Description
cpuHotAddEnabled

boolean

Gets or sets a value indicating whether virtual processors can be added while this virtual machine is running.

cpuHotRemoveEnabled

boolean

Gets or sets a value indicating whether virtual processors can be removed while this virtual machine is running.

memoryHotAddEnabled

boolean

Gets or sets a value indicating whether memory can be added while this virtual machine is running.

memorySizeMB

integer

Gets or sets memory size in MBs for the vm.

numCPUs

integer

Gets or sets the number of vCPUs for the vm.

numCoresPerSocket

integer

Gets or sets the number of cores per socket for the vm. Defaults to 1 if unspecified.

InfrastructureProfile

Specifies the vCenter infrastructure specific settings for the virtual machine.

Name Type Description
customResourceName

string

Gets the name of the corresponding resource in Kubernetes.

firmwareType

FirmwareType

Firmware type

folderPath

string

Gets or sets the folder path of the vm.

instanceUuid

string

Gets or sets the instance uuid of the vm.

inventoryItemId

string

Gets or sets the inventory Item ID for the virtual machine.

moName

string

Gets or sets the vCenter Managed Object name for the virtual machine.

moRefId

string

Gets or sets the vCenter MoRef (Managed Object Reference) ID for the virtual machine.

smbiosUuid

string

Gets or sets the SMBIOS UUID of the vm.

templateId

string

Gets or sets the ARM Id of the template resource to deploy the virtual machine.

vCenterId

string

Gets or sets the ARM Id of the vCenter resource in which this resource pool resides.

IPAddressAllocationMethod

IP address allocation method.

Name Type Description
dynamic

string

linklayer

string

other

string

random

string

static

string

unset

string

NetworkInterface

Network Interface model

Name Type Description
deviceKey

integer

Gets or sets the device key value.

ipAddresses

string[]

Gets or sets the nic ip addresses.

ipSettings

NicIPSettings

Gets or sets the ipsettings.

label

string

Gets or sets the label of the virtual network in vCenter that the nic is connected to.

macAddress

string

Gets or sets the NIC MAC address.

name

string

Gets or sets the name of the network interface.

networkId

string

Gets or sets the ARM Id of the network resource to connect the virtual machine.

networkMoName

string

Gets or sets the name of the virtual network in vCenter that the nic is connected to.

networkMoRefId

string

Gets or sets the vCenter MoRef (Managed Object Reference) ID of the virtual network that the nic is connected to.

nicType

NICType

NIC type

powerOnBoot

PowerOnBootOption

Gets or sets the power on boot.

NetworkProfile

Specifies the network interfaces of the virtual machine.

Name Type Description
networkInterfaces

NetworkInterface[]

Gets or sets the list of network interfaces associated with the virtual machine.

NicIPAddressSettings

IP address information for a virtual network adapter reported by the fabric.

Name Type Description
allocationMethod

string

Gets the ip address allocation method.

ipAddress

string

Gets the ip address for the nic.

subnetMask

string

Gets the mask.

NicIPSettings

Defines the network interface ip settings.

Name Type Description
allocationMethod

IPAddressAllocationMethod

Gets or sets the nic allocation method.

dnsServers

string[]

Gets or sets the dns servers.

gateway

string[]

Gets or sets the gateway.

ipAddress

string

Gets or sets the ip address for the nic.

ipAddressInfo

NicIPAddressSettings[]

Gets or sets the IP address information being reported for this NIC. This contains the same IPv4 information above plus IPV6 information.

primaryWinsServer

string

Gets or sets the primary server.

secondaryWinsServer

string

Gets or sets the secondary server.

subnetMask

string

Gets or sets the mask.

NICType

NIC type

Name Type Description
e1000

string

e1000e

string

pcnet32

string

vmxnet

string

vmxnet2

string

vmxnet3

string

OsProfileForVMInstance

Specifies the operating system settings for the virtual machine.

Name Type Description
adminPassword

string

Sets administrator password.

adminUsername

string

Gets or sets administrator username.

computerName

string

Gets or sets computer name.

guestId

string

Gets or sets the guestId.

osSku

string

Gets or sets os sku.

osType

OsType

Gets or sets the type of the os.

toolsRunningStatus

string

Gets or sets the current running status of VMware Tools running in the guest operating system.

toolsVersion

string

Gets or sets the current version of VMware Tools.

toolsVersionStatus

string

Gets or sets the current version status of VMware Tools installed in the guest operating system.

windowsConfiguration

WindowsConfiguration

Windows Configuration.

OsType

Defines the different types of VM guest operating systems.

Name Type Description
Linux

string

Other

string

Windows

string

PlacementProfile

Specifies the compute and storage placement settings for the virtual machine.

Name Type Description
clusterId

string

Gets or sets the ARM Id of the cluster resource on which this virtual machine will deploy.

datastoreId

string

Gets or sets the ARM Id of the datastore resource on which the data for the virtual machine will be kept.

hostId

string

Gets or sets the ARM Id of the host resource on which this virtual machine will deploy.

resourcePoolId

string

Gets or sets the ARM Id of the resourcePool resource on which this virtual machine will deploy.

PowerOnBootOption

Defines the options for power on boot.

Name Type Description
disabled

string

enabled

string

ProvisioningState

Gets the provisioning state.

Name Type Description
Accepted

string

Canceled

string

Created

string

Deleting

string

Failed

string

Provisioning

string

Succeeded

string

Updating

string

ResourceStatus

The resource status information.

Name Type Description
lastUpdatedAt

string

The last update time for this condition.

message

string

A human readable message indicating details about the status.

reason

string

The reason for the condition's status.

severity

string

Severity with which to treat failures of this type of condition.

status

string

Status of the condition.

type

string

The type of the condition.

SCSIControllerType

Defines the different types of SCSI controllers.

Name Type Description
buslogic

string

lsilogic

string

lsilogicsas

string

pvscsi

string

SecurityProfile

Specifies the Security profile settings for the virtual machine.

Name Type Description
uefiSettings

UefiSettings

Specifies the security settings like secure boot used while creating the virtual machine.

StorageProfile

Specifies the storage settings for the virtual machine disks.

Name Type Description
disks

VirtualDisk[]

Gets or sets the list of virtual disks associated with the virtual machine.

scsiControllers

VirtualSCSIController[]

Gets or sets the list of virtual SCSI controllers associated with the virtual machine.

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.

UefiSettings

Specifies the security settings like secure boot used while creating the virtual machine.

Name Type Description
secureBootEnabled

boolean

Specifies whether secure boot should be enabled on the virtual machine.

VirtualDisk

Virtual disk model

Name Type Description
controllerKey

integer

Gets or sets the controller id.

deviceKey

integer

Gets or sets the device key value.

deviceName

string

Gets or sets the device name.

diskMode

DiskMode

Gets or sets the disk mode.

diskObjectId

string

Gets or sets the disk object id.

diskSizeGB

integer

Gets or sets the disk total size.

diskType

DiskType

Gets or sets the disk backing type.

label

string

Gets or sets the label of the virtual disk in vCenter.

name

string

Gets or sets the name of the virtual disk.

unitNumber

integer

Gets or sets the unit number of the disk on the controller.

VirtualMachineInstance

Define the virtualMachineInstance.

Name Type Description
extendedLocation

ExtendedLocation

Gets or sets the extended location.

id

string

Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"

name

string

The name of the resource

properties.hardwareProfile

HardwareProfile

Hardware properties.

properties.infrastructureProfile

InfrastructureProfile

Gets the infrastructure profile.

properties.networkProfile

NetworkProfile

Network properties.

properties.osProfile

OsProfileForVMInstance

OS properties.

properties.placementProfile

PlacementProfile

Placement properties.

properties.powerState

string

Gets the power state of the virtual machine.

properties.provisioningState

ProvisioningState

Gets the provisioning state.

properties.resourceUid

string

Gets or sets a unique identifier for the vm resource.

properties.securityProfile

SecurityProfile

Gets the security profile.

properties.statuses

ResourceStatus[]

The resource status information.

properties.storageProfile

StorageProfile

Storage properties.

systemData

systemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

VirtualSCSIController

This data object type contains the properties of a SCSI controller device attached to a virtual machine that is reported by the controller.

Name Type Description
busNumber

integer

Gets or sets the bus number of the controller.

controllerKey

integer

Gets or sets the key of the controller.

scsiCtlrUnitNumber

integer

Gets or sets the SCSI controller unit number.

sharing

VirtualSCSISharing

Gets or sets the sharing mode.

type

SCSIControllerType

Gets or sets the controller type.

VirtualSCSISharing

Defines the sharing mode for sharing the SCSI bus.

Name Type Description
noSharing

string

physicalSharing

string

virtualSharing

string

WindowsConfiguration

Specifies the Windows Configuration settings for the virtual machine.

Name Type Description
autoLogon

boolean

Sets a value indicating whether auto logon is enabled.

autoLogonCount

integer

Sets auto logon count.

domainName

string

Sets domain name that vm should join.

domainUserPassword

string

Sets domain user password.

domainUsername

string

Sets domain username.

firstLogonCommands

string[]

Sets first logon commands

fullName

string

Sets full name of the owner of the vm.

orgName

string

Sets org name to which the owner of the vm belongs.

productId

string

Sets product id of the vm.

timeZone

string

Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". Time zone name correspond to time zones listed at Microsoft Time Zone name values(https://learn.microsoft.com/en-us/previous-versions/windows/embedded/ms912391(v=winembedded.11)).

workGroupName

string

Sets work group name that vm should join.