Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure.maps.accounts

Fields

NameDatatypeDescription
accountNametextfield from the properties object
corstextfield from the properties object
disable_local_authtextfield from the properties object
encryptiontextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
kindtextThe Kind of the Maps Account.
linked_resourcestextfield from the properties object
locationtextThe geo-location where the resource lives
locationstextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextThe resource model definition representing SKU
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
unique_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionIdGet a Maps Account.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet all Maps Accounts in a Resource Group
list_by_subscriptionSELECTsubscriptionIdGet all Maps Accounts in a Subscription
create_or_updateINSERTaccountName, resourceGroupName, subscriptionId, data__skuCreate or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs.
deleteDELETEaccountName, resourceGroupName, subscriptionIdDelete a Maps Account.
updateUPDATEaccountName, resourceGroupName, subscriptionIdUpdates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties.
regenerate_keysEXECaccountName, resourceGroupName, subscriptionId, data__keyTypeRegenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately.

SELECT examples

Get all Maps Accounts in a Subscription

SELECT
accountName,
cors,
disable_local_auth,
encryption,
identity,
kind,
linked_resources,
location,
locations,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
system_data,
tags,
unique_id
FROM azure.maps.vw_accounts
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a accounts resource.

/*+ update */
UPDATE azure.maps.accounts
SET
tags = '{{ tags }}',
kind = '{{ kind }}',
sku = '{{ sku }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified accounts resource.

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