Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure.maps.accounts

Fields

The following fields are returned by SELECT queries:

The request was successful.

NameDatatypeDescription
identityobjectManaged service identity (system assigned and/or user assigned identities)
kindstringGet or Set Kind property.
locationstringThe geo-location where the resource lives
propertiesobjectThe map account properties.
skuobjectThe SKU of this account.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, accountNameGet a Maps Account.
list_by_resource_groupselectsubscriptionId, resourceGroupNameGet all Maps Accounts in a Resource Group
list_by_subscriptionselectsubscriptionIdGet all Maps Accounts in a Subscription
create_or_updateinsertsubscriptionId, resourceGroupName, accountName, data__skuCreate or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs.
updateupdatesubscriptionId, resourceGroupName, accountNameUpdates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties.
deletedeletesubscriptionId, resourceGroupName, accountNameDelete a Maps Account.
regenerate_keysexecsubscriptionId, resourceGroupName, accountName, keyTypeRegenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately.

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
accountNamestringThe name of the Maps Account.
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get a Maps Account.

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

INSERT examples

Create or update a Maps Account. A Maps Account holds the keys which allow access to the Maps REST APIs.

INSERT INTO azure.maps.accounts (
data__sku,
data__kind,
data__identity,
data__properties,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
accountName
)
SELECT
'{{ sku }}' /* required */,
'{{ kind }}',
'{{ identity }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ accountName }}'
RETURNING
identity,
kind,
location,
properties,
sku,
systemData,
tags
;

UPDATE examples

Updates a Maps Account. Only a subset of the parameters may be updated after creation, such as Sku, Tags, Properties.

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

DELETE examples

Delete a Maps Account.

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

Lifecycle Methods

Regenerate either the primary or secondary key for use with the Maps APIs. The old key will stop working immediately.

EXEC azure.maps.accounts.regenerate_keys 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@accountName='{{ accountName }}' --required
@@json=
'{
"keyType": "{{ keyType }}"
}'
;