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​

The following fields are returned by SELECT queries:

OK -- published blueprint definition retrieved.

NameDatatypeDescription
idstringString Id used to locate any resource on Azure.
namestringName of this resource.
propertiesobjectDetailed properties for published blueprint.
typestringType of this resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceScope, blueprintName, versionIdGet a published version of a blueprint definition.
listselectresourceScope, blueprintNameList published versions of given blueprint definition.
createinsertresourceScope, blueprintName, versionId, data__propertiesPublish a new version of the blueprint definition with the latest artifacts. Published blueprint definitions are immutable.
deletedeleteresourceScope, blueprintName, versionIdDelete a published version of a blueprint definition.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
blueprintNamestringName of the blueprint definition.
resourceScopestringThe scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
versionIdstringVersion of the published blueprint definition.

SELECT examples​

Get a published version of a blueprint definition.

SELECT
id,
name,
properties,
type
FROM azure.blueprints.published_blueprints
WHERE resourceScope = '{{ resourceScope }}' -- required
AND blueprintName = '{{ blueprintName }}' -- required
AND versionId = '{{ versionId }}' -- required
;

INSERT examples​

Publish a new version of the blueprint definition with the latest artifacts. Published blueprint definitions are immutable.

INSERT INTO azure.blueprints.published_blueprints (
data__properties,
resourceScope,
blueprintName,
versionId
)
SELECT
'{{ properties }}' /* required */,
'{{ resourceScope }}',
'{{ blueprintName }}',
'{{ versionId }}'
RETURNING
id,
name,
properties,
type
;

DELETE examples​

Delete a published version of a blueprint definition.

DELETE FROM azure.blueprints.published_blueprints
WHERE resourceScope = '{{ resourceScope }}' --required
AND blueprintName = '{{ blueprintName }}' --required
AND versionId = '{{ versionId }}' --required
;