Artifact Source Args
data class ArtifactSourceArgs(val artifactRoot: Output<String>? = null, val artifactSourceName: Output<String>? = null, val authentication: Output<SasAuthenticationArgs>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sourceType: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ArtifactSourceArgs>
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,
});
});
Content copied to clipboard
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());
}
}
Content copied to clipboard
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,
});
});
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Constructors
Link copied to clipboard
fun ArtifactSourceArgs(artifactRoot: Output<String>? = null, artifactSourceName: Output<String>? = null, authentication: Output<SasAuthenticationArgs>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, sourceType: Output<String>? = null, tags: Output<Map<String, String>>? = null)
Functions
Properties
Link copied to clipboard
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.
Link copied to clipboard
Link copied to clipboard