1. Packages
  2. Azure Native v2
  3. API Docs
  4. devtestlab
  5. ArtifactSource
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.devtestlab.ArtifactSource

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Properties of an artifact source. Azure REST API version: 2018-09-15. Prior API version in Azure Native 1.x: 2018-09-15.

Example Usage

ArtifactSources_CreateOrUpdate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var artifactSource = new AzureNative.DevTestLab.ArtifactSource("artifactSource", new()
    {
        ArmTemplateFolderPath = "{armTemplateFolderPath}",
        BranchRef = "{branchRef}",
        DisplayName = "{displayName}",
        FolderPath = "{folderPath}",
        LabName = "{labName}",
        Name = "{artifactSourceName}",
        ResourceGroupName = "resourceGroupName",
        SecurityToken = "{securityToken}",
        SourceType = "{VsoGit|GitHub|StorageAccount}",
        Status = "{Enabled|Disabled}",
        Tags = 
        {
            { "tagName1", "tagValue1" },
        },
        Uri = "{artifactSourceUri}",
    });

});
Copy
package main

import (
	devtestlab "github.com/pulumi/pulumi-azure-native-sdk/devtestlab/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := devtestlab.NewArtifactSource(ctx, "artifactSource", &devtestlab.ArtifactSourceArgs{
			ArmTemplateFolderPath: pulumi.String("{armTemplateFolderPath}"),
			BranchRef:             pulumi.String("{branchRef}"),
			DisplayName:           pulumi.String("{displayName}"),
			FolderPath:            pulumi.String("{folderPath}"),
			LabName:               pulumi.String("{labName}"),
			Name:                  pulumi.String("{artifactSourceName}"),
			ResourceGroupName:     pulumi.String("resourceGroupName"),
			SecurityToken:         pulumi.String("{securityToken}"),
			SourceType:            pulumi.String("{VsoGit|GitHub|StorageAccount}"),
			Status:                pulumi.String("{Enabled|Disabled}"),
			Tags: pulumi.StringMap{
				"tagName1": pulumi.String("tagValue1"),
			},
			Uri: pulumi.String("{artifactSourceUri}"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.devtestlab.ArtifactSource;
import com.pulumi.azurenative.devtestlab.ArtifactSourceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var artifactSource = new ArtifactSource("artifactSource", ArtifactSourceArgs.builder()
            .armTemplateFolderPath("{armTemplateFolderPath}")
            .branchRef("{branchRef}")
            .displayName("{displayName}")
            .folderPath("{folderPath}")
            .labName("{labName}")
            .name("{artifactSourceName}")
            .resourceGroupName("resourceGroupName")
            .securityToken("{securityToken}")
            .sourceType("{VsoGit|GitHub|StorageAccount}")
            .status("{Enabled|Disabled}")
            .tags(Map.of("tagName1", "tagValue1"))
            .uri("{artifactSourceUri}")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const artifactSource = new azure_native.devtestlab.ArtifactSource("artifactSource", {
    armTemplateFolderPath: "{armTemplateFolderPath}",
    branchRef: "{branchRef}",
    displayName: "{displayName}",
    folderPath: "{folderPath}",
    labName: "{labName}",
    name: "{artifactSourceName}",
    resourceGroupName: "resourceGroupName",
    securityToken: "{securityToken}",
    sourceType: "{VsoGit|GitHub|StorageAccount}",
    status: "{Enabled|Disabled}",
    tags: {
        tagName1: "tagValue1",
    },
    uri: "{artifactSourceUri}",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

artifact_source = azure_native.devtestlab.ArtifactSource("artifactSource",
    arm_template_folder_path="{armTemplateFolderPath}",
    branch_ref="{branchRef}",
    display_name="{displayName}",
    folder_path="{folderPath}",
    lab_name="{labName}",
    name="{artifactSourceName}",
    resource_group_name="resourceGroupName",
    security_token="{securityToken}",
    source_type="{VsoGit|GitHub|StorageAccount}",
    status="{Enabled|Disabled}",
    tags={
        "tagName1": "tagValue1",
    },
    uri="{artifactSourceUri}")
Copy
resources:
  artifactSource:
    type: azure-native:devtestlab:ArtifactSource
    properties:
      armTemplateFolderPath: '{armTemplateFolderPath}'
      branchRef: '{branchRef}'
      displayName: '{displayName}'
      folderPath: '{folderPath}'
      labName: '{labName}'
      name: '{artifactSourceName}'
      resourceGroupName: resourceGroupName
      securityToken: '{securityToken}'
      sourceType: '{VsoGit|GitHub|StorageAccount}'
      status: '{Enabled|Disabled}'
      tags:
        tagName1: tagValue1
      uri: '{artifactSourceUri}'
Copy

Create ArtifactSource Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ArtifactSource(name: string, args: ArtifactSourceArgs, opts?: CustomResourceOptions);
@overload
def ArtifactSource(resource_name: str,
                   args: ArtifactSourceArgs,
                   opts: Optional[ResourceOptions] = None)

@overload
def ArtifactSource(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   lab_name: Optional[str] = None,
                   resource_group_name: Optional[str] = None,
                   name: Optional[str] = None,
                   folder_path: Optional[str] = None,
                   display_name: Optional[str] = None,
                   location: Optional[str] = None,
                   arm_template_folder_path: Optional[str] = None,
                   branch_ref: Optional[str] = None,
                   security_token: Optional[str] = None,
                   source_type: Optional[Union[str, SourceControlType]] = None,
                   status: Optional[Union[str, EnableStatus]] = None,
                   tags: Optional[Mapping[str, str]] = None,
                   uri: Optional[str] = None)
func NewArtifactSource(ctx *Context, name string, args ArtifactSourceArgs, opts ...ResourceOption) (*ArtifactSource, error)
public ArtifactSource(string name, ArtifactSourceArgs args, CustomResourceOptions? opts = null)
public ArtifactSource(String name, ArtifactSourceArgs args)
public ArtifactSource(String name, ArtifactSourceArgs args, CustomResourceOptions options)
type: azure-native:devtestlab:ArtifactSource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ArtifactSourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ArtifactSourceArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ArtifactSourceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ArtifactSourceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ArtifactSourceArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var artifactSourceResource = new AzureNative.Devtestlab.ArtifactSource("artifactSourceResource", new()
{
    LabName = "string",
    ResourceGroupName = "string",
    Name = "string",
    FolderPath = "string",
    DisplayName = "string",
    Location = "string",
    ArmTemplateFolderPath = "string",
    BranchRef = "string",
    SecurityToken = "string",
    SourceType = "string",
    Status = "string",
    Tags = 
    {
        { "string", "string" },
    },
    Uri = "string",
});
Copy
example, err := devtestlab.NewArtifactSource(ctx, "artifactSourceResource", &devtestlab.ArtifactSourceArgs{
	LabName:               "string",
	ResourceGroupName:     "string",
	Name:                  "string",
	FolderPath:            "string",
	DisplayName:           "string",
	Location:              "string",
	ArmTemplateFolderPath: "string",
	BranchRef:             "string",
	SecurityToken:         "string",
	SourceType:            "string",
	Status:                "string",
	Tags: map[string]interface{}{
		"string": "string",
	},
	Uri: "string",
})
Copy
var artifactSourceResource = new ArtifactSource("artifactSourceResource", ArtifactSourceArgs.builder()
    .labName("string")
    .resourceGroupName("string")
    .name("string")
    .folderPath("string")
    .displayName("string")
    .location("string")
    .armTemplateFolderPath("string")
    .branchRef("string")
    .securityToken("string")
    .sourceType("string")
    .status("string")
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .uri("string")
    .build());
Copy
artifact_source_resource = azure_native.devtestlab.ArtifactSource("artifactSourceResource",
    lab_name=string,
    resource_group_name=string,
    name=string,
    folder_path=string,
    display_name=string,
    location=string,
    arm_template_folder_path=string,
    branch_ref=string,
    security_token=string,
    source_type=string,
    status=string,
    tags={
        string: string,
    },
    uri=string)
Copy
const artifactSourceResource = new azure_native.devtestlab.ArtifactSource("artifactSourceResource", {
    labName: "string",
    resourceGroupName: "string",
    name: "string",
    folderPath: "string",
    displayName: "string",
    location: "string",
    armTemplateFolderPath: "string",
    branchRef: "string",
    securityToken: "string",
    sourceType: "string",
    status: "string",
    tags: {
        string: "string",
    },
    uri: "string",
});
Copy
type: azure-native:devtestlab:ArtifactSource
properties:
    armTemplateFolderPath: string
    branchRef: string
    displayName: string
    folderPath: string
    labName: string
    location: string
    name: string
    resourceGroupName: string
    securityToken: string
    sourceType: string
    status: string
    tags:
        string: string
    uri: string
Copy

ArtifactSource Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The ArtifactSource resource accepts the following input properties:

LabName
This property is required.
Changes to this property will trigger replacement.
string
The name of the lab.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
ArmTemplateFolderPath string
The folder containing Azure Resource Manager templates.
BranchRef string
The artifact source's branch reference.
DisplayName string
The artifact source's display name.
FolderPath string
The folder containing artifacts.
Location string
The location of the resource.
Name Changes to this property will trigger replacement. string
The name of the artifact source.
SecurityToken string
The security token to authenticate to the artifact source.
SourceType string | Pulumi.AzureNative.DevTestLab.SourceControlType
The artifact source's type.
Status string | Pulumi.AzureNative.DevTestLab.EnableStatus
Indicates if the artifact source is enabled (values: Enabled, Disabled).
Tags Dictionary<string, string>
The tags of the resource.
Uri string
The artifact source's URI.
LabName
This property is required.
Changes to this property will trigger replacement.
string
The name of the lab.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
ArmTemplateFolderPath string
The folder containing Azure Resource Manager templates.
BranchRef string
The artifact source's branch reference.
DisplayName string
The artifact source's display name.
FolderPath string
The folder containing artifacts.
Location string
The location of the resource.
Name Changes to this property will trigger replacement. string
The name of the artifact source.
SecurityToken string
The security token to authenticate to the artifact source.
SourceType string | SourceControlType
The artifact source's type.
Status string | EnableStatus
Indicates if the artifact source is enabled (values: Enabled, Disabled).
Tags map[string]string
The tags of the resource.
Uri string
The artifact source's URI.
labName
This property is required.
Changes to this property will trigger replacement.
String
The name of the lab.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
armTemplateFolderPath String
The folder containing Azure Resource Manager templates.
branchRef String
The artifact source's branch reference.
displayName String
The artifact source's display name.
folderPath String
The folder containing artifacts.
location String
The location of the resource.
name Changes to this property will trigger replacement. String
The name of the artifact source.
securityToken String
The security token to authenticate to the artifact source.
sourceType String | SourceControlType
The artifact source's type.
status String | EnableStatus
Indicates if the artifact source is enabled (values: Enabled, Disabled).
tags Map<String,String>
The tags of the resource.
uri String
The artifact source's URI.
labName
This property is required.
Changes to this property will trigger replacement.
string
The name of the lab.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
armTemplateFolderPath string
The folder containing Azure Resource Manager templates.
branchRef string
The artifact source's branch reference.
displayName string
The artifact source's display name.
folderPath string
The folder containing artifacts.
location string
The location of the resource.
name Changes to this property will trigger replacement. string
The name of the artifact source.
securityToken string
The security token to authenticate to the artifact source.
sourceType string | SourceControlType
The artifact source's type.
status string | EnableStatus
Indicates if the artifact source is enabled (values: Enabled, Disabled).
tags {[key: string]: string}
The tags of the resource.
uri string
The artifact source's URI.
lab_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the lab.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
arm_template_folder_path str
The folder containing Azure Resource Manager templates.
branch_ref str
The artifact source's branch reference.
display_name str
The artifact source's display name.
folder_path str
The folder containing artifacts.
location str
The location of the resource.
name Changes to this property will trigger replacement. str
The name of the artifact source.
security_token str
The security token to authenticate to the artifact source.
source_type str | SourceControlType
The artifact source's type.
status str | EnableStatus
Indicates if the artifact source is enabled (values: Enabled, Disabled).
tags Mapping[str, str]
The tags of the resource.
uri str
The artifact source's URI.
labName
This property is required.
Changes to this property will trigger replacement.
String
The name of the lab.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
armTemplateFolderPath String
The folder containing Azure Resource Manager templates.
branchRef String
The artifact source's branch reference.
displayName String
The artifact source's display name.
folderPath String
The folder containing artifacts.
location String
The location of the resource.
name Changes to this property will trigger replacement. String
The name of the artifact source.
securityToken String
The security token to authenticate to the artifact source.
sourceType String | "VsoGit" | "GitHub" | "StorageAccount"
The artifact source's type.
status String | "Enabled" | "Disabled"
Indicates if the artifact source is enabled (values: Enabled, Disabled).
tags Map<String>
The tags of the resource.
uri String
The artifact source's URI.

Outputs

All input properties are implicitly available as output properties. Additionally, the ArtifactSource resource produces the following output properties:

CreatedDate string
The artifact source's creation date.
Id string
The provider-assigned unique ID for this managed resource.
ProvisioningState string
The provisioning status of the resource.
Type string
The type of the resource.
UniqueIdentifier string
The unique immutable identifier of a resource (Guid).
CreatedDate string
The artifact source's creation date.
Id string
The provider-assigned unique ID for this managed resource.
ProvisioningState string
The provisioning status of the resource.
Type string
The type of the resource.
UniqueIdentifier string
The unique immutable identifier of a resource (Guid).
createdDate String
The artifact source's creation date.
id String
The provider-assigned unique ID for this managed resource.
provisioningState String
The provisioning status of the resource.
type String
The type of the resource.
uniqueIdentifier String
The unique immutable identifier of a resource (Guid).
createdDate string
The artifact source's creation date.
id string
The provider-assigned unique ID for this managed resource.
provisioningState string
The provisioning status of the resource.
type string
The type of the resource.
uniqueIdentifier string
The unique immutable identifier of a resource (Guid).
created_date str
The artifact source's creation date.
id str
The provider-assigned unique ID for this managed resource.
provisioning_state str
The provisioning status of the resource.
type str
The type of the resource.
unique_identifier str
The unique immutable identifier of a resource (Guid).
createdDate String
The artifact source's creation date.
id String
The provider-assigned unique ID for this managed resource.
provisioningState String
The provisioning status of the resource.
type String
The type of the resource.
uniqueIdentifier String
The unique immutable identifier of a resource (Guid).

Supporting Types

EnableStatus
, EnableStatusArgs

Enabled
Enabled
Disabled
Disabled
EnableStatusEnabled
Enabled
EnableStatusDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

SourceControlType
, SourceControlTypeArgs

VsoGit
VsoGit
GitHub
GitHub
StorageAccount
StorageAccount
SourceControlTypeVsoGit
VsoGit
SourceControlTypeGitHub
GitHub
SourceControlTypeStorageAccount
StorageAccount
VsoGit
VsoGit
GitHub
GitHub
StorageAccount
StorageAccount
VsoGit
VsoGit
GitHub
GitHub
StorageAccount
StorageAccount
VSO_GIT
VsoGit
GIT_HUB
GitHub
STORAGE_ACCOUNT
StorageAccount
"VsoGit"
VsoGit
"GitHub"
GitHub
"StorageAccount"
StorageAccount

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:devtestlab:ArtifactSource {artifactSourceName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/artifactsources/{name} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi