Skip to main content

edge_machines

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

Overview

Nameedge_machines
TypeResource
Idazure_stack.azure_stack_hci.edge_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.
arcGatewayResourceIdstringLink to Arc Gateway ARM resource Id.
arcMachineResourceGroupIdstringOptional property to create arc machine in custom resource group.
arcMachineResourceIdstringArc machine instance resource id.
claimedBystringTracks the ID of the consuming resource, setting the machine as in-use.
cloudIdstringUnique, immutable resource id.
connectivityStatusstringmachine connectivity status. Known values are: "NotSpecified", "Disconnected", and "Connected". (NotSpecified, Disconnected, Connected)
devicePoolResourceIdstringA machine can only be assigned to single device pool.
edgeMachineKindstringEdge Machine type. Known values are: "Standard" and "Dedicated". (Standard, Dedicated)
identityobjectThe managed service identities assigned to this resource.
lastSyncTimestampstring (date-time)Last time data updated to service.
locationstringThe geo-location where the resource lives. Required.
machineStatestringOS configuration status details. Known values are: "Created", "Registering", "Unpurposed", "Transitioning", "Purposed", "Updating", "Resetting", "Failed", and "Preparing". (Created, Registering, Unpurposed, Transitioning, Purposed, Updating, Resetting, Failed, Preparing)
operationDetailsarrayoperation status details for edge machine.
ownershipVoucherDetailsobjectOwnership voucher details for provisioned machine.
provisioningDetailsobjectDetails for device provisioning.
provisioningStatestringThe provisioning state of a resource. Known values are: "NotSpecified", "Error", "Succeeded", "Failed", "Canceled", "Connected", "Disconnected", "Deleted", "Creating", "Updating", "Deleting", "Moving", "PartiallySucceeded", "PartiallyConnected", "InProgress", "Accepted", "Provisioning", and "DisableInProgress". (NotSpecified, Error, Succeeded, Failed, Canceled, Connected, Disconnected, Deleted, Creating, Updating, Deleting, Moving, PartiallySucceeded, PartiallyConnected, InProgress, Accepted, Provisioning, DisableInProgress)
reportedPropertiesobjectReported properties for edge machine.
siteDetailsobjectService fetches common configuration from site.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
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, edge_machine_name, subscription_idGet an edge machine.
list_by_resource_groupselectresource_group_name, subscription_idList all edge machines in a resource group.
list_by_subscriptionselectsubscription_idList all edge machines in a subscription.
create_or_updateinsertresource_group_name, edge_machine_name, subscription_id, locationCreate or update an edge machine.
updateupdateresource_group_name, edge_machine_name, subscription_idUpdate an edge machine.
create_or_updatereplaceresource_group_name, edge_machine_name, subscription_id, locationCreate or update an edge machine.
deletedeleteresource_group_name, edge_machine_name, subscription_idDelete an edge machine.

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
edge_machine_namestringName of Device. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get an edge machine.

SELECT
id,
name,
arcGatewayResourceId,
arcMachineResourceGroupId,
arcMachineResourceId,
claimedBy,
cloudId,
connectivityStatus,
devicePoolResourceId,
edgeMachineKind,
identity,
lastSyncTimestamp,
location,
machineState,
operationDetails,
ownershipVoucherDetails,
provisioningDetails,
provisioningState,
reportedProperties,
siteDetails,
systemData,
tags,
type
FROM azure_stack.azure_stack_hci.edge_machines
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND edge_machine_name = '{{ edge_machine_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update an edge machine.

INSERT INTO azure_stack.azure_stack_hci.edge_machines (
tags,
location,
properties,
identity,
resource_group_name,
edge_machine_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ edge_machine_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update an edge machine.

UPDATE azure_stack.azure_stack_hci.edge_machines
SET
tags = '{{ tags }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND edge_machine_name = '{{ edge_machine_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create or update an edge machine.

REPLACE azure_stack.azure_stack_hci.edge_machines
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND edge_machine_name = '{{ edge_machine_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete an edge machine.

DELETE FROM azure_stack.azure_stack_hci.edge_machines
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND edge_machine_name = '{{ edge_machine_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;