Skip to main content

curation_profiles

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

Overview

Namecuration_profiles
TypeResource
Idazure.dev_center.curation_profiles

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
nametextThe name of the resource
curationProfileNametextfield from the properties object
devCenterNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_policiestextfield from the properties object
scopestextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTcurationProfileName, devCenterName, resourceGroupName, subscriptionIdGets a specific curation profile.
list_by_dev_centerSELECTdevCenterName, resourceGroupName, subscriptionIdLists all curation profiles in the dev center
create_or_updateINSERTcurationProfileName, devCenterName, resourceGroupName, subscriptionIdCreates or updates an curation profile.
deleteDELETEcurationProfileName, devCenterName, resourceGroupName, subscriptionIdDeletes an curation profile.
updateUPDATEcurationProfileName, devCenterName, resourceGroupName, subscriptionIdPartially updates an curation profile.

SELECT examples

Lists all curation profiles in the dev center

SELECT
id,
name,
curationProfileName,
devCenterName,
provisioning_state,
resourceGroupName,
resource_policies,
scopes,
subscriptionId,
system_data,
type
FROM azure.dev_center.vw_curation_profiles
WHERE devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.dev_center.curation_profiles (
curationProfileName,
devCenterName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ curationProfileName }}',
'{{ devCenterName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a curation_profiles resource.

/*+ update */
UPDATE azure.dev_center.curation_profiles
SET
properties = '{{ properties }}'
WHERE
curationProfileName = '{{ curationProfileName }}'
AND devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified curation_profiles resource.

/*+ delete */
DELETE FROM azure.dev_center.curation_profiles
WHERE curationProfileName = '{{ curationProfileName }}'
AND devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';