Skip to main content

bare_metal_machines

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

Overview

Namebare_metal_machines
TypeResource
Idazure.nexus.bare_metal_machines

Fields

NameDatatypeDescription
associated_resource_idstextfield from the properties object
bareMetalMachineNametextfield from the properties object
bmc_connection_stringtextfield from the properties object
bmc_credentialstextfield from the properties object
bmc_mac_addresstextfield from the properties object
boot_mac_addresstextfield from the properties object
cluster_idtextfield from the properties object
cordon_statustextfield from the properties object
detailed_statustextfield from the properties object
detailed_status_messagetextfield from the properties object
extended_locationtextfield from the properties object
hardware_inventorytextfield from the properties object
hardware_validation_statustextfield from the properties object
hybrid_aks_clusters_associated_idstextfield from the properties object
kubernetes_node_nametextfield from the properties object
kubernetes_versiontextfield from the properties object
locationtextThe geo-location where the resource lives
machine_cluster_versiontextfield from the properties object
machine_detailstextfield from the properties object
machine_nametextfield from the properties object
machine_rolestextfield from the properties object
machine_sku_idtextfield from the properties object
oam_ipv4_addresstextfield from the properties object
oam_ipv6_addresstextfield from the properties object
os_imagetextfield from the properties object
power_statetextfield from the properties object
provisioning_statetextfield from the properties object
rack_idtextfield from the properties object
rack_slottextfield from the properties object
ready_statetextfield from the properties object
resourceGroupNametextfield from the properties object
runtime_protection_statustextfield from the properties object
secret_rotation_statustextfield from the properties object
serial_numbertextfield from the properties object
service_tagtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
virtual_machines_associated_idstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTbareMetalMachineName, resourceGroupName, subscriptionIdGet properties of the provided bare metal machine.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet a list of bare metal machines in the provided resource group.
list_by_subscriptionSELECTsubscriptionIdGet a list of bare metal machines in the provided subscription.
create_or_updateINSERTbareMetalMachineName, resourceGroupName, subscriptionId, data__extendedLocation, data__propertiesCreate a new bare metal machine or update the properties of the existing one.
All customer initiated requests will be rejected as the life cycle of this resource is managed by the system.
deleteDELETEbareMetalMachineName, resourceGroupName, subscriptionIdDelete the provided bare metal machine.
All customer initiated requests will be rejected as the life cycle of this resource is managed by the system.
updateUPDATEbareMetalMachineName, resourceGroupName, subscriptionIdPatch properties of the provided bare metal machine, or update tags associated with the bare metal machine. Properties and tag updates can be done independently.
cordonEXECbareMetalMachineName, resourceGroupName, subscriptionIdCordon the provided bare metal machine's Kubernetes node.
power_offEXECbareMetalMachineName, resourceGroupName, subscriptionIdPower off the provided bare metal machine.
reimageEXECbareMetalMachineName, resourceGroupName, subscriptionIdReimage the provided bare metal machine.
replaceEXECbareMetalMachineName, resourceGroupName, subscriptionIdReplace the provided bare metal machine.
restartEXECbareMetalMachineName, resourceGroupName, subscriptionIdRestart the provided bare metal machine.
run_commandEXECbareMetalMachineName, resourceGroupName, subscriptionId, data__limitTimeSeconds, data__scriptRun the command or the script on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available.
run_data_extractsEXECbareMetalMachineName, resourceGroupName, subscriptionId, data__commands, data__limitTimeSecondsRun one or more data extractions on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available.
run_read_commandsEXECbareMetalMachineName, resourceGroupName, subscriptionId, data__commands, data__limitTimeSecondsRun one or more read-only commands on the provided bare metal machine. The URL to storage account with the command execution results and the command exit code can be retrieved from the operation status API once available.
startEXECbareMetalMachineName, resourceGroupName, subscriptionIdStart the provided bare metal machine.
uncordonEXECbareMetalMachineName, resourceGroupName, subscriptionIdUncordon the provided bare metal machine's Kubernetes node.

SELECT examples

Get a list of bare metal machines in the provided subscription.

SELECT
associated_resource_ids,
bareMetalMachineName,
bmc_connection_string,
bmc_credentials,
bmc_mac_address,
boot_mac_address,
cluster_id,
cordon_status,
detailed_status,
detailed_status_message,
extended_location,
hardware_inventory,
hardware_validation_status,
hybrid_aks_clusters_associated_ids,
kubernetes_node_name,
kubernetes_version,
location,
machine_cluster_version,
machine_details,
machine_name,
machine_roles,
machine_sku_id,
oam_ipv4_address,
oam_ipv6_address,
os_image,
power_state,
provisioning_state,
rack_id,
rack_slot,
ready_state,
resourceGroupName,
runtime_protection_status,
secret_rotation_status,
serial_number,
service_tag,
subscriptionId,
tags,
virtual_machines_associated_ids
FROM azure.nexus.vw_bare_metal_machines
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a bare_metal_machines resource.

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

DELETE example

Deletes the specified bare_metal_machines resource.

/*+ delete */
DELETE FROM azure.nexus.bare_metal_machines
WHERE bareMetalMachineName = '{{ bareMetalMachineName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';