Skip to main content

artifact_sources

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

Overview

Nameartifact_sources
TypeResource
Idazure.dev_test_labs.artifact_sources

Fields

NameDatatypeDescription
idtextThe identifier of the resource.
nametextThe name of the resource.
arm_template_folder_pathtextfield from the properties object
branch_reftextfield from the properties object
created_datetextfield from the properties object
display_nametextfield from the properties object
folder_pathtextfield from the properties object
labNametextfield from the properties object
locationtextThe location of the resource.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
security_tokentextfield from the properties object
source_typetextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextThe tags of the resource.
typetextThe type of the resource.
unique_identifiertextfield from the properties object
uritextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTlabName, name, resourceGroupName, subscriptionIdGet artifact source.
listSELECTlabName, resourceGroupName, subscriptionIdList artifact sources in a given lab.
create_or_updateINSERTlabName, name, resourceGroupName, subscriptionId, data__propertiesCreate or replace an existing artifact source.
deleteDELETElabName, name, resourceGroupName, subscriptionIdDelete artifact source.
updateUPDATElabName, name, resourceGroupName, subscriptionIdAllows modifying tags of artifact sources. All other properties will be ignored.

SELECT examples

List artifact sources in a given lab.

SELECT
id,
name,
arm_template_folder_path,
branch_ref,
created_date,
display_name,
folder_path,
labName,
location,
provisioning_state,
resourceGroupName,
security_token,
source_type,
status,
subscriptionId,
tags,
type,
unique_identifier,
uri
FROM azure.dev_test_labs.vw_artifact_sources
WHERE labName = '{{ labName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.dev_test_labs.artifact_sources (
labName,
name,
resourceGroupName,
subscriptionId,
data__properties,
location,
tags,
properties
)
SELECT
'{{ labName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;

UPDATE example

Updates a artifact_sources resource.

/*+ update */
UPDATE azure.dev_test_labs.artifact_sources
SET
tags = '{{ tags }}'
WHERE
labName = '{{ labName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified artifact_sources resource.

/*+ delete */
DELETE FROM azure.dev_test_labs.artifact_sources
WHERE labName = '{{ labName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';