Skip to main content

plans

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

Overview

Nameplans
TypeResource
Idazure.dev_center.plans

Fields

NameDatatypeDescription
locationtextThe geo-location where the resource lives
planNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextThe resource model definition representing SKU
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTplanName, resourceGroupName, subscriptionIdGets a devcenter plan.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdLists all devcenter plans in a resource group.
list_by_subscriptionSELECTsubscriptionIdLists all devcenter plans in a subscription.
create_or_updateINSERTplanName, resourceGroupName, subscriptionIdCreates or updates a devcenter plan resource
deleteDELETEplanName, resourceGroupName, subscriptionIdDeletes a devcenter plan
updateUPDATEplanName, resourceGroupName, subscriptionIdPartially updates a devcenter plan.

SELECT examples

Lists all devcenter plans in a subscription.

SELECT
location,
planName,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
tags
FROM azure.dev_center.vw_plans
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.dev_center.plans (
planName,
resourceGroupName,
subscriptionId,
tags,
location,
properties,
sku
)
SELECT
'{{ planName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ sku }}'
;

UPDATE example

Updates a plans resource.

/*+ update */
UPDATE azure.dev_center.plans
SET
tags = '{{ tags }}',
location = '{{ location }}',
sku = '{{ sku }}'
WHERE
planName = '{{ planName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified plans resource.

/*+ delete */
DELETE FROM azure.dev_center.plans
WHERE planName = '{{ planName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';