Skip to main content

plan_members

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

Overview

Nameplan_members
TypeResource
Idazure.dev_center.plan_members

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
memberNametextfield from the properties object
member_idtextfield from the properties object
member_typetextfield from the properties object
planNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
sync_statustextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTmemberName, planName, resourceGroupName, subscriptionIdGets a devcenter plan member.
listSELECTplanName, resourceGroupName, subscriptionIdLists all of the members assigned to a devcenter plan.
create_or_updateINSERTmemberName, planName, resourceGroupName, subscriptionIdCreates or updates a devcenter plan member resource
deleteDELETEmemberName, planName, resourceGroupName, subscriptionIdDeletes a devcenter plan member
updateUPDATEmemberName, planName, resourceGroupName, subscriptionIdPartially updates a devcenter plan member.

SELECT examples

Lists all of the members assigned to a devcenter plan.

SELECT
id,
name,
memberName,
member_id,
member_type,
planName,
provisioning_state,
resourceGroupName,
subscriptionId,
sync_status,
system_data,
tags,
type
FROM azure.dev_center.vw_plan_members
WHERE planName = '{{ planName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

UPDATE example

Updates a plan_members resource.

/*+ update */
UPDATE azure.dev_center.plan_members
SET
tags = '{{ tags }}'
WHERE
memberName = '{{ memberName }}'
AND planName = '{{ planName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified plan_members resource.

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