published_blueprints
Creates, updates, deletes, gets or lists a published_blueprints
resource.
Overview
Name | published_blueprints |
Type | Resource |
Id | azure.blueprints.published_blueprints |
Fields
- vw_published_blueprints
- published_blueprints
Name | Datatype | Description |
---|---|---|
id | text | String Id used to locate any resource on Azure. |
name | text | Name of this resource. |
blueprintName | text | field from the properties object |
blueprint_name | text | field from the properties object |
change_notes | text | field from the properties object |
parameters | text | field from the properties object |
resourceScope | text | field from the properties object |
resource_groups | text | field from the properties object |
status | text | field from the properties object |
target_scope | text | field from the properties object |
type | text | Type of this resource. |
versionId | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | String Id used to locate any resource on Azure. |
name | string | Name of this resource. |
properties | object | Schema for published blueprint definition properties. |
type | string | Type of this resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | blueprintName, resourceScope, versionId | Get a published version of a blueprint definition. |
list | SELECT | blueprintName, resourceScope | List published versions of given blueprint definition. |
create | INSERT | blueprintName, resourceScope, versionId, data__properties | Publish a new version of the blueprint definition with the latest artifacts. Published blueprint definitions are immutable. |
delete | DELETE | blueprintName, resourceScope, versionId | Delete a published version of a blueprint definition. |
SELECT
examples
List published versions of given blueprint definition.
- vw_published_blueprints
- published_blueprints
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 }}';
SELECT
id,
name,
properties,
type
FROM azure.blueprints.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.blueprints.published_blueprints (
blueprintName,
resourceScope,
versionId,
data__properties,
properties
)
SELECT
'{{ blueprintName }}',
'{{ resourceScope }}',
'{{ versionId }}',
'{{ data__properties }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: type
value: string
- name: name
value: string
- name: properties
value:
- name: status
value:
- name: timeCreated
value: string
- name: lastModified
value: string
- name: targetScope
value: string
- name: parameters
value: object
- name: resourceGroups
value: object
- name: blueprintName
value: string
- name: changeNotes
value: string
DELETE
example
Deletes the specified published_blueprints
resource.
/*+ delete */
DELETE FROM azure.blueprints.published_blueprints
WHERE blueprintName = '{{ blueprintName }}'
AND resourceScope = '{{ resourceScope }}'
AND versionId = '{{ versionId }}';