published on Friday, Mar 20, 2026 by Pulumi
published on Friday, Mar 20, 2026 by Pulumi
Properties of an artifact source.
Uses Azure REST API version 2018-09-15. In version 2.x of the Azure Native provider, it used API version 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}",
});
});
package main
import (
devtestlab "github.com/pulumi/pulumi-azure-native-sdk/devtestlab/v3"
"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
})
}
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());
}
}
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}",
});
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}")
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}'
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 string
- The unique name of the resource.
- args ArtifactSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args ArtifactSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ArtifactSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := devtestlab.NewArtifactSource(ctx, "artifactSourceResource", &devtestlab.ArtifactSourceArgs{
LabName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Name: pulumi.String("string"),
FolderPath: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Location: pulumi.String("string"),
ArmTemplateFolderPath: pulumi.String("string"),
BranchRef: pulumi.String("string"),
SecurityToken: pulumi.String("string"),
SourceType: pulumi.String("string"),
Status: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Uri: pulumi.String("string"),
})
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(Map.of("string", "string"))
.uri("string")
.build());
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")
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",
});
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
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:
- Lab
Name string - The name of the lab.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Arm
Template stringFolder Path - The folder containing Azure Resource Manager templates.
- Branch
Ref string - The artifact source's branch reference.
- Display
Name string - The artifact source's display name.
- Folder
Path string - The folder containing artifacts.
- Location string
- The geo-location where the resource lives
- Name string
- The name of the artifact source.
- Security
Token string - The security token to authenticate to the artifact source.
- Source
Type string | Pulumi.Azure Native. Dev Test Lab. Source Control Type - The artifact source's type.
- Status
string | Pulumi.
Azure Native. Dev Test Lab. Enable Status - Indicates if the artifact source is enabled (values: Enabled, Disabled).
- Dictionary<string, string>
- Resource tags.
- Uri string
- The artifact source's URI.
- Lab
Name string - The name of the lab.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Arm
Template stringFolder Path - The folder containing Azure Resource Manager templates.
- Branch
Ref string - The artifact source's branch reference.
- Display
Name string - The artifact source's display name.
- Folder
Path string - The folder containing artifacts.
- Location string
- The geo-location where the resource lives
- Name string
- The name of the artifact source.
- Security
Token string - The security token to authenticate to the artifact source.
- Source
Type string | SourceControl Type - The artifact source's type.
- Status
string | Enable
Status - Indicates if the artifact source is enabled (values: Enabled, Disabled).
- map[string]string
- Resource tags.
- Uri string
- The artifact source's URI.
- lab
Name String - The name of the lab.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- arm
Template StringFolder Path - The folder containing Azure Resource Manager templates.
- branch
Ref String - The artifact source's branch reference.
- display
Name String - The artifact source's display name.
- folder
Path String - The folder containing artifacts.
- location String
- The geo-location where the resource lives
- name String
- The name of the artifact source.
- security
Token String - The security token to authenticate to the artifact source.
- source
Type String | SourceControl Type - The artifact source's type.
- status
String | Enable
Status - Indicates if the artifact source is enabled (values: Enabled, Disabled).
- Map<String,String>
- Resource tags.
- uri String
- The artifact source's URI.
- lab
Name string - The name of the lab.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- arm
Template stringFolder Path - The folder containing Azure Resource Manager templates.
- branch
Ref string - The artifact source's branch reference.
- display
Name string - The artifact source's display name.
- folder
Path string - The folder containing artifacts.
- location string
- The geo-location where the resource lives
- name string
- The name of the artifact source.
- security
Token string - The security token to authenticate to the artifact source.
- source
Type string | SourceControl Type - The artifact source's type.
- status
string | Enable
Status - Indicates if the artifact source is enabled (values: Enabled, Disabled).
- {[key: string]: string}
- Resource tags.
- uri string
- The artifact source's URI.
- lab_
name str - The name of the lab.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- arm_
template_ strfolder_ path - 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 geo-location where the resource lives
- name str
- The name of the artifact source.
- security_
token str - The security token to authenticate to the artifact source.
- source_
type str | SourceControl Type - The artifact source's type.
- status
str | Enable
Status - Indicates if the artifact source is enabled (values: Enabled, Disabled).
- Mapping[str, str]
- Resource tags.
- uri str
- The artifact source's URI.
- lab
Name String - The name of the lab.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- arm
Template StringFolder Path - The folder containing Azure Resource Manager templates.
- branch
Ref String - The artifact source's branch reference.
- display
Name String - The artifact source's display name.
- folder
Path String - The folder containing artifacts.
- location String
- The geo-location where the resource lives
- name String
- The name of the artifact source.
- security
Token String - The security token to authenticate to the artifact source.
- source
Type String | "VsoGit" | "Git Hub" | "Storage Account" - The artifact source's type.
- status String | "Enabled" | "Disabled"
- Indicates if the artifact source is enabled (values: Enabled, Disabled).
- Map<String>
- Resource tags.
- 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:
- Azure
Api stringVersion - The Azure API version of the resource.
- Created
Date string - The artifact source's creation date.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - The provisioning status of the resource.
- System
Data Pulumi.Azure Native. Dev Test Lab. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Unique
Identifier string - The unique immutable identifier of a resource (Guid).
- Azure
Api stringVersion - The Azure API version of the resource.
- Created
Date string - The artifact source's creation date.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - The provisioning status of the resource.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Unique
Identifier string - The unique immutable identifier of a resource (Guid).
- azure
Api StringVersion - The Azure API version of the resource.
- created
Date String - The artifact source's creation date.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - The provisioning status of the resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- unique
Identifier String - The unique immutable identifier of a resource (Guid).
- azure
Api stringVersion - The Azure API version of the resource.
- created
Date string - The artifact source's creation date.
- id string
- The provider-assigned unique ID for this managed resource.
- provisioning
State string - The provisioning status of the resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- unique
Identifier string - The unique immutable identifier of a resource (Guid).
- azure_
api_ strversion - The Azure API version of the resource.
- 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.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- unique_
identifier str - The unique immutable identifier of a resource (Guid).
- azure
Api StringVersion - The Azure API version of the resource.
- created
Date String - The artifact source's creation date.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - The provisioning status of the resource.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- unique
Identifier String - The unique immutable identifier of a resource (Guid).
Supporting Types
EnableStatus, EnableStatusArgs
- Enabled
Enabled- Disabled
Disabled
- Enable
Status Enabled Enabled- Enable
Status Disabled Disabled
- Enabled
Enabled- Disabled
Disabled
- Enabled
Enabled- Disabled
Disabled
- ENABLED
Enabled- DISABLED
Disabled
- "Enabled"
Enabled- "Disabled"
Disabled
SourceControlType, SourceControlTypeArgs
- Vso
Git VsoGit- Git
Hub GitHub- Storage
Account StorageAccount
- Source
Control Type Vso Git VsoGit- Source
Control Type Git Hub GitHub- Source
Control Type Storage Account StorageAccount
- Vso
Git VsoGit- Git
Hub GitHub- Storage
Account StorageAccount
- Vso
Git VsoGit- Git
Hub GitHub- Storage
Account StorageAccount
- VSO_GIT
VsoGit- GIT_HUB
GitHub- STORAGE_ACCOUNT
StorageAccount
- "Vso
Git" VsoGit- "Git
Hub" GitHub- "Storage
Account" StorageAccount
SystemDataResponse, SystemDataResponseArgs
Metadata pertaining to creation and last modification of the resource.- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
published on Friday, Mar 20, 2026 by Pulumi
