Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure_extras.intelligent_recommendations.accounts

Fields

NameDatatypeDescription
identityobjectManaged service identity (system assigned and/or user assigned identities)
locationstringThe geo-location where the resource lives
propertiesobjectAccount resource properties.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionIdReturns RecommendationsService Account resource for a given name.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdReturns list of RecommendationsService Account resources.
list_by_subscriptionSELECTsubscriptionIdReturns list of RecommendationsService Account resources.
create_or_updateINSERTaccountName, resourceGroupName, subscriptionIdCreates or updates RecommendationsService Account resource.
deleteDELETEaccountName, resourceGroupName, subscriptionIdDeletes RecommendationsService Account resource.
updateUPDATEaccountName, resourceGroupName, subscriptionIdUpdates RecommendationsService Account details.
check_name_availabilityEXECsubscriptionIdChecks that the RecommendationsService Account name is valid and is not already in use.

SELECT examples

Returns list of RecommendationsService Account resources.

SELECT
identity,
location,
properties,
systemData,
tags
FROM azure_extras.intelligent_recommendations.accounts
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.intelligent_recommendations.accounts (
accountName,
resourceGroupName,
subscriptionId,
tags,
location,
properties,
systemData,
identity
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ systemData }}',
'{{ identity }}'
;

UPDATE example

Updates a accounts resource.

/*+ update */
UPDATE azure_extras.intelligent_recommendations.accounts
SET
tags = '{{ tags }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified accounts resource.

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