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
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
adFqdnstringSpecifies the AD fully qualified display name.
agentConfigurationobjectConfigurable properties that the user can set locally via the azcmagent config command, or remotely via ARM.
agentUpgradeobjectThe info of the machine w.r.t Agent Upgrade.
agentVersionstringThe hybrid machine agent full version.
clientPublicKeystringPublic Key that the client provides to be used during initial resource onboarding.
cloudMetadataobjectThe metadata of the cloud environment (Azure/GCP/AWS/OCI...).
detectedPropertiesobjectDetected properties from the machine.
displayNamestringSpecifies the hybrid machine display name.
dnsFqdnstringSpecifies the DNS fully qualified display name.
domainNamestringSpecifies the Windows domain name.
errorDetailsarrayDetails about the error state.
extensionsarrayMachine Extensions information (deprecated field).
firmwareProfileobjectInformation about the machine's firmware.
hardwareProfileobjectInformation about the machine's hardware.
hardwareResourceIdstringSpecifies the resource ID of the associated hardware device. Only settable by HCI RP.
identityobjectIdentity for the resource.
identityKeyStorestringSpecifies the identity key store a machine is using. Known values are: "TPM" and "Default". (TPM, Default)
kindstringIndicates which kind of Arc machine placement on-premises, such as HCI, SCVMM or VMware etc. Known values are: "AVS", "HCI", "SCVMM", "VMware", "EPS", "GCP", and "AWS". (AVS, HCI, SCVMM, VMware, EPS, GCP, AWS)
lastStatusChangestring (date-time)The time of the last status change.
licenseProfileobjectSpecifies the License related properties for a machine.
locationstringThe geo-location where the resource lives. Required.
locationDataobjectMetadata pertaining to the geographic location of the resource.
machineFqdnstringSpecifies the hybrid machine FQDN.
mssqlDiscoveredstringSpecifies whether any MS SQL instance is discovered on the machine.
networkProfileobjectInformation about the network the machine is on.
osEditionstringThe edition of the Operating System.
osNamestringThe Operating System running on the hybrid machine.
osProfileobjectSpecifies the operating system settings for the hybrid machine.
osSkustringSpecifies the Operating System product SKU.
osTypestringThe type of Operating System (windows/linux).
osVersionstringThe version of Operating System running on the hybrid machine.
parentClusterResourceIdstringThe resource id of the parent cluster (Azure HCI) this machine is assigned to, if any.
privateLinkScopeResourceIdstringThe resource id of the private link scope this machine is assigned to, if any.
provisioningStatestringThe provisioning state, which only appears in the response.
resourcesarrayThe list of extensions affiliated to the machine.
serviceStatusesobjectStatuses of dependent services that are reported back to ARM.
statusstringThe status of the hybrid machine agent. Known values are: "Connected", "Disconnected", "Error", and "AwaitingConnection". (Connected, Disconnected, Error, AwaitingConnection)
storageProfileobjectInformation about the machine's storage.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
tpmEkCertificatestringEndorsement Key Certificate of the Trusted Platform Module (TPM) that the client provides to be used during initial resource onboarding.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
vmIdstringSpecifies the hybrid machine unique ID.
vmUuidstringSpecifies the Arc Machine's unique SMBIOS ID.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, machine_name, subscription_id$expandRetrieves information about the model view or the instance view of a hybrid machine.
list_by_resource_groupselectresource_group_name, subscription_id$expandLists 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_subscriptionselectsubscription_idLists 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_updateinsertresource_group_name, machine_name, subscription_id, location$expandThe operation to create or update a hybrid machine. Please note some properties can be set only during machine creation.
updateupdateresource_group_name, machine_name, subscription_idThe operation to update a hybrid machine.
create_or_updatereplaceresource_group_name, machine_name, subscription_id, location$expandThe operation to create or update a hybrid machine. Please note some properties can be set only during machine creation.
deletedeleteresource_group_name, machine_name, subscription_idThe operation to delete a hybrid machine.
assess_patchesexecresource_group_name, name, subscription_idThe operation to assess patches on a hybrid machine identity in Azure.
install_patchesexecresource_group_name, name, subscription_id, maximumDuration, rebootSettingThe operation to install patches on a hybrid machine 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
machine_namestringThe name of the hybrid machine. Required.
namestringThe name of the hybrid machine. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
$expandstringExpands referenced resources. Default value is None.

SELECT examples

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

SELECT
id,
name,
adFqdn,
agentConfiguration,
agentUpgrade,
agentVersion,
clientPublicKey,
cloudMetadata,
detectedProperties,
displayName,
dnsFqdn,
domainName,
errorDetails,
extensions,
firmwareProfile,
hardwareProfile,
hardwareResourceId,
identity,
identityKeyStore,
kind,
lastStatusChange,
licenseProfile,
location,
locationData,
machineFqdn,
mssqlDiscovered,
networkProfile,
osEdition,
osName,
osProfile,
osSku,
osType,
osVersion,
parentClusterResourceId,
privateLinkScopeResourceId,
provisioningState,
resources,
serviceStatuses,
status,
storageProfile,
systemData,
tags,
tpmEkCertificate,
type,
vmId,
vmUuid
FROM azure.hybrid_compute.machines
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND machine_name = '{{ machine_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation.

INSERT INTO azure.hybrid_compute.machines (
tags,
location,
properties,
identity,
kind,
resource_group_name,
machine_name,
subscription_id,
$expand
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ kind }}',
'{{ resource_group_name }}',
'{{ machine_name }}',
'{{ subscription_id }}',
'{{ $expand }}'
RETURNING
id,
name,
identity,
kind,
location,
properties,
resources,
systemData,
tags,
type
;

UPDATE examples

The operation to update a hybrid machine.

UPDATE azure.hybrid_compute.machines
SET
tags = '{{ tags }}',
identity = '{{ identity }}',
kind = '{{ kind }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND machine_name = '{{ machine_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
kind,
location,
properties,
resources,
systemData,
tags,
type;

REPLACE examples

The operation to create or update a hybrid machine. Please note some properties can be set only during machine creation.

REPLACE azure.hybrid_compute.machines
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}',
kind = '{{ kind }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND machine_name = '{{ machine_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
AND $expand = '{{ $expand}}'
RETURNING
id,
name,
identity,
kind,
location,
properties,
resources,
systemData,
tags,
type;

DELETE examples

The operation to delete a hybrid machine.

DELETE FROM azure.hybrid_compute.machines
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND machine_name = '{{ machine_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

The operation to assess patches on a hybrid machine identity in Azure.

EXEC azure.hybrid_compute.machines.assess_patches 
@resource_group_name='{{ resource_group_name }}' --required,
@name='{{ name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;