Skip to main content

artifacts

Creates, updates, deletes, gets or lists an artifacts resource.

Overview

Nameartifacts
TypeResource
Idazure.blueprints.artifacts

Fields

The following fields are returned by SELECT queries:

OK -- blueprint artifact retrieved.

NameDatatypeDescription
idstringString Id used to locate any resource on Azure.
namestringName of this resource.
kindstringSpecifies the kind of blueprint artifact.
typestringType of this resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceScope, blueprintName, artifactNameGet a blueprint artifact.
listselectresourceScope, blueprintNameList artifacts for a given blueprint definition.
create_or_updateinsertresourceScope, blueprintName, artifactName, data__kindCreate or update blueprint artifact.
deletedeleteresourceScope, blueprintName, artifactNameDelete a blueprint artifact.

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
artifactNamestringName of the blueprint artifact.
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}').

SELECT examples

Get a blueprint artifact.

SELECT
id,
name,
kind,
type
FROM azure.blueprints.artifacts
WHERE resourceScope = '{{ resourceScope }}' -- required
AND blueprintName = '{{ blueprintName }}' -- required
AND artifactName = '{{ artifactName }}' -- required
;

INSERT examples

Create or update blueprint artifact.

INSERT INTO azure.blueprints.artifacts (
data__kind,
resourceScope,
blueprintName,
artifactName
)
SELECT
'{{ kind }}' /* required */,
'{{ resourceScope }}',
'{{ blueprintName }}',
'{{ artifactName }}'
RETURNING
id,
name,
kind,
type
;

DELETE examples

Delete a blueprint artifact.

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