Consoles - Get
Retrieve the virtual machine console.
Get properties of the provided virtual machine console.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}/consoles/{consoleName}?api-version=2024-07-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
console
|
path | True |
string |
The name of the virtual machine console. Regex pattern: |
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string uuid |
The ID of the target subscription. The value must be an UUID. |
virtual
|
path | True |
string |
The name of the virtual machine. Regex pattern: |
api-version
|
query | True |
string |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The resource has been successfully retrieved. |
|
Other Status Codes |
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
Get virtual machine console
Sample request
GET https://management.azure.com/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/virtualMachines/virtualMachineName/consoles/default?api-version=2024-07-01
Sample response
{
"id": "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/virtualMachines/virtualMachineName/consoles/default",
"name": "default",
"systemData": {
"createdAt": "2021-01-22T13:27:03.008Z",
"createdBy": "identityA",
"createdByType": "Application",
"lastModifiedAt": "2021-01-22T13:29:03.001Z",
"lastModifiedBy": "identityB",
"lastModifiedByType": "User"
},
"type": "Microsoft.NetworkCloud/virtualMachines/consoles",
"location": "location",
"tags": {
"key1": "myvalue1",
"key2": "myvalue2"
},
"extendedLocation": {
"type": "CustomLocation",
"name": "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterManagerExtendedLocationName"
},
"properties": {
"sshPublicKey": {
"keyData": "ssh-rsa AAtsE3njSONzDYRIZv/WLjVuMfrUSByHp+jfaaOLHTIIB4fJvo6dQUZxE20w2iDHV3tEkmnTo84eba97VMueQD6OzJPEyWZMRpz8UYWOd0IXeRqiFu1lawNblZhwNT/ojNZfpB3af/YDzwQCZgTcTRyNNhL4o/blKUmug0daSsSXISTRnIDpcf5qytjs1Xo+yYyJMvzLL59mhAyb3p/cD+Y3/s3WhAx+l0XOKpzXnblrv9d3q4c2tWmm/SyFqthaqd0= admin@vm"
},
"enabled": "True",
"expiration": "2022-06-01T01:27:03.008Z",
"provisioningState": "Succeeded",
"privateLinkServiceId": "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.Network/privateLinkServices/console-pls",
"virtualMachineAccessId": "VirtualMachineAccessId",
"detailedStatus": "Ready",
"detailedStatusMessage": "Console is ready for use"
}
}
Definitions
Name | Description |
---|---|
Console |
Console represents the console of an on-premises Network Cloud virtual machine. |
Console |
The more detailed status of the console. |
Console |
The indicator of whether the console access is enabled. |
Console |
The provisioning state of the virtual machine console. |
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Extended |
ExtendedLocation represents the Azure custom location where the resource will be created. |
Ssh |
SshPublicKey represents the public key used to authenticate with a resource through SSH. |
system |
Metadata pertaining to creation and last modification of the resource. |
Console
Console represents the console of an on-premises Network Cloud virtual machine.
Name | Type | Description |
---|---|---|
extendedLocation |
ExtendedLocation represents the Azure custom location where the resource will be created. |
|
id |
string |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
location |
string |
The geo-location where the resource lives |
name |
string |
The name of the resource |
properties.detailedStatus |
The more detailed status of the console. |
|
properties.detailedStatusMessage |
string |
The descriptive message about the current detailed status. |
properties.enabled |
The indicator of whether the console access is enabled. |
|
properties.expiration |
string |
The date and time after which the key will be disallowed access. |
properties.privateLinkServiceId |
string |
The resource ID of the private link service that is used to provide virtual machine console access. |
properties.provisioningState |
The provisioning state of the virtual machine console. |
|
properties.sshPublicKey |
SshPublicKey represents the public key used to authenticate with a resource through SSH. |
|
properties.virtualMachineAccessId |
string |
The unique identifier for the virtual machine that is used to access the console. |
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
tags |
object |
Resource tags. |
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
ConsoleDetailedStatus
The more detailed status of the console.
Name | Type | Description |
---|---|---|
Error |
string |
|
Ready |
string |
ConsoleEnabled
The indicator of whether the console access is enabled.
Name | Type | Description |
---|---|---|
False |
string |
|
True |
string |
ConsoleProvisioningState
The provisioning state of the virtual machine console.
Name | Type | Description |
---|---|---|
Accepted |
string |
|
Canceled |
string |
|
Failed |
string |
|
Provisioning |
string |
|
Succeeded |
string |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
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 |
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
ExtendedLocation represents the Azure custom location where the resource will be created.
Name | Type | Description |
---|---|---|
name |
string |
The resource ID of the extended location on which the resource will be created. |
type |
string |
The extended location type, for example, CustomLocation. |
SshPublicKey
SshPublicKey represents the public key used to authenticate with a resource through SSH.
Name | Type | Description |
---|---|---|
keyData |
string |
The SSH public key data. |
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. |