Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure_extras.visual_studio.accounts

Fields

NameDatatypeDescription
idstringUnique identifier of the resource.
namestringResource name.
locationstringResource location.
propertiesobjectResource properties.
tagsobjectResource tags.
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTresourceGroupName, resourceName, subscriptionIdGets the Visual Studio Team Services account resource details.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets all Visual Studio Team Services account resources under the resource group linked to the specified Azure subscription.
create_or_updateINSERTresourceGroupName, resourceName, subscriptionIdCreates or updates a Visual Studio Team Services account resource.
deleteDELETEresourceGroupName, resourceName, subscriptionIdDeletes a Visual Studio Team Services account resource.
updateUPDATEresourceGroupName, resourceName, subscriptionIdUpdates tags for Visual Studio Team Services account resource.
check_name_availabilityEXECsubscriptionIdChecks if the specified Visual Studio Team Services account name is available. Resource name can be either an account name or an account name and PUID.

SELECT examples

Gets all Visual Studio Team Services account resources under the resource group linked to the specified Azure subscription.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure_extras.visual_studio.accounts
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.visual_studio.accounts (
resourceGroupName,
resourceName,
subscriptionId,
accountName,
location,
operationType,
properties,
tags
)
SELECT
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ accountName }}',
'{{ location }}',
'{{ operationType }}',
'{{ properties }}',
'{{ tags }}'
;

UPDATE example

Updates a accounts resource.

/*+ update */
UPDATE azure_extras.visual_studio.accounts
SET
tags = '{{ tags }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified accounts resource.

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