Skip to main content

object_anchors_accounts

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

Overview

Nameobject_anchors_accounts
TypeResource
Idazure.mixed_reality.object_anchors_accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
identityobjectIdentity for the resource.
kindobjectThe resource model definition representing SKU
locationstringThe geo-location where the resource lives
planobjectIdentity for the resource.
propertiesobjectProperty bag.
skuobjectThe resource model definition representing SKU
systemDataobjectThe system metadata related to an object anchors account.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountNameRetrieve an Object Anchors Account.
list_by_resource_groupselectsubscriptionId, resourceGroupNameList Resources by Resource Group
list_by_subscriptionselectsubscriptionIdList Object Anchors Accounts by Subscription
createinsertsubscriptionId, resourceGroupName, accountNameCreating or Updating an object anchors Account.
updateupdatesubscriptionId, resourceGroupName, accountNameUpdating an Object Anchors Account
deletedeletesubscriptionId, resourceGroupName, accountNameDelete an Object Anchors Account.
regenerate_keysexecsubscriptionId, resourceGroupName, accountNameRegenerate specified Key of an object anchors Account

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
accountNamestringName of an Mixed Reality Account.
resourceGroupNamestringName of an Azure resource group.
subscriptionIdstringThe Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000)

SELECT examples

Retrieve an Object Anchors Account.

SELECT
identity,
kind,
location,
plan,
properties,
sku,
systemData,
tags
FROM azure.mixed_reality.object_anchors_accounts
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND accountName = '{{ accountName }}' -- required
;

INSERT examples

Creating or Updating an object anchors Account.

INSERT INTO azure.mixed_reality.object_anchors_accounts (
data__tags,
data__location,
data__identity,
data__properties,
data__plan,
data__sku,
data__kind,
subscriptionId,
resourceGroupName,
accountName
)
SELECT
'{{ tags }}',
'{{ location }}',
'{{ identity }}',
'{{ properties }}',
'{{ plan }}',
'{{ sku }}',
'{{ kind }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ accountName }}'
RETURNING
identity,
kind,
location,
plan,
properties,
sku,
systemData,
tags
;

UPDATE examples

Updating an Object Anchors Account

UPDATE azure.mixed_reality.object_anchors_accounts
SET
data__tags = '{{ tags }}',
data__location = '{{ location }}',
data__identity = '{{ identity }}',
data__properties = '{{ properties }}',
data__plan = '{{ plan }}',
data__sku = '{{ sku }}',
data__kind = '{{ kind }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
RETURNING
identity,
kind,
location,
plan,
properties,
sku,
systemData,
tags;

DELETE examples

Delete an Object Anchors Account.

DELETE FROM azure.mixed_reality.object_anchors_accounts
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND accountName = '{{ accountName }}' --required
;

Lifecycle Methods

Regenerate specified Key of an object anchors Account

EXEC azure.mixed_reality.object_anchors_accounts.regenerate_keys 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@accountName='{{ accountName }}' --required
@@json=
'{
"serial": {{ serial }}
}'
;