Skip to main content

extensions

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

Overview

Nameextensions
TypeResource
Idazure_extras.visual_studio.extensions

Fields

NameDatatypeDescription
idstringUnique identifier of the resource.
namestringResource name.
locationstringResource location.
planobjectPlan data for an extension resource.
propertiesobjectResource properties.
tagsobjectResource tags.
typestringResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountResourceName, extensionResourceName, resourceGroupName, subscriptionIdGets the details of an extension associated with a Visual Studio Team Services account resource.
list_by_accountSELECTaccountResourceName, resourceGroupName, subscriptionIdGets the details of the extension resources created within the resource group.
createINSERTaccountResourceName, extensionResourceName, resourceGroupName, subscriptionIdRegisters the extension with a Visual Studio Team Services account.
deleteDELETEaccountResourceName, extensionResourceName, resourceGroupName, subscriptionIdRemoves an extension resource registration for a Visual Studio Team Services account.
updateUPDATEaccountResourceName, extensionResourceName, resourceGroupName, subscriptionIdUpdates an existing extension registration for the Visual Studio Team Services account.

SELECT examples

Gets the details of the extension resources created within the resource group.

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

INSERT example

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

/*+ create */
INSERT INTO azure_extras.visual_studio.extensions (
accountResourceName,
extensionResourceName,
resourceGroupName,
subscriptionId,
location,
plan,
properties,
tags
)
SELECT
'{{ accountResourceName }}',
'{{ extensionResourceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ plan }}',
'{{ properties }}',
'{{ tags }}'
;

UPDATE example

Updates a extensions resource.

/*+ update */
UPDATE azure_extras.visual_studio.extensions
SET
location = '{{ location }}',
plan = '{{ plan }}',
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
accountResourceName = '{{ accountResourceName }}'
AND extensionResourceName = '{{ extensionResourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified extensions resource.

/*+ delete */
DELETE FROM azure_extras.visual_studio.extensions
WHERE accountResourceName = '{{ accountResourceName }}'
AND extensionResourceName = '{{ extensionResourceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';