Skip to main content

published_blueprints

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

Overview

Namepublished_blueprints
TypeResource
Idazure.blueprints.published_blueprints

Fields

NameDatatypeDescription
idtextString Id used to locate any resource on Azure.
nametextName of this resource.
blueprintNametextfield from the properties object
blueprint_nametextfield from the properties object
change_notestextfield 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.
versionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTblueprintName, resourceScope, versionIdGet a published version of a blueprint definition.
listSELECTblueprintName, resourceScopeList published versions of given blueprint definition.
createINSERTblueprintName, resourceScope, versionId, data__propertiesPublish a new version of the blueprint definition with the latest artifacts. Published blueprint definitions are immutable.
deleteDELETEblueprintName, resourceScope, versionIdDelete a published version of a blueprint definition.

SELECT examples

List published versions of given blueprint definition.

SELECT
id,
name,
blueprintName,
blueprint_name,
change_notes,
parameters,
resourceScope,
resource_groups,
status,
target_scope,
type,
versionId
FROM azure.blueprints.vw_published_blueprints
WHERE blueprintName = '{{ blueprintName }}'
AND resourceScope = '{{ resourceScope }}';

INSERT example

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

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

DELETE example

Deletes the specified published_blueprints resource.

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