Skip to main content

spatial_anchors_accounts

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

Overview

Namespatial_anchors_accounts
TypeResource
Idazure.mixed_reality.spatial_anchors_accounts

Fields

NameDatatypeDescription
accountNametextfield from the properties object
account_domaintextfield from the properties object
account_idtextfield from the properties object
identitytextIdentity for the resource.
kindtextThe resource model definition representing SKU
locationtextThe geo-location where the resource lives
plantextIdentity for the resource.
resourceGroupNametextfield from the properties object
skutextThe resource model definition representing SKU
storage_account_nametextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionIdRetrieve a Spatial Anchors Account.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdList Resources by Resource Group
list_by_subscriptionSELECTsubscriptionIdList Spatial Anchors Accounts by Subscription
createINSERTaccountName, resourceGroupName, subscriptionIdCreating or Updating a Spatial Anchors Account.
deleteDELETEaccountName, resourceGroupName, subscriptionIdDelete a Spatial Anchors Account.
updateUPDATEaccountName, resourceGroupName, subscriptionIdUpdating a Spatial Anchors Account
regenerate_keysEXECaccountName, resourceGroupName, subscriptionIdRegenerate specified Key of a Spatial Anchors Account

SELECT examples

List Spatial Anchors Accounts by Subscription

SELECT
accountName,
account_domain,
account_id,
identity,
kind,
location,
plan,
resourceGroupName,
sku,
storage_account_name,
subscriptionId,
system_data,
tags
FROM azure.mixed_reality.vw_spatial_anchors_accounts
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new spatial_anchors_accounts resource.

/*+ create */
INSERT INTO azure.mixed_reality.spatial_anchors_accounts (
accountName,
resourceGroupName,
subscriptionId,
tags,
location,
properties,
identity,
plan,
sku,
kind,
systemData
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}',
'{{ plan }}',
'{{ sku }}',
'{{ kind }}',
'{{ systemData }}'
;

UPDATE example

Updates a spatial_anchors_accounts resource.

/*+ update */
UPDATE azure.mixed_reality.spatial_anchors_accounts
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}',
plan = '{{ plan }}',
sku = '{{ sku }}',
kind = '{{ kind }}',
systemData = '{{ systemData }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified spatial_anchors_accounts resource.

/*+ delete */
DELETE FROM azure.mixed_reality.spatial_anchors_accounts
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';