Skip to main content

machines

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

Overview

Namemachines
TypeResource
Idazure.hybrid_compute.machines

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource Id
namestringResource name
identityobjectHybrid Compute Machine Managed Identity (title: Managed Identity.)
locationstringResource location
propertiesobjectHybrid Compute Machine properties
tagsobjectResource tags
typestringResource type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, name$expandRetrieves information about the model view or the instance view of a hybrid machine.
list_by_resource_groupselectsubscriptionId, resourceGroupNameLists all the hybrid machines in the specified resource group. Use the nextLink property in the response to get the next page of hybrid machines.
list_by_subscriptionselectsubscriptionIdLists all the hybrid machines in the specified subscription. Use the nextLink property in the response to get the next page of hybrid machines.
create_or_updateinsertsubscriptionId, resourceGroupName, nameThe operation to create or update a hybrid machine resource identity in Azure.
updateupdatesubscriptionId, resourceGroupName, nameThe operation to update a hybrid machine.
deletedeletesubscriptionId, resourceGroupName, nameThe operation to remove a hybrid machine identity in Azure.
reconnectexecsubscriptionId, resourceGroupName, nameThe operation to reconnect a hybrid machine resource to its identity in Azure.

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
namestringThe name of the hybrid machine.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstringSubscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
$expandstringThe expand expression to apply on the operation.

SELECT examples

Retrieves information about the model view or the instance view of a hybrid machine.

SELECT
id,
name,
identity,
location,
properties,
tags,
type
FROM azure.hybrid_compute.machines
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND name = '{{ name }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

The operation to create or update a hybrid machine resource identity in Azure.

INSERT INTO azure.hybrid_compute.machines (
data__properties,
data__location,
data__tags,
data__identity,
subscriptionId,
resourceGroupName,
name
)
SELECT
'{{ properties }}',
'{{ location }}',
'{{ tags }}',
'{{ identity }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ name }}'
RETURNING
id,
name,
identity,
location,
properties,
tags,
type
;

UPDATE examples

The operation to update a hybrid machine.

UPDATE azure.hybrid_compute.machines
SET
data__identity = '{{ identity }}',
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND name = '{{ name }}' --required
RETURNING
id,
name,
identity,
location,
properties,
tags,
type;

DELETE examples

The operation to remove a hybrid machine identity in Azure.

DELETE FROM azure.hybrid_compute.machines
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND name = '{{ name }}' --required
;

Lifecycle Methods

The operation to reconnect a hybrid machine resource to its identity in Azure.

EXEC azure.hybrid_compute.machines.reconnect 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@name='{{ name }}' --required
@@json=
'{
"properties": "{{ properties }}"
}'
;