azure-native.devtestlab.ArtifactSource
Explore with Pulumi AI
Properties of an artifact source. 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"
"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 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}")
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}",
});
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 azure_nativeArtifactSourceResource = new AzureNative.Devtestlab.ArtifactSource("azure-nativeArtifactSourceResource", 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, "azure-nativeArtifactSourceResource", &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",
})
var azure_nativeArtifactSourceResource = new ArtifactSource("azure-nativeArtifactSourceResource", 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());
azure_native_artifact_source_resource = azure_native.devtestlab.ArtifactSource("azure-nativeArtifactSourceResource",
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 azure_nativeArtifactSourceResource = new azure_native.devtestlab.ArtifactSource("azure-nativeArtifactSourceResource", {
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.
- 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 location of the resource.
- 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>
- The tags of the resource.
- Uri string
- The artifact source's URI.
- Lab
Name string - The name of the lab.
- Resource
Group stringName - The name of the resource group.
- 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 location of the resource.
- 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
- The tags of the resource.
- Uri string
- The artifact source's URI.
- lab
Name String - The name of the lab.
- resource
Group StringName - The name of the resource group.
- 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 location of the resource.
- 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>
- The tags of the resource.
- uri String
- The artifact source's URI.
- lab
Name string - The name of the lab.
- resource
Group stringName - The name of the resource group.
- 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 location of the resource.
- 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}
- 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 | Enable
Status - 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.
- lab
Name String - The name of the lab.
- resource
Group StringName - The name of the resource group.
- 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 location of the resource.
- 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>
- 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:
- 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.
- Type string
- The type of the resource.
- Unique
Identifier string - The unique immutable identifier of a resource (Guid).
- 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.
- Type string
- The type of the resource.
- Unique
Identifier string - The unique immutable identifier of a resource (Guid).
- 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.
- type String
- The type of the resource.
- unique
Identifier String - The unique immutable identifier of a resource (Guid).
- 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.
- type string
- The type of the resource.
- unique
Identifier 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).
- 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.
- type String
- The type of the resource.
- 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
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/{artifactSourceName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0