Skip to main content

consoles

Creates, updates, deletes, gets or lists a consoles resource.

Overview

Nameconsoles
TypeResource
Idazure.nexus.consoles

Fields

NameDatatypeDescription
consoleNametextfield from the properties object
detailed_statustextfield from the properties object
detailed_status_messagetextfield from the properties object
enabledtextfield from the properties object
expirationtextfield from the properties object
extended_locationtextfield from the properties object
locationtextThe geo-location where the resource lives
private_link_service_idtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
ssh_public_keytextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
virtualMachineNametextfield from the properties object
virtual_machine_access_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTconsoleName, resourceGroupName, subscriptionId, virtualMachineNameGet properties of the provided virtual machine console.
list_by_virtual_machineSELECTresourceGroupName, subscriptionId, virtualMachineNameGet a list of consoles for the provided virtual machine.
create_or_updateINSERTconsoleName, resourceGroupName, subscriptionId, virtualMachineName, data__extendedLocation, data__propertiesCreate a new virtual machine console or update the properties of the existing virtual machine console.
deleteDELETEconsoleName, resourceGroupName, subscriptionId, virtualMachineNameDelete the provided virtual machine console.
updateUPDATEconsoleName, resourceGroupName, subscriptionId, virtualMachineNamePatch the properties of the provided virtual machine console, or update the tags associated with the virtual machine console. Properties and tag updates can be done independently.

SELECT examples

Get a list of consoles for the provided virtual machine.

SELECT
consoleName,
detailed_status,
detailed_status_message,
enabled,
expiration,
extended_location,
location,
private_link_service_id,
provisioning_state,
resourceGroupName,
ssh_public_key,
subscriptionId,
tags,
virtualMachineName,
virtual_machine_access_id
FROM azure.nexus.vw_consoles
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualMachineName = '{{ virtualMachineName }}';

INSERT example

Use the following StackQL query and manifest file to create a new consoles resource.

/*+ create */
INSERT INTO azure.nexus.consoles (
consoleName,
resourceGroupName,
subscriptionId,
virtualMachineName,
data__extendedLocation,
data__properties,
extendedLocation,
properties,
tags,
location
)
SELECT
'{{ consoleName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ virtualMachineName }}',
'{{ data__extendedLocation }}',
'{{ data__properties }}',
'{{ extendedLocation }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a consoles resource.

/*+ update */
UPDATE azure.nexus.consoles
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
consoleName = '{{ consoleName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualMachineName = '{{ virtualMachineName }}';

DELETE example

Deletes the specified consoles resource.

/*+ delete */
DELETE FROM azure.nexus.consoles
WHERE consoleName = '{{ consoleName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND virtualMachineName = '{{ virtualMachineName }}';