ArtifactSource

class ArtifactSource : KotlinCustomResource

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,
});
});
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());
}
}

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,
});
});
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

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}

Properties

Link copied to clipboard
val artifactRoot: Output<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.

Link copied to clipboard

The authentication method to use to access the artifact source.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val sourceType: Output<String>

The type of artifact source used.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>