azure-native.devtestlab.ArtifactSource
Explore with Pulumi AI
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}",
    });
});
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
	})
}
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:
- LabName string
- The name of the lab.
- ResourceGroup stringName 
- The name of the resource group.
- ArmTemplate stringFolder Path 
- 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 string
- The name of the artifact source.
- SecurityToken string
- The security token to authenticate to the artifact source.
- SourceType 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>
- The tags of the resource.
- Uri string
- The artifact source's URI.
- LabName string
- The name of the lab.
- ResourceGroup stringName 
- The name of the resource group.
- ArmTemplate stringFolder Path 
- 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 string
- The name of the artifact source.
- SecurityToken string
- The security token to authenticate to the artifact source.
- SourceType string | SourceControl Type 
- The artifact source's type.
- Status
string | EnableStatus 
- Indicates if the artifact source is enabled (values: Enabled, Disabled).
- map[string]string
- The tags of the resource.
- Uri string
- The artifact source's URI.
- labName String
- The name of the lab.
- resourceGroup StringName 
- The name of the resource group.
- armTemplate StringFolder Path 
- 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 String
- The name of the artifact source.
- securityToken String
- The security token to authenticate to the artifact source.
- sourceType String | SourceControl Type 
- The artifact source's type.
- status
String | EnableStatus 
- Indicates if the artifact source is enabled (values: Enabled, Disabled).
- Map<String,String>
- The tags of the resource.
- uri String
- The artifact source's URI.
- labName string
- The name of the lab.
- resourceGroup stringName 
- The name of the resource group.
- armTemplate stringFolder Path 
- 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 string
- The name of the artifact source.
- securityToken string
- The security token to authenticate to the artifact source.
- sourceType string | SourceControl Type 
- The artifact source's type.
- status
string | EnableStatus 
- Indicates if the artifact source is enabled (values: Enabled, Disabled).
- {[key: string]: string}
- The tags of the resource.
- uri string
- The artifact source's URI.
- lab_name str
- The name of the lab.
- resource_group_ strname 
- The name of the resource group.
- 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 location of the resource.
- 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 | EnableStatus 
- Indicates if the artifact source is enabled (values: Enabled, Disabled).
- Mapping[str, str]
- The tags of the resource.
- uri str
- The artifact source's URI.
- labName String
- The name of the lab.
- resourceGroup StringName 
- The name of the resource group.
- armTemplate StringFolder Path 
- 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 String
- The name of the artifact source.
- securityToken String
- The security token to authenticate to the artifact source.
- sourceType 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>
- 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
- EnableStatus Enabled 
- Enabled
- EnableStatus Disabled 
- 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
- SourceControl Type Vso Git 
- VsoGit
- SourceControl Type Git Hub 
- GitHub
- SourceControl Type Storage Account 
- 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} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0