Skip to main content

azure_bare_metal_instances

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

Overview

Nameazure_bare_metal_instances
TypeResource
Idazure.bare_metal_infrastructure.azure_bare_metal_instances

Fields

NameDatatypeDescription
azureBareMetalInstanceNametextfield from the properties object
azure_bare_metal_instance_idtextfield from the properties object
hardware_profiletextfield from the properties object
hw_revisiontextfield from the properties object
locationtextThe geo-location where the resource lives
network_profiletextfield from the properties object
os_profiletextfield from the properties object
partner_node_idtextfield from the properties object
power_statetextfield from the properties object
provisioning_statetextfield from the properties object
proximity_placement_grouptextfield from the properties object
resourceGroupNametextfield from the properties object
storage_profiletextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTazureBareMetalInstanceName, resourceGroupName, subscriptionIdGets an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets a list of Azure Bare Metal Instances in the specified subscription and resource group. The operations returns various properties of each Azure Bare Metal Instance.
list_by_subscriptionSELECTsubscriptionIdReturns a list of Azure Bare Metal Instances in the specified subscription. The operations returns various properties of each Azure Bare Metal Instance.
createINSERTazureBareMetalInstanceName, resourceGroupName, subscriptionIdCreates an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
deleteDELETEazureBareMetalInstanceName, resourceGroupName, subscriptionIdDeletes an Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
updateUPDATEazureBareMetalInstanceName, resourceGroupName, subscriptionIdPatches the Tags field of a Azure Bare Metal Instance for the specified subscription, resource group, and instance name.
restartEXECazureBareMetalInstanceName, resourceGroupName, subscriptionIdThe operation to restart an Azure Bare Metal Instance
shutdownEXECazureBareMetalInstanceName, resourceGroupName, subscriptionIdThe operation to shutdown an Azure Bare Metal Instance
startEXECazureBareMetalInstanceName, resourceGroupName, subscriptionIdThe operation to start an Azure Bare Metal instance

SELECT examples

Returns a list of Azure Bare Metal Instances in the specified subscription. The operations returns various properties of each Azure Bare Metal Instance.

SELECT
azureBareMetalInstanceName,
azure_bare_metal_instance_id,
hardware_profile,
hw_revision,
location,
network_profile,
os_profile,
partner_node_id,
power_state,
provisioning_state,
proximity_placement_group,
resourceGroupName,
storage_profile,
subscriptionId,
tags
FROM azure.bare_metal_infrastructure.vw_azure_bare_metal_instances
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.bare_metal_infrastructure.azure_bare_metal_instances (
azureBareMetalInstanceName,
resourceGroupName,
subscriptionId,
properties,
tags,
location
)
SELECT
'{{ azureBareMetalInstanceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a azure_bare_metal_instances resource.

/*+ update */
UPDATE azure.bare_metal_infrastructure.azure_bare_metal_instances
SET
tags = '{{ tags }}'
WHERE
azureBareMetalInstanceName = '{{ azureBareMetalInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified azure_bare_metal_instances resource.

/*+ delete */
DELETE FROM azure.bare_metal_infrastructure.azure_bare_metal_instances
WHERE azureBareMetalInstanceName = '{{ azureBareMetalInstanceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';