Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure_extras.power_platform.accounts

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.
descriptionstringThe description of the account.
locationstringThe geo-location where the resource lives. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
systemIdstringThe internally assigned unique identifier of the resource.
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
getselectaccount_name, resource_group_name, subscription_idGet information about an account.
list_by_resource_groupselectresource_group_name, subscription_idRetrieve a list of accounts within a given resource group.
list_by_subscriptionselectsubscription_idRetrieve a list of accounts within a subscription.
create_or_updateinsertaccount_name, resource_group_name, subscription_id, locationCreates an account.
updateupdateaccount_name, resource_group_name, subscription_idUpdates an account.
create_or_updatereplaceaccount_name, resource_group_name, subscription_id, locationCreates an account.
deletedeleteaccount_name, resource_group_name, subscription_idDelete an 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
account_namestringName of the account. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Get information about an account.

SELECT
id,
name,
description,
location,
systemData,
systemId,
tags,
type
FROM azure_extras.power_platform.accounts
WHERE account_name = '{{ account_name }}' -- required
AND resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates an account.

INSERT INTO azure_extras.power_platform.accounts (
tags,
location,
properties,
account_name,
resource_group_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ account_name }}',
'{{ resource_group_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Updates an account.

UPDATE azure_extras.power_platform.accounts
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
account_name = '{{ account_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Creates an account.

REPLACE azure_extras.power_platform.accounts
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}'
WHERE
account_name = '{{ account_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete an account.

DELETE FROM azure_extras.power_platform.accounts
WHERE account_name = '{{ account_name }}' --required
AND resource_group_name = '{{ resource_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;