azure-native.deploymentmanager.ArtifactSource
Explore with Pulumi AI
The resource that defines the source location where the artifacts are located. API Version: 2019-11-01-preview.
Example Usage
Create artifact source
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var artifactSource = new AzureNative.DeploymentManager.ArtifactSource("artifactSource", new()
    {
        ArtifactSourceName = "myArtifactSource",
        Authentication = new AzureNative.DeploymentManager.Inputs.SasAuthenticationArgs
        {
            SasUri = "https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D",
            Type = "Sas",
        },
        Location = "centralus",
        ResourceGroupName = "myResourceGroup",
        SourceType = "AzureStorage",
        Tags = null,
    });
});
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.deploymentmanager.ArtifactSource;
import com.pulumi.azurenative.deploymentmanager.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()        
            .artifactSourceName("myArtifactSource")
            .authentication(Map.ofEntries(
                Map.entry("sasUri", "https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D"),
                Map.entry("type", "Sas")
            ))
            .location("centralus")
            .resourceGroupName("myResourceGroup")
            .sourceType("AzureStorage")
            .tags()
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const artifactSource = new azure_native.deploymentmanager.ArtifactSource("artifactSource", {
    artifactSourceName: "myArtifactSource",
    authentication: {
        sasUri: "https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D",
        type: "Sas",
    },
    location: "centralus",
    resourceGroupName: "myResourceGroup",
    sourceType: "AzureStorage",
    tags: {},
});
import pulumi
import pulumi_azure_native as azure_native
artifact_source = azure_native.deploymentmanager.ArtifactSource("artifactSource",
    artifact_source_name="myArtifactSource",
    authentication=azure_native.deploymentmanager.SasAuthenticationResponseArgs(
        sas_uri="https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D",
        type="Sas",
    ),
    location="centralus",
    resource_group_name="myResourceGroup",
    source_type="AzureStorage",
    tags={})
resources:
  artifactSource:
    type: azure-native:deploymentmanager:ArtifactSource
    properties:
      artifactSourceName: myArtifactSource
      authentication:
        sasUri: https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D
        type: Sas
      location: centralus
      resourceGroupName: myResourceGroup
      sourceType: AzureStorage
      tags: {}
Create artifact source with artifact root, an offset into the storage container
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var artifactSource = new AzureNative.DeploymentManager.ArtifactSource("artifactSource", new()
    {
        ArtifactRoot = "1.0.0.0",
        ArtifactSourceName = "myArtifactSource",
        Authentication = new AzureNative.DeploymentManager.Inputs.SasAuthenticationArgs
        {
            SasUri = "https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D",
            Type = "Sas",
        },
        Location = "centralus",
        ResourceGroupName = "myResourceGroup",
        SourceType = "AzureStorage",
        Tags = null,
    });
});
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.deploymentmanager.ArtifactSource;
import com.pulumi.azurenative.deploymentmanager.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()        
            .artifactRoot("1.0.0.0")
            .artifactSourceName("myArtifactSource")
            .authentication(Map.ofEntries(
                Map.entry("sasUri", "https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D"),
                Map.entry("type", "Sas")
            ))
            .location("centralus")
            .resourceGroupName("myResourceGroup")
            .sourceType("AzureStorage")
            .tags()
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const artifactSource = new azure_native.deploymentmanager.ArtifactSource("artifactSource", {
    artifactRoot: "1.0.0.0",
    artifactSourceName: "myArtifactSource",
    authentication: {
        sasUri: "https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D",
        type: "Sas",
    },
    location: "centralus",
    resourceGroupName: "myResourceGroup",
    sourceType: "AzureStorage",
    tags: {},
});
import pulumi
import pulumi_azure_native as azure_native
artifact_source = azure_native.deploymentmanager.ArtifactSource("artifactSource",
    artifact_root="1.0.0.0",
    artifact_source_name="myArtifactSource",
    authentication=azure_native.deploymentmanager.SasAuthenticationResponseArgs(
        sas_uri="https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D",
        type="Sas",
    ),
    location="centralus",
    resource_group_name="myResourceGroup",
    source_type="AzureStorage",
    tags={})
resources:
  artifactSource:
    type: azure-native:deploymentmanager:ArtifactSource
    properties:
      artifactRoot: 1.0.0.0
      artifactSourceName: myArtifactSource
      authentication:
        sasUri: https://mystorageaccount.blob.core.windows.net/myartifactsource?st=2018-07-07T14%3A10%3A00Z&se=2019-12-31T15%3A10%3A00Z&sp=rl&sv=2017-04-17&sr=c&sig=Yh2SoJ1NhhLRwCLln7de%2Fkabcdefghijklmno5sWEIk%3D
        type: Sas
      location: centralus
      resourceGroupName: myResourceGroup
      sourceType: AzureStorage
      tags: {}
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,
                   authentication: Optional[SasAuthenticationArgs] = None,
                   resource_group_name: Optional[str] = None,
                   source_type: Optional[str] = None,
                   artifact_root: Optional[str] = None,
                   artifact_source_name: Optional[str] = None,
                   location: Optional[str] = None,
                   tags: Optional[Mapping[str, 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:deploymentmanager: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.Deploymentmanager.ArtifactSource("artifactSourceResource", new()
{
    Authentication = 
    {
        { "sasUri", "string" },
        { "type", "Sas" },
    },
    ResourceGroupName = "string",
    SourceType = "string",
    ArtifactRoot = "string",
    ArtifactSourceName = "string",
    Location = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := deploymentmanager.NewArtifactSource(ctx, "artifactSourceResource", &deploymentmanager.ArtifactSourceArgs{
	Authentication: map[string]interface{}{
		"sasUri": "string",
		"type":   "Sas",
	},
	ResourceGroupName:  "string",
	SourceType:         "string",
	ArtifactRoot:       "string",
	ArtifactSourceName: "string",
	Location:           "string",
	Tags: map[string]interface{}{
		"string": "string",
	},
})
var artifactSourceResource = new ArtifactSource("artifactSourceResource", ArtifactSourceArgs.builder()
    .authentication(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .resourceGroupName("string")
    .sourceType("string")
    .artifactRoot("string")
    .artifactSourceName("string")
    .location("string")
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .build());
artifact_source_resource = azure_native.deploymentmanager.ArtifactSource("artifactSourceResource",
    authentication={
        sasUri: string,
        type: Sas,
    },
    resource_group_name=string,
    source_type=string,
    artifact_root=string,
    artifact_source_name=string,
    location=string,
    tags={
        string: string,
    })
const artifactSourceResource = new azure_native.deploymentmanager.ArtifactSource("artifactSourceResource", {
    authentication: {
        sasUri: "string",
        type: "Sas",
    },
    resourceGroupName: "string",
    sourceType: "string",
    artifactRoot: "string",
    artifactSourceName: "string",
    location: "string",
    tags: {
        string: "string",
    },
});
type: azure-native:deploymentmanager:ArtifactSource
properties:
    artifactRoot: string
    artifactSourceName: string
    authentication:
        sasUri: string
        type: Sas
    location: string
    resourceGroupName: string
    sourceType: string
    tags:
        string: 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:
- Authentication
Pulumi.Azure Native. Deployment Manager. Inputs. Sas Authentication 
- The authentication method to use to access the artifact source.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- SourceType string
- The type of artifact source used.
- ArtifactRoot string
- The path from the location that the 'authentication' property [say, a SAS URI to the blob container] refers to, to the location of the artifacts. This can be used to differentiate different versions of the artifacts. Or, different types of artifacts like binaries or templates. The location referenced by the authentication property concatenated with this optional artifactRoot path forms the artifact source location where the artifacts are expected to be found.
- ArtifactSource stringName 
- The name of the artifact source.
- Location string
- The geo-location where the resource lives
- Dictionary<string, string>
- Resource tags.
- Authentication
SasAuthentication Args 
- The authentication method to use to access the artifact source.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- SourceType string
- The type of artifact source used.
- ArtifactRoot string
- The path from the location that the 'authentication' property [say, a SAS URI to the blob container] refers to, to the location of the artifacts. This can be used to differentiate different versions of the artifacts. Or, different types of artifacts like binaries or templates. The location referenced by the authentication property concatenated with this optional artifactRoot path forms the artifact source location where the artifacts are expected to be found.
- ArtifactSource stringName 
- The name of the artifact source.
- Location string
- The geo-location where the resource lives
- map[string]string
- Resource tags.
- authentication
SasAuthentication 
- The authentication method to use to access the artifact source.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- sourceType String
- The type of artifact source used.
- artifactRoot String
- The path from the location that the 'authentication' property [say, a SAS URI to the blob container] refers to, to the location of the artifacts. This can be used to differentiate different versions of the artifacts. Or, different types of artifacts like binaries or templates. The location referenced by the authentication property concatenated with this optional artifactRoot path forms the artifact source location where the artifacts are expected to be found.
- artifactSource StringName 
- The name of the artifact source.
- location String
- The geo-location where the resource lives
- Map<String,String>
- Resource tags.
- authentication
SasAuthentication 
- The authentication method to use to access the artifact source.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- sourceType string
- The type of artifact source used.
- artifactRoot string
- The path from the location that the 'authentication' property [say, a SAS URI to the blob container] refers to, to the location of the artifacts. This can be used to differentiate different versions of the artifacts. Or, different types of artifacts like binaries or templates. The location referenced by the authentication property concatenated with this optional artifactRoot path forms the artifact source location where the artifacts are expected to be found.
- artifactSource stringName 
- The name of the artifact source.
- location string
- The geo-location where the resource lives
- {[key: string]: string}
- Resource tags.
- authentication
SasAuthentication Args 
- The authentication method to use to access the artifact source.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- source_type str
- The type of artifact source used.
- artifact_root str
- The path from the location that the 'authentication' property [say, a SAS URI to the blob container] refers to, to the location of the artifacts. This can be used to differentiate different versions of the artifacts. Or, different types of artifacts like binaries or templates. The location referenced by the authentication property concatenated with this optional artifactRoot path forms the artifact source location where the artifacts are expected to be found.
- artifact_source_ strname 
- The name of the artifact source.
- location str
- The geo-location where the resource lives
- Mapping[str, str]
- Resource tags.
- authentication Property Map
- The authentication method to use to access the artifact source.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- sourceType String
- The type of artifact source used.
- artifactRoot String
- The path from the location that the 'authentication' property [say, a SAS URI to the blob container] refers to, to the location of the artifacts. This can be used to differentiate different versions of the artifacts. Or, different types of artifacts like binaries or templates. The location referenced by the authentication property concatenated with this optional artifactRoot path forms the artifact source location where the artifacts are expected to be found.
- artifactSource StringName 
- The name of the artifact source.
- location String
- The geo-location where the resource lives
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the ArtifactSource resource produces the following output properties:
Supporting Types
SasAuthentication, SasAuthenticationArgs    
- SasUri string
- The SAS URI to the Azure Storage blob container. Any offset from the root of the container to where the artifacts are located can be defined in the artifactRoot.
- SasUri string
- The SAS URI to the Azure Storage blob container. Any offset from the root of the container to where the artifacts are located can be defined in the artifactRoot.
- sasUri String
- The SAS URI to the Azure Storage blob container. Any offset from the root of the container to where the artifacts are located can be defined in the artifactRoot.
- sasUri string
- The SAS URI to the Azure Storage blob container. Any offset from the root of the container to where the artifacts are located can be defined in the artifactRoot.
- sas_uri str
- The SAS URI to the Azure Storage blob container. Any offset from the root of the container to where the artifacts are located can be defined in the artifactRoot.
- sasUri String
- The SAS URI to the Azure Storage blob container. Any offset from the root of the container to where the artifacts are located can be defined in the artifactRoot.
SasAuthenticationResponse, SasAuthenticationResponseArgs      
- SasUri string
- The SAS URI to the Azure Storage blob container. Any offset from the root of the container to where the artifacts are located can be defined in the artifactRoot.
- SasUri string
- The SAS URI to the Azure Storage blob container. Any offset from the root of the container to where the artifacts are located can be defined in the artifactRoot.
- sasUri String
- The SAS URI to the Azure Storage blob container. Any offset from the root of the container to where the artifacts are located can be defined in the artifactRoot.
- sasUri string
- The SAS URI to the Azure Storage blob container. Any offset from the root of the container to where the artifacts are located can be defined in the artifactRoot.
- sas_uri str
- The SAS URI to the Azure Storage blob container. Any offset from the root of the container to where the artifacts are located can be defined in the artifactRoot.
- sasUri String
- The SAS URI to the Azure Storage blob container. Any offset from the root of the container to where the artifacts are located can be defined in the artifactRoot.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:deploymentmanager:ArtifactSource myArtifactSource /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/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