Skip to main content

blueprints

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

Overview

Nameblueprints
TypeResource
Idazure.blueprints.blueprints

Fields

NameDatatypeDescription
idtextString Id used to locate any resource on Azure.
nametextName of this resource.
blueprintNametextfield from the properties object
layouttextfield from the properties object
parameterstextfield from the properties object
resourceScopetextfield from the properties object
resource_groupstextfield from the properties object
statustextfield from the properties object
target_scopetextfield from the properties object
typetextType of this resource.
versionstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTblueprintName, resourceScopeGet a blueprint definition.
listSELECTresourceScopeList blueprint definitions.
create_or_updateINSERTblueprintName, resourceScope, data__propertiesCreate or update a blueprint definition.
deleteDELETEblueprintName, resourceScopeDelete a blueprint definition.

SELECT examples

List blueprint definitions.

SELECT
id,
name,
blueprintName,
layout,
parameters,
resourceScope,
resource_groups,
status,
target_scope,
type,
versions
FROM azure.blueprints.vw_blueprints
WHERE resourceScope = '{{ resourceScope }}';

INSERT example

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

/*+ create */
INSERT INTO azure.blueprints.blueprints (
blueprintName,
resourceScope,
data__properties,
properties
)
SELECT
'{{ blueprintName }}',
'{{ resourceScope }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified blueprints resource.

/*+ delete */
DELETE FROM azure.blueprints.blueprints
WHERE blueprintName = '{{ blueprintName }}'
AND resourceScope = '{{ resourceScope }}';