Skip to main content

azure_bare_metal_instances

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

Overview

Nameazure_bare_metal_instances
TypeResource
Idazure.bare_metal_infrastructure.azure_bare_metal_instances

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
azureBareMetalInstanceIdstringSpecifies the AzureBareMetal instance unique ID.
hardwareProfileobjectSpecifies the hardware settings for the AzureBareMetal instance.
hwRevisionstringHardware revision of an AzureBareMetal instance.
locationstringThe geo-location where the resource lives. Required.
networkProfileobjectSpecifies the network settings for the AzureBareMetal instance.
osProfileobjectSpecifies the operating system settings for the AzureBareMetal instance.
partnerNodeIdstringARM ID of another AzureBareMetalInstance that will share a network with this AzureBareMetalInstance.
powerStatestringResource power state. Known values are: "starting", "started", "stopping", "stopped", "restarting", and "unknown".
provisioningStatestringState of provisioning of the AzureBareMetalInstance. Known values are: "Accepted", "Creating", "Updating", "Failed", "Succeeded", "Deleting", and "Migrating".
proximityPlacementGroupstringResource proximity placement group.
storageProfileobjectSpecifies the storage settings for the AzureBareMetal instance disks.
systemDataobjectThe system metadata relating to this resource.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, azure_bare_metal_instance_name, subscription_idGets an Azure BareMetal instance. Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.
list_by_resource_groupselectresource_group_name, subscription_idGets a list of Azure BareMetal instances in the specified subscription and resource group. Gets a list of AzureBareMetal instances in the specified subscription and resource group. The operations returns various properties of each Azure BareMetal instance.
list_by_subscriptionselectsubscription_idGets a list of Azure BareMetal instances in the specified subscription. Gets a list of AzureBareMetal instances in the specified subscription. The operations returns various properties of each Azure BareMetal instance.
updateupdateresource_group_name, azure_bare_metal_instance_name, subscription_idPatches the Tags field of a Azure BareMetal instance. Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and instance name.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
azure_bare_metal_instance_namestringName of the Azure BareMetal on Azure instance. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets an Azure BareMetal instance. Gets an Azure BareMetal instance for the specified subscription, resource group, and instance name.

SELECT
id,
name,
azureBareMetalInstanceId,
hardwareProfile,
hwRevision,
location,
networkProfile,
osProfile,
partnerNodeId,
powerState,
provisioningState,
proximityPlacementGroup,
storageProfile,
systemData,
tags,
type
FROM azure.bare_metal_infrastructure.azure_bare_metal_instances
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND azure_bare_metal_instance_name = '{{ azure_bare_metal_instance_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

UPDATE examples

Patches the Tags field of a Azure BareMetal instance. Patches the Tags field of a Azure BareMetal instance for the specified subscription, resource group, and instance name.

UPDATE azure.bare_metal_infrastructure.azure_bare_metal_instances
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND azure_bare_metal_instance_name = '{{ azure_bare_metal_instance_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;