triggers
Creates, updates, deletes, gets or lists a triggers
resource.
Overview
Name | triggers |
Type | Resource |
Id | azure.image_builder.triggers |
Fields
- vw_triggers
- triggers
Name | Datatype | Description |
---|---|---|
imageTemplateName | text | field from the properties object |
kind | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
status | text | field from the properties object |
subscriptionId | text | field from the properties object |
triggerName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Describes the properties of a trigger |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | imageTemplateName, resourceGroupName, subscriptionId, triggerName | Get the specified trigger for the specified image template resource |
list_by_image_template | SELECT | imageTemplateName, resourceGroupName, subscriptionId | List all triggers for the specified Image Template resource |
create_or_update | INSERT | imageTemplateName, resourceGroupName, subscriptionId, triggerName | Create or update a trigger for the specified virtual machine image template |
delete | DELETE | imageTemplateName, resourceGroupName, subscriptionId, triggerName | Delete a trigger for the specified virtual machine image template |
SELECT
examples
List all triggers for the specified Image Template resource
- vw_triggers
- triggers
SELECT
imageTemplateName,
kind,
provisioning_state,
resourceGroupName,
status,
subscriptionId,
triggerName
FROM azure.image_builder.vw_triggers
WHERE imageTemplateName = '{{ imageTemplateName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.image_builder.triggers
WHERE imageTemplateName = '{{ imageTemplateName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new triggers
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.image_builder.triggers (
imageTemplateName,
resourceGroupName,
subscriptionId,
triggerName,
properties
)
SELECT
'{{ imageTemplateName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ triggerName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: kind
value: string
- name: status
value:
- name: code
value: string
- name: message
value: string
- name: time
value: string
- name: provisioningState
value: []
DELETE
example
Deletes the specified triggers
resource.
/*+ delete */
DELETE FROM azure.image_builder.triggers
WHERE imageTemplateName = '{{ imageTemplateName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND triggerName = '{{ triggerName }}';