Virtual Machine Instances - Get
Gets a virtual machine.
Retrieves information about a virtual machine instance.
GET https://management.azure.com/{resourceUri}/providers/Microsoft.ScVmm/virtualMachineInstances/default?api-version=2024-06-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
string |
The fully qualified Azure Resource manager identifier of the resource. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Azure operation completed successfully. |
|
Other Status Codes |
An unexpected error response. |
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
Virtual |
Virtual |
VirtualMachineInstances_Get_MaximumSet
Sample request
GET https://management.azure.com/gtgclehcbsyave/providers/Microsoft.ScVmm/virtualMachineInstances/default?api-version=2024-06-01
Sample response
{
"properties": {
"availabilitySets": [
{
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/availabilitySets/availabilitySetResourceName",
"name": "lwbhaseo"
}
],
"osProfile": {
"computerName": "uuxpcxuxcufllc",
"osType": "Windows",
"osSku": "cxqnjxgkts",
"osVersion": "djt",
"domainName": "vblzsoqxzlrygdulnefexjdezo",
"domainUsername": "sn",
"workgroup": "bsqftibgcnnjpvmuxligk",
"timezone": 4,
"runOnceCommands": "byxpnluptiwxycbbybsf;qwerty"
},
"hardwareProfile": {
"memoryMB": 5,
"cpuCount": 22,
"limitCpuForMigration": "true",
"dynamicMemoryEnabled": "true",
"dynamicMemoryMaxMB": 2,
"dynamicMemoryMinMB": 30,
"isHighlyAvailable": "true"
},
"networkProfile": {
"networkInterfaces": [
{
"name": "kvofzqulbjlbtt",
"displayName": "yoayfd",
"ipv4Addresses": [
"eeunirpkpqazzxhsqonkxcfuks"
],
"ipv6Addresses": [
"pk"
],
"macAddress": "oaeqqegt",
"virtualNetworkId": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/virtualNetworks/virtualNetworkName",
"networkName": "lqbm",
"ipv4AddressType": "Dynamic",
"ipv6AddressType": "Dynamic",
"macAddressType": "Dynamic",
"nicId": "roxpsvlo"
}
]
},
"storageProfile": {
"disks": [
{
"name": "fgnckfymwdsqnfxkdvexuaobe",
"displayName": "fgladknawlgjodo",
"diskId": "ltdrwcfjklpsimhzqyh",
"diskSizeGB": 30,
"maxDiskSizeGB": 18,
"bus": 8,
"lun": 10,
"busType": "zu",
"vhdType": "cnbeeeylrvopigdynvgpkfp",
"volumeType": "ckkymkuekzzqhexyjueruzlfemoeln",
"vhdFormatType": "vbcrrmhgahznifudvhxfagwoplcb",
"templateDiskId": "lcdwrokpyvekqccclf",
"storageQoSPolicy": {
"name": "ceiyfrflu",
"id": "o"
},
"createDiffDisk": "true"
}
]
},
"infrastructureProfile": {
"inventoryItemId": "ihkkqmg",
"vmmServerId": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/vmmServers/vmmServerName",
"cloudId": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/clouds/cloudResourceName",
"templateId": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/virtualMachineTemplates/virtualMachineTemplateName",
"vmName": "qovpayfydhcvfrhe",
"uuid": "hrpw",
"lastRestoredVMCheckpoint": {
"parentCheckpointID": "hqhhzikoxunuqguouw",
"checkpointID": "wsqmrje",
"name": "keqn",
"description": "qurzfrgyflrh"
},
"checkpoints": [
{
"parentCheckpointID": "hqhhzikoxunuqguouw",
"checkpointID": "wsqmrje",
"name": "keqn",
"description": "qurzfrgyflrh"
}
],
"checkpointType": "jkbpzjxpeegackhsvikrnlnwqz",
"generation": 28,
"biosGuid": "xixivxifyql"
},
"powerState": "dbqyxewvrbqcifpwfvxyllwyaffmvm",
"provisioningState": "Succeeded"
},
"extendedLocation": {
"type": "customLocation",
"name": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/customLocationName"
},
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/virtualMachineInstances/default",
"name": "uuqpsdoiyvedvqtrwop",
"type": "zculorteltpvthtzgnpgdpoe",
"systemData": {
"createdBy": "p",
"createdByType": "User",
"createdAt": "2024-01-29T22:28:00.094Z",
"lastModifiedBy": "goxcwpyyqlxndquly",
"lastModifiedByType": "User",
"lastModifiedAt": "2024-01-29T22:28:00.095Z"
}
}
VirtualMachineInstances_Get_MinimumSet
Sample request
GET https://management.azure.com/gtgclehcbsyave/providers/Microsoft.ScVmm/virtualMachineInstances/default?api-version=2024-06-01
Sample response
{
"id": "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.ScVmm/virtualMachineInstances/default",
"extendedLocation": {}
}
Definitions
Name | Description |
---|---|
Allocation |
Network address allocation method. |
Availability |
Availability Set model |
Checkpoint |
Defines the resource properties. |
created |
The type of identity that created the resource. |
Create |
Create diff disk. |
Dynamic |
Dynamic memory enabled. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Extended |
The extended location. |
Hardware |
Defines the resource properties. |
Infrastructure |
Specifies the vmmServer infrastructure specific settings for the virtual machine instance. |
Is |
Highly available. |
Limit |
Limit CPU for migration. |
Network |
Network Interface model |
Network |
Defines the resource properties. |
Os |
Defines the resource properties. |
Os |
Virtual machine operating system type. |
Provisioning |
The provisioning state of the resource. |
Storage |
Defines the resource properties. |
Storage |
The StorageQoSPolicyDetails definition. |
system |
Metadata pertaining to creation and last modification of the resource. |
Virtual |
Virtual disk model |
Virtual |
Define the virtualMachineInstance. |
AllocationMethod
Network address allocation method.
Name | Type | Description |
---|---|---|
Dynamic |
string |
Dynamically allocated address. |
Static |
string |
Statically allocated address. |
AvailabilitySetListItem
Availability Set model
Name | Type | Description |
---|---|---|
id |
string |
Gets the ARM Id of the microsoft.scvmm/availabilitySets resource. |
name |
string |
Gets or sets the name of the availability set. |
Checkpoint
Defines the resource properties.
Name | Type | Description |
---|---|---|
checkpointID |
string |
Gets ID of the checkpoint. |
description |
string |
Gets description of the checkpoint. |
name |
string |
Gets name of the checkpoint. |
parentCheckpointID |
string |
Gets ID of parent of the checkpoint. |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
CreateDiffDisk
Create diff disk.
Name | Type | Description |
---|---|---|
false |
string |
Disable create diff disk. |
true |
string |
Enable create diff disk. |
DynamicMemoryEnabled
Dynamic memory enabled.
Name | Type | Description |
---|---|---|
false |
string |
Disable dynamic memory. |
true |
string |
Enable dynamic memory. |
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 |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
ExtendedLocation
The extended location.
Name | Type | Description |
---|---|---|
name |
string |
The extended location name. |
type |
string |
The extended location type. |
HardwareProfile
Defines the resource properties.
Name | Type | Description |
---|---|---|
cpuCount |
integer |
Gets or sets the number of vCPUs for the vm. |
dynamicMemoryEnabled |
Gets or sets a value indicating whether to enable dynamic memory or not. |
|
dynamicMemoryMaxMB |
integer |
Gets or sets the max dynamic memory for the vm. |
dynamicMemoryMinMB |
integer |
Gets or sets the min dynamic memory for the vm. |
isHighlyAvailable |
Gets highly available property. |
|
limitCpuForMigration |
Gets or sets a value indicating whether to enable processor compatibility mode for live migration of VMs. |
|
memoryMB |
integer |
MemoryMB is the size of a virtual machine's memory, in MB. |
InfrastructureProfile
Specifies the vmmServer infrastructure specific settings for the virtual machine instance.
Name | Type | Description |
---|---|---|
biosGuid |
string |
Gets or sets the bios guid for the vm. |
checkpointType |
string |
Type of checkpoint supported for the vm. |
checkpoints |
Checkpoints in the vm. |
|
cloudId |
string |
ARM Id of the cloud resource to use for deploying the vm. |
generation |
integer |
Gets or sets the generation for the vm. |
inventoryItemId |
string |
Gets or sets the inventory Item ID for the resource. |
lastRestoredVMCheckpoint |
Last restored checkpoint in the vm. |
|
templateId |
string |
ARM Id of the template resource to use for deploying the vm. |
uuid |
string |
Unique ID of the virtual machine. |
vmName |
string |
VMName is the name of VM on the SCVmm server. |
vmmServerId |
string |
ARM Id of the vmmServer resource in which this resource resides. |
IsHighlyAvailable
Highly available.
Name | Type | Description |
---|---|---|
false |
string |
Disable highly available. |
true |
string |
Enable highly available. |
LimitCpuForMigration
Limit CPU for migration.
Name | Type | Description |
---|---|---|
false |
string |
Disable limit CPU for migration. |
true |
string |
Enable limit CPU for migration. |
NetworkInterface
Network Interface model
Name | Type | Description |
---|---|---|
displayName |
string |
Gets the display name of the network interface as shown in the vmmServer. This is the fallback label for a NIC when the name is not set. |
ipv4AddressType |
Gets or sets the ipv4 address type. |
|
ipv4Addresses |
string[] |
Gets the nic ipv4 addresses. |
ipv6AddressType |
Gets or sets the ipv6 address type. |
|
ipv6Addresses |
string[] |
Gets the nic ipv6 addresses. |
macAddress |
string |
Gets or sets the nic MAC address. |
macAddressType |
Gets or sets the mac address type. |
|
name |
string |
Gets or sets the name of the network interface. |
networkName |
string |
Gets the name of the virtual network in vmmServer that the nic is connected to. |
nicId |
string |
Gets or sets the nic id. |
virtualNetworkId |
string |
Gets or sets the ARM Id of the Microsoft.ScVmm/virtualNetwork resource to connect the nic. |
NetworkProfile
Defines the resource properties.
Name | Type | Description |
---|---|---|
networkInterfaces |
Gets or sets the list of network interfaces associated with the virtual machine. |
OsProfileForVmInstance
Defines the resource properties.
Name | Type | Description |
---|---|---|
adminPassword |
string |
Admin password of the virtual machine. |
computerName |
string |
Gets or sets computer name. |
domainName |
string |
Gets or sets the domain name. |
domainPassword |
string |
Password of the domain the VM has to join. |
domainUsername |
string |
Gets or sets the domain username. |
osSku |
string |
Gets os sku. |
osType |
Gets the type of the os. |
|
osVersion |
string |
Gets os version. |
productKey |
string |
Gets or sets the product key.Input format xxxxx-xxxxx-xxxxx-xxxxx-xxxxx |
runOnceCommands |
string |
Get or sets the commands to be run once at the time of creation separated by semicolons. |
timezone |
integer |
Gets or sets the index value of the timezone. |
workgroup |
string |
Gets or sets the workgroup. |
OsType
Virtual machine operating system type.
Name | Type | Description |
---|---|---|
Linux |
string |
Linux operating system. |
Other |
string |
Other operating system. |
Windows |
string |
Windows operating system. |
ProvisioningState
The provisioning state of the resource.
Name | Type | Description |
---|---|---|
Accepted |
string |
The resource has been accepted. |
Canceled |
string |
Resource creation was canceled. |
Created |
string |
The resource was created. |
Deleting |
string |
The resource is being deleted. |
Failed |
string |
Resource creation failed. |
Provisioning |
string |
The resource is provisioning. |
Succeeded |
string |
Resource has been created. |
Updating |
string |
The resource is updating. |
StorageProfile
Defines the resource properties.
Name | Type | Description |
---|---|---|
disks |
Gets or sets the list of virtual disks associated with the virtual machine. |
StorageQosPolicyDetails
The StorageQoSPolicyDetails definition.
Name | Type | Description |
---|---|---|
id |
string |
The ID of the QoS policy. |
name |
string |
The name of the policy. |
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 |
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 |
The type of identity that last modified the resource. |
VirtualDisk
Virtual disk model
Name | Type | Description |
---|---|---|
bus |
integer |
Gets or sets the disk bus. |
busType |
string |
Gets or sets the disk bus type. |
createDiffDisk |
Gets or sets a value indicating diff disk. |
|
diskId |
string |
Gets or sets the disk id. |
diskSizeGB |
integer |
Gets or sets the disk total size. |
displayName |
string |
Gets the display name of the virtual disk as shown in the vmmServer. This is the fallback label for a disk when the name is not set. |
lun |
integer |
Gets or sets the disk lun. |
maxDiskSizeGB |
integer |
Gets the max disk size. |
name |
string |
Gets or sets the name of the disk. |
storageQoSPolicy |
The QoS policy for the disk. |
|
templateDiskId |
string |
Gets or sets the disk id in the template. |
vhdFormatType |
string |
Gets the disk vhd format type. |
vhdType |
string |
Gets or sets the disk vhd type. |
volumeType |
string |
Gets the disk volume type. |
VirtualMachineInstance
Define the virtualMachineInstance.
Name | Type | Description |
---|---|---|
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.availabilitySets |
Availability Sets in vm. |
|
properties.hardwareProfile |
Hardware properties. |
|
properties.infrastructureProfile |
Gets the infrastructure profile. |
|
properties.networkProfile |
Network properties. |
|
properties.osProfile |
OS properties. |
|
properties.powerState |
string |
Gets the power state of the virtual machine. |
properties.provisioningState |
Provisioning state of the resource. |
|
properties.storageProfile |
Storage properties. |
|
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" |