extensions
Creates, updates, deletes, gets or lists a extensions
resource.
Overview
Name | extensions |
Type | Resource |
Id | azure_extras.visual_studio.extensions |
Fields
Name | Datatype | Description |
---|---|---|
id | string | Unique identifier of the resource. |
name | string | Resource name. |
location | string | Resource location. |
plan | object | Plan data for an extension resource. |
properties | object | Resource properties. |
tags | object | Resource tags. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | accountResourceName, extensionResourceName, resourceGroupName, subscriptionId | Gets the details of an extension associated with a Visual Studio Team Services account resource. |
list_by_account | SELECT | accountResourceName, resourceGroupName, subscriptionId | Gets the details of the extension resources created within the resource group. |
create | INSERT | accountResourceName, extensionResourceName, resourceGroupName, subscriptionId | Registers the extension with a Visual Studio Team Services account. |
delete | DELETE | accountResourceName, extensionResourceName, resourceGroupName, subscriptionId | Removes an extension resource registration for a Visual Studio Team Services account. |
update | UPDATE | accountResourceName, extensionResourceName, resourceGroupName, subscriptionId | Updates 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: location
value: string
- name: plan
value:
- name: name
value: string
- name: product
value: string
- name: promotionCode
value: string
- name: publisher
value: string
- name: version
value: string
- name: properties
value: object
- name: tags
value: object
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 }}';