Azure Native

v1.87.0 published on Tuesday, Nov 22, 2022 by Pulumi

Artifact

Deprecated:

Please use one of the variants: PolicyAssignmentArtifact, RoleAssignmentArtifact, TemplateArtifact.

Represents a blueprint artifact. API Version: 2018-11-01-preview.

Example Usage

MG-ARMTemplateArtifact

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var artifact = new AzureNative.Blueprint.Artifact("artifact", new()
    {
        ArtifactName = "storageTemplate",
        BlueprintName = "simpleBlueprint",
        Kind = "template",
        ResourceScope = "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup",
    });

});
package main

import (
	blueprint "github.com/pulumi/pulumi-azure-native/sdk/go/azure/blueprint"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := blueprint.NewArtifact(ctx, "artifact", &blueprint.ArtifactArgs{
			ArtifactName:  pulumi.String("storageTemplate"),
			BlueprintName: pulumi.String("simpleBlueprint"),
			Kind:          pulumi.String("template"),
			ResourceScope: pulumi.String("providers/Microsoft.Management/managementGroups/ContosoOnlineGroup"),
		})
		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.blueprint.Artifact;
import com.pulumi.azurenative.blueprint.ArtifactArgs;
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 artifact = new Artifact("artifact", ArtifactArgs.builder()        
            .artifactName("storageTemplate")
            .blueprintName("simpleBlueprint")
            .kind("template")
            .resourceScope("providers/Microsoft.Management/managementGroups/ContosoOnlineGroup")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

artifact = azure_native.blueprint.Artifact("artifact",
    artifact_name="storageTemplate",
    blueprint_name="simpleBlueprint",
    kind="template",
    resource_scope="providers/Microsoft.Management/managementGroups/ContosoOnlineGroup")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const artifact = new azure_native.blueprint.Artifact("artifact", {
    artifactName: "storageTemplate",
    blueprintName: "simpleBlueprint",
    kind: "template",
    resourceScope: "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup",
});
resources:
  artifact:
    type: azure-native:blueprint:Artifact
    properties:
      artifactName: storageTemplate
      blueprintName: simpleBlueprint
      kind: template
      resourceScope: providers/Microsoft.Management/managementGroups/ContosoOnlineGroup

MG-PolicyAssignmentArtifact

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var artifact = new AzureNative.Blueprint.Artifact("artifact", new()
    {
        ArtifactName = "costCenterPolicy",
        BlueprintName = "simpleBlueprint",
        Kind = "policyAssignment",
        ResourceScope = "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup",
    });

});
package main

import (
	blueprint "github.com/pulumi/pulumi-azure-native/sdk/go/azure/blueprint"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := blueprint.NewArtifact(ctx, "artifact", &blueprint.ArtifactArgs{
			ArtifactName:  pulumi.String("costCenterPolicy"),
			BlueprintName: pulumi.String("simpleBlueprint"),
			Kind:          pulumi.String("policyAssignment"),
			ResourceScope: pulumi.String("providers/Microsoft.Management/managementGroups/ContosoOnlineGroup"),
		})
		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.blueprint.Artifact;
import com.pulumi.azurenative.blueprint.ArtifactArgs;
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 artifact = new Artifact("artifact", ArtifactArgs.builder()        
            .artifactName("costCenterPolicy")
            .blueprintName("simpleBlueprint")
            .kind("policyAssignment")
            .resourceScope("providers/Microsoft.Management/managementGroups/ContosoOnlineGroup")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

artifact = azure_native.blueprint.Artifact("artifact",
    artifact_name="costCenterPolicy",
    blueprint_name="simpleBlueprint",
    kind="policyAssignment",
    resource_scope="providers/Microsoft.Management/managementGroups/ContosoOnlineGroup")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const artifact = new azure_native.blueprint.Artifact("artifact", {
    artifactName: "costCenterPolicy",
    blueprintName: "simpleBlueprint",
    kind: "policyAssignment",
    resourceScope: "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup",
});
resources:
  artifact:
    type: azure-native:blueprint:Artifact
    properties:
      artifactName: costCenterPolicy
      blueprintName: simpleBlueprint
      kind: policyAssignment
      resourceScope: providers/Microsoft.Management/managementGroups/ContosoOnlineGroup

MG-RoleAssignmentArtifact

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var artifact = new AzureNative.Blueprint.Artifact("artifact", new()
    {
        ArtifactName = "ownerAssignment",
        BlueprintName = "simpleBlueprint",
        Kind = "roleAssignment",
        ResourceScope = "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup",
    });

});
package main

import (
	blueprint "github.com/pulumi/pulumi-azure-native/sdk/go/azure/blueprint"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := blueprint.NewArtifact(ctx, "artifact", &blueprint.ArtifactArgs{
			ArtifactName:  pulumi.String("ownerAssignment"),
			BlueprintName: pulumi.String("simpleBlueprint"),
			Kind:          pulumi.String("roleAssignment"),
			ResourceScope: pulumi.String("providers/Microsoft.Management/managementGroups/ContosoOnlineGroup"),
		})
		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.blueprint.Artifact;
import com.pulumi.azurenative.blueprint.ArtifactArgs;
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 artifact = new Artifact("artifact", ArtifactArgs.builder()        
            .artifactName("ownerAssignment")
            .blueprintName("simpleBlueprint")
            .kind("roleAssignment")
            .resourceScope("providers/Microsoft.Management/managementGroups/ContosoOnlineGroup")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

artifact = azure_native.blueprint.Artifact("artifact",
    artifact_name="ownerAssignment",
    blueprint_name="simpleBlueprint",
    kind="roleAssignment",
    resource_scope="providers/Microsoft.Management/managementGroups/ContosoOnlineGroup")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const artifact = new azure_native.blueprint.Artifact("artifact", {
    artifactName: "ownerAssignment",
    blueprintName: "simpleBlueprint",
    kind: "roleAssignment",
    resourceScope: "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup",
});
resources:
  artifact:
    type: azure-native:blueprint:Artifact
    properties:
      artifactName: ownerAssignment
      blueprintName: simpleBlueprint
      kind: roleAssignment
      resourceScope: providers/Microsoft.Management/managementGroups/ContosoOnlineGroup

Sub-ARMTemplateArtifact

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var artifact = new AzureNative.Blueprint.Artifact("artifact", new()
    {
        ArtifactName = "storageTemplate",
        BlueprintName = "simpleBlueprint",
        Kind = "template",
        ResourceScope = "subscriptions/00000000-0000-0000-0000-000000000000",
    });

});
package main

import (
	blueprint "github.com/pulumi/pulumi-azure-native/sdk/go/azure/blueprint"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := blueprint.NewArtifact(ctx, "artifact", &blueprint.ArtifactArgs{
			ArtifactName:  pulumi.String("storageTemplate"),
			BlueprintName: pulumi.String("simpleBlueprint"),
			Kind:          pulumi.String("template"),
			ResourceScope: pulumi.String("subscriptions/00000000-0000-0000-0000-000000000000"),
		})
		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.blueprint.Artifact;
import com.pulumi.azurenative.blueprint.ArtifactArgs;
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 artifact = new Artifact("artifact", ArtifactArgs.builder()        
            .artifactName("storageTemplate")
            .blueprintName("simpleBlueprint")
            .kind("template")
            .resourceScope("subscriptions/00000000-0000-0000-0000-000000000000")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

artifact = azure_native.blueprint.Artifact("artifact",
    artifact_name="storageTemplate",
    blueprint_name="simpleBlueprint",
    kind="template",
    resource_scope="subscriptions/00000000-0000-0000-0000-000000000000")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const artifact = new azure_native.blueprint.Artifact("artifact", {
    artifactName: "storageTemplate",
    blueprintName: "simpleBlueprint",
    kind: "template",
    resourceScope: "subscriptions/00000000-0000-0000-0000-000000000000",
});
resources:
  artifact:
    type: azure-native:blueprint:Artifact
    properties:
      artifactName: storageTemplate
      blueprintName: simpleBlueprint
      kind: template
      resourceScope: subscriptions/00000000-0000-0000-0000-000000000000

Sub-PolicyAssignmentArtifact

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var artifact = new AzureNative.Blueprint.Artifact("artifact", new()
    {
        ArtifactName = "costCenterPolicy",
        BlueprintName = "simpleBlueprint",
        Kind = "policyAssignment",
        ResourceScope = "subscriptions/00000000-0000-0000-0000-000000000000",
    });

});
package main

import (
	blueprint "github.com/pulumi/pulumi-azure-native/sdk/go/azure/blueprint"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := blueprint.NewArtifact(ctx, "artifact", &blueprint.ArtifactArgs{
			ArtifactName:  pulumi.String("costCenterPolicy"),
			BlueprintName: pulumi.String("simpleBlueprint"),
			Kind:          pulumi.String("policyAssignment"),
			ResourceScope: pulumi.String("subscriptions/00000000-0000-0000-0000-000000000000"),
		})
		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.blueprint.Artifact;
import com.pulumi.azurenative.blueprint.ArtifactArgs;
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 artifact = new Artifact("artifact", ArtifactArgs.builder()        
            .artifactName("costCenterPolicy")
            .blueprintName("simpleBlueprint")
            .kind("policyAssignment")
            .resourceScope("subscriptions/00000000-0000-0000-0000-000000000000")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

artifact = azure_native.blueprint.Artifact("artifact",
    artifact_name="costCenterPolicy",
    blueprint_name="simpleBlueprint",
    kind="policyAssignment",
    resource_scope="subscriptions/00000000-0000-0000-0000-000000000000")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const artifact = new azure_native.blueprint.Artifact("artifact", {
    artifactName: "costCenterPolicy",
    blueprintName: "simpleBlueprint",
    kind: "policyAssignment",
    resourceScope: "subscriptions/00000000-0000-0000-0000-000000000000",
});
resources:
  artifact:
    type: azure-native:blueprint:Artifact
    properties:
      artifactName: costCenterPolicy
      blueprintName: simpleBlueprint
      kind: policyAssignment
      resourceScope: subscriptions/00000000-0000-0000-0000-000000000000

Sub-RoleAssignmentArtifact

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var artifact = new AzureNative.Blueprint.Artifact("artifact", new()
    {
        ArtifactName = "ownerAssignment",
        BlueprintName = "simpleBlueprint",
        Kind = "roleAssignment",
        ResourceScope = "subscriptions/00000000-0000-0000-0000-000000000000",
    });

});
package main

import (
	blueprint "github.com/pulumi/pulumi-azure-native/sdk/go/azure/blueprint"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := blueprint.NewArtifact(ctx, "artifact", &blueprint.ArtifactArgs{
			ArtifactName:  pulumi.String("ownerAssignment"),
			BlueprintName: pulumi.String("simpleBlueprint"),
			Kind:          pulumi.String("roleAssignment"),
			ResourceScope: pulumi.String("subscriptions/00000000-0000-0000-0000-000000000000"),
		})
		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.blueprint.Artifact;
import com.pulumi.azurenative.blueprint.ArtifactArgs;
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 artifact = new Artifact("artifact", ArtifactArgs.builder()        
            .artifactName("ownerAssignment")
            .blueprintName("simpleBlueprint")
            .kind("roleAssignment")
            .resourceScope("subscriptions/00000000-0000-0000-0000-000000000000")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

artifact = azure_native.blueprint.Artifact("artifact",
    artifact_name="ownerAssignment",
    blueprint_name="simpleBlueprint",
    kind="roleAssignment",
    resource_scope="subscriptions/00000000-0000-0000-0000-000000000000")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const artifact = new azure_native.blueprint.Artifact("artifact", {
    artifactName: "ownerAssignment",
    blueprintName: "simpleBlueprint",
    kind: "roleAssignment",
    resourceScope: "subscriptions/00000000-0000-0000-0000-000000000000",
});
resources:
  artifact:
    type: azure-native:blueprint:Artifact
    properties:
      artifactName: ownerAssignment
      blueprintName: simpleBlueprint
      kind: roleAssignment
      resourceScope: subscriptions/00000000-0000-0000-0000-000000000000

Create Artifact Resource

new Artifact(name: string, args: ArtifactArgs, opts?: CustomResourceOptions);
@overload
def Artifact(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             artifact_name: Optional[str] = None,
             blueprint_name: Optional[str] = None,
             kind: Optional[Union[str, ArtifactKind]] = None,
             resource_scope: Optional[str] = None)
@overload
def Artifact(resource_name: str,
             args: ArtifactArgs,
             opts: Optional[ResourceOptions] = None)
func NewArtifact(ctx *Context, name string, args ArtifactArgs, opts ...ResourceOption) (*Artifact, error)
public Artifact(string name, ArtifactArgs args, CustomResourceOptions? opts = null)
public Artifact(String name, ArtifactArgs args)
public Artifact(String name, ArtifactArgs args, CustomResourceOptions options)
type: azure-native:blueprint:Artifact
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ArtifactArgs
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 ArtifactArgs
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 ArtifactArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ArtifactArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ArtifactArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Artifact Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Artifact resource accepts the following input properties:

BlueprintName string

Name of the blueprint definition.

Kind string | Pulumi.AzureNative.Blueprint.ArtifactKind

Specifies the kind of blueprint artifact.

ResourceScope string

The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').

ArtifactName string

Name of the blueprint artifact.

BlueprintName string

Name of the blueprint definition.

Kind string | ArtifactKind

Specifies the kind of blueprint artifact.

ResourceScope string

The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').

ArtifactName string

Name of the blueprint artifact.

blueprintName String

Name of the blueprint definition.

kind String | ArtifactKind

Specifies the kind of blueprint artifact.

resourceScope String

The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').

artifactName String

Name of the blueprint artifact.

blueprintName string

Name of the blueprint definition.

kind string | ArtifactKind

Specifies the kind of blueprint artifact.

resourceScope string

The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').

artifactName string

Name of the blueprint artifact.

blueprint_name str

Name of the blueprint definition.

kind str | ArtifactKind

Specifies the kind of blueprint artifact.

resource_scope str

The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').

artifact_name str

Name of the blueprint artifact.

blueprintName String

Name of the blueprint definition.

kind String | "template" | "roleAssignment" | "policyAssignment"

Specifies the kind of blueprint artifact.

resourceScope String

The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').

artifactName String

Name of the blueprint artifact.

Outputs

All input properties are implicitly available as output properties. Additionally, the Artifact resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of this resource.

Type string

Type of this resource.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Name of this resource.

Type string

Type of this resource.

id String

The provider-assigned unique ID for this managed resource.

name String

Name of this resource.

type String

Type of this resource.

id string

The provider-assigned unique ID for this managed resource.

name string

Name of this resource.

type string

Type of this resource.

id str

The provider-assigned unique ID for this managed resource.

name str

Name of this resource.

type str

Type of this resource.

id String

The provider-assigned unique ID for this managed resource.

name String

Name of this resource.

type String

Type of this resource.

Supporting Types

ArtifactKind

Template
template
RoleAssignment
roleAssignment
PolicyAssignment
policyAssignment
ArtifactKindTemplate
template
ArtifactKindRoleAssignment
roleAssignment
ArtifactKindPolicyAssignment
policyAssignment
Template
template
RoleAssignment
roleAssignment
PolicyAssignment
policyAssignment
Template
template
RoleAssignment
roleAssignment
PolicyAssignment
policyAssignment
TEMPLATE
template
ROLE_ASSIGNMENT
roleAssignment
POLICY_ASSIGNMENT
policyAssignment
"template"
template
"roleAssignment"
roleAssignment
"policyAssignment"
policyAssignment

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:blueprint:Artifact ownerAssignment /subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Blueprint/blueprints/simpleBlueprint/artifacts/ownerAssignment 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0