1. Packages
  2. Azure Native v2
  3. API Docs
  4. blueprint
  5. RoleAssignmentArtifact
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.82.0 published on Friday, Jan 10, 2025 by Pulumi

azure-native-v2.blueprint.RoleAssignmentArtifact

Explore with Pulumi AI

Blueprint artifact that applies a Role assignment. Azure REST API version: 2018-11-01-preview. Prior API version in Azure Native 1.x: 2018-11-01-preview.

Example Usage

MG-ARMTemplateArtifact

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

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

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := blueprint.NewRoleAssignmentArtifact(ctx, "roleAssignmentArtifact", &blueprint.RoleAssignmentArtifactArgs{
			ArtifactName:  pulumi.String("storageTemplate"),
			BlueprintName: pulumi.String("simpleBlueprint"),
			ResourceScope: pulumi.String("providers/Microsoft.Management/managementGroups/ContosoOnlineGroup"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.blueprint.RoleAssignmentArtifact;
import com.pulumi.azurenative.blueprint.RoleAssignmentArtifactArgs;
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 roleAssignmentArtifact = new RoleAssignmentArtifact("roleAssignmentArtifact", RoleAssignmentArtifactArgs.builder()
            .artifactName("storageTemplate")
            .blueprintName("simpleBlueprint")
            .resourceScope("providers/Microsoft.Management/managementGroups/ContosoOnlineGroup")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const roleAssignmentArtifact = new azure_native.blueprint.RoleAssignmentArtifact("roleAssignmentArtifact", {
    artifactName: "storageTemplate",
    blueprintName: "simpleBlueprint",
    resourceScope: "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

role_assignment_artifact = azure_native.blueprint.RoleAssignmentArtifact("roleAssignmentArtifact",
    artifact_name="storageTemplate",
    blueprint_name="simpleBlueprint",
    resource_scope="providers/Microsoft.Management/managementGroups/ContosoOnlineGroup")
Copy
resources:
  roleAssignmentArtifact:
    type: azure-native:blueprint:RoleAssignmentArtifact
    properties:
      artifactName: storageTemplate
      blueprintName: simpleBlueprint
      resourceScope: providers/Microsoft.Management/managementGroups/ContosoOnlineGroup
Copy

MG-PolicyAssignmentArtifact

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

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

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := blueprint.NewRoleAssignmentArtifact(ctx, "roleAssignmentArtifact", &blueprint.RoleAssignmentArtifactArgs{
			ArtifactName:  pulumi.String("costCenterPolicy"),
			BlueprintName: pulumi.String("simpleBlueprint"),
			ResourceScope: pulumi.String("providers/Microsoft.Management/managementGroups/ContosoOnlineGroup"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.blueprint.RoleAssignmentArtifact;
import com.pulumi.azurenative.blueprint.RoleAssignmentArtifactArgs;
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 roleAssignmentArtifact = new RoleAssignmentArtifact("roleAssignmentArtifact", RoleAssignmentArtifactArgs.builder()
            .artifactName("costCenterPolicy")
            .blueprintName("simpleBlueprint")
            .resourceScope("providers/Microsoft.Management/managementGroups/ContosoOnlineGroup")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const roleAssignmentArtifact = new azure_native.blueprint.RoleAssignmentArtifact("roleAssignmentArtifact", {
    artifactName: "costCenterPolicy",
    blueprintName: "simpleBlueprint",
    resourceScope: "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

role_assignment_artifact = azure_native.blueprint.RoleAssignmentArtifact("roleAssignmentArtifact",
    artifact_name="costCenterPolicy",
    blueprint_name="simpleBlueprint",
    resource_scope="providers/Microsoft.Management/managementGroups/ContosoOnlineGroup")
Copy
resources:
  roleAssignmentArtifact:
    type: azure-native:blueprint:RoleAssignmentArtifact
    properties:
      artifactName: costCenterPolicy
      blueprintName: simpleBlueprint
      resourceScope: providers/Microsoft.Management/managementGroups/ContosoOnlineGroup
Copy

MG-RoleAssignmentArtifact

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

return await Deployment.RunAsync(() => 
{
    var roleAssignmentArtifact = new AzureNative.Blueprint.RoleAssignmentArtifact("roleAssignmentArtifact", new()
    {
        ArtifactName = "ownerAssignment",
        BlueprintName = "simpleBlueprint",
        DisplayName = "enforce owners of given subscription",
        Kind = "roleAssignment",
        PrincipalIds = "[parameters('owners')]",
        ResourceScope = "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup",
        RoleDefinitionId = "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := blueprint.NewRoleAssignmentArtifact(ctx, "roleAssignmentArtifact", &blueprint.RoleAssignmentArtifactArgs{
			ArtifactName:     pulumi.String("ownerAssignment"),
			BlueprintName:    pulumi.String("simpleBlueprint"),
			DisplayName:      pulumi.String("enforce owners of given subscription"),
			Kind:             pulumi.String("roleAssignment"),
			PrincipalIds:     pulumi.Any("[parameters('owners')]"),
			ResourceScope:    pulumi.String("providers/Microsoft.Management/managementGroups/ContosoOnlineGroup"),
			RoleDefinitionId: pulumi.String("/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.blueprint.RoleAssignmentArtifact;
import com.pulumi.azurenative.blueprint.RoleAssignmentArtifactArgs;
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 roleAssignmentArtifact = new RoleAssignmentArtifact("roleAssignmentArtifact", RoleAssignmentArtifactArgs.builder()
            .artifactName("ownerAssignment")
            .blueprintName("simpleBlueprint")
            .displayName("enforce owners of given subscription")
            .kind("roleAssignment")
            .principalIds("[parameters('owners')]")
            .resourceScope("providers/Microsoft.Management/managementGroups/ContosoOnlineGroup")
            .roleDefinitionId("/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const roleAssignmentArtifact = new azure_native.blueprint.RoleAssignmentArtifact("roleAssignmentArtifact", {
    artifactName: "ownerAssignment",
    blueprintName: "simpleBlueprint",
    displayName: "enforce owners of given subscription",
    kind: "roleAssignment",
    principalIds: "[parameters('owners')]",
    resourceScope: "providers/Microsoft.Management/managementGroups/ContosoOnlineGroup",
    roleDefinitionId: "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

role_assignment_artifact = azure_native.blueprint.RoleAssignmentArtifact("roleAssignmentArtifact",
    artifact_name="ownerAssignment",
    blueprint_name="simpleBlueprint",
    display_name="enforce owners of given subscription",
    kind="roleAssignment",
    principal_ids="[parameters('owners')]",
    resource_scope="providers/Microsoft.Management/managementGroups/ContosoOnlineGroup",
    role_definition_id="/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7")
Copy
resources:
  roleAssignmentArtifact:
    type: azure-native:blueprint:RoleAssignmentArtifact
    properties:
      artifactName: ownerAssignment
      blueprintName: simpleBlueprint
      displayName: enforce owners of given subscription
      kind: roleAssignment
      principalIds: '[parameters(''owners'')]'
      resourceScope: providers/Microsoft.Management/managementGroups/ContosoOnlineGroup
      roleDefinitionId: /providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7
Copy

Sub-ARMTemplateArtifact

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

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

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := blueprint.NewRoleAssignmentArtifact(ctx, "roleAssignmentArtifact", &blueprint.RoleAssignmentArtifactArgs{
			ArtifactName:  pulumi.String("storageTemplate"),
			BlueprintName: pulumi.String("simpleBlueprint"),
			ResourceScope: pulumi.String("subscriptions/00000000-0000-0000-0000-000000000000"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.blueprint.RoleAssignmentArtifact;
import com.pulumi.azurenative.blueprint.RoleAssignmentArtifactArgs;
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 roleAssignmentArtifact = new RoleAssignmentArtifact("roleAssignmentArtifact", RoleAssignmentArtifactArgs.builder()
            .artifactName("storageTemplate")
            .blueprintName("simpleBlueprint")
            .resourceScope("subscriptions/00000000-0000-0000-0000-000000000000")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const roleAssignmentArtifact = new azure_native.blueprint.RoleAssignmentArtifact("roleAssignmentArtifact", {
    artifactName: "storageTemplate",
    blueprintName: "simpleBlueprint",
    resourceScope: "subscriptions/00000000-0000-0000-0000-000000000000",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

role_assignment_artifact = azure_native.blueprint.RoleAssignmentArtifact("roleAssignmentArtifact",
    artifact_name="storageTemplate",
    blueprint_name="simpleBlueprint",
    resource_scope="subscriptions/00000000-0000-0000-0000-000000000000")
Copy
resources:
  roleAssignmentArtifact:
    type: azure-native:blueprint:RoleAssignmentArtifact
    properties:
      artifactName: storageTemplate
      blueprintName: simpleBlueprint
      resourceScope: subscriptions/00000000-0000-0000-0000-000000000000
Copy

Sub-PolicyAssignmentArtifact

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

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

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := blueprint.NewRoleAssignmentArtifact(ctx, "roleAssignmentArtifact", &blueprint.RoleAssignmentArtifactArgs{
			ArtifactName:  pulumi.String("costCenterPolicy"),
			BlueprintName: pulumi.String("simpleBlueprint"),
			ResourceScope: pulumi.String("subscriptions/00000000-0000-0000-0000-000000000000"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.blueprint.RoleAssignmentArtifact;
import com.pulumi.azurenative.blueprint.RoleAssignmentArtifactArgs;
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 roleAssignmentArtifact = new RoleAssignmentArtifact("roleAssignmentArtifact", RoleAssignmentArtifactArgs.builder()
            .artifactName("costCenterPolicy")
            .blueprintName("simpleBlueprint")
            .resourceScope("subscriptions/00000000-0000-0000-0000-000000000000")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const roleAssignmentArtifact = new azure_native.blueprint.RoleAssignmentArtifact("roleAssignmentArtifact", {
    artifactName: "costCenterPolicy",
    blueprintName: "simpleBlueprint",
    resourceScope: "subscriptions/00000000-0000-0000-0000-000000000000",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

role_assignment_artifact = azure_native.blueprint.RoleAssignmentArtifact("roleAssignmentArtifact",
    artifact_name="costCenterPolicy",
    blueprint_name="simpleBlueprint",
    resource_scope="subscriptions/00000000-0000-0000-0000-000000000000")
Copy
resources:
  roleAssignmentArtifact:
    type: azure-native:blueprint:RoleAssignmentArtifact
    properties:
      artifactName: costCenterPolicy
      blueprintName: simpleBlueprint
      resourceScope: subscriptions/00000000-0000-0000-0000-000000000000
Copy

Sub-RoleAssignmentArtifact

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

return await Deployment.RunAsync(() => 
{
    var roleAssignmentArtifact = new AzureNative.Blueprint.RoleAssignmentArtifact("roleAssignmentArtifact", new()
    {
        ArtifactName = "ownerAssignment",
        BlueprintName = "simpleBlueprint",
        DisplayName = "enforce owners of given subscription",
        Kind = "roleAssignment",
        PrincipalIds = "[parameters('owners')]",
        ResourceScope = "subscriptions/00000000-0000-0000-0000-000000000000",
        RoleDefinitionId = "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7",
    });

});
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := blueprint.NewRoleAssignmentArtifact(ctx, "roleAssignmentArtifact", &blueprint.RoleAssignmentArtifactArgs{
			ArtifactName:     pulumi.String("ownerAssignment"),
			BlueprintName:    pulumi.String("simpleBlueprint"),
			DisplayName:      pulumi.String("enforce owners of given subscription"),
			Kind:             pulumi.String("roleAssignment"),
			PrincipalIds:     pulumi.Any("[parameters('owners')]"),
			ResourceScope:    pulumi.String("subscriptions/00000000-0000-0000-0000-000000000000"),
			RoleDefinitionId: pulumi.String("/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.blueprint.RoleAssignmentArtifact;
import com.pulumi.azurenative.blueprint.RoleAssignmentArtifactArgs;
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 roleAssignmentArtifact = new RoleAssignmentArtifact("roleAssignmentArtifact", RoleAssignmentArtifactArgs.builder()
            .artifactName("ownerAssignment")
            .blueprintName("simpleBlueprint")
            .displayName("enforce owners of given subscription")
            .kind("roleAssignment")
            .principalIds("[parameters('owners')]")
            .resourceScope("subscriptions/00000000-0000-0000-0000-000000000000")
            .roleDefinitionId("/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const roleAssignmentArtifact = new azure_native.blueprint.RoleAssignmentArtifact("roleAssignmentArtifact", {
    artifactName: "ownerAssignment",
    blueprintName: "simpleBlueprint",
    displayName: "enforce owners of given subscription",
    kind: "roleAssignment",
    principalIds: "[parameters('owners')]",
    resourceScope: "subscriptions/00000000-0000-0000-0000-000000000000",
    roleDefinitionId: "/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

role_assignment_artifact = azure_native.blueprint.RoleAssignmentArtifact("roleAssignmentArtifact",
    artifact_name="ownerAssignment",
    blueprint_name="simpleBlueprint",
    display_name="enforce owners of given subscription",
    kind="roleAssignment",
    principal_ids="[parameters('owners')]",
    resource_scope="subscriptions/00000000-0000-0000-0000-000000000000",
    role_definition_id="/providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7")
Copy
resources:
  roleAssignmentArtifact:
    type: azure-native:blueprint:RoleAssignmentArtifact
    properties:
      artifactName: ownerAssignment
      blueprintName: simpleBlueprint
      displayName: enforce owners of given subscription
      kind: roleAssignment
      principalIds: '[parameters(''owners'')]'
      resourceScope: subscriptions/00000000-0000-0000-0000-000000000000
      roleDefinitionId: /providers/Microsoft.Authorization/roleDefinitions/acdd72a7-3385-48ef-bd42-f606fba81ae7
Copy

Create RoleAssignmentArtifact Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new RoleAssignmentArtifact(name: string, args: RoleAssignmentArtifactArgs, opts?: CustomResourceOptions);
@overload
def RoleAssignmentArtifact(resource_name: str,
                           args: RoleAssignmentArtifactArgs,
                           opts: Optional[ResourceOptions] = None)

@overload
def RoleAssignmentArtifact(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           blueprint_name: Optional[str] = None,
                           principal_ids: Optional[Any] = None,
                           resource_scope: Optional[str] = None,
                           role_definition_id: Optional[str] = None,
                           artifact_name: Optional[str] = None,
                           depends_on: Optional[Sequence[str]] = None,
                           description: Optional[str] = None,
                           display_name: Optional[str] = None,
                           resource_group: Optional[str] = None)
func NewRoleAssignmentArtifact(ctx *Context, name string, args RoleAssignmentArtifactArgs, opts ...ResourceOption) (*RoleAssignmentArtifact, error)
public RoleAssignmentArtifact(string name, RoleAssignmentArtifactArgs args, CustomResourceOptions? opts = null)
public RoleAssignmentArtifact(String name, RoleAssignmentArtifactArgs args)
public RoleAssignmentArtifact(String name, RoleAssignmentArtifactArgs args, CustomResourceOptions options)
type: azure-native:blueprint:RoleAssignmentArtifact
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RoleAssignmentArtifactArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. RoleAssignmentArtifactArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. RoleAssignmentArtifactArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RoleAssignmentArtifactArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RoleAssignmentArtifactArgs
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 roleAssignmentArtifactResource = new AzureNative.Blueprint.RoleAssignmentArtifact("roleAssignmentArtifactResource", new()
{
    BlueprintName = "string",
    Kind = "string",
    PrincipalIds = "any",
    ResourceScope = "string",
    RoleDefinitionId = "string",
    ArtifactName = "string",
    DependsOn = new[]
    {
        "string",
    },
    Description = "string",
    DisplayName = "string",
    ResourceGroup = "string",
});
Copy
example, err := blueprint.NewRoleAssignmentArtifact(ctx, "roleAssignmentArtifactResource", &blueprint.RoleAssignmentArtifactArgs{
	BlueprintName:    "string",
	Kind:             "string",
	PrincipalIds:     "any",
	ResourceScope:    "string",
	RoleDefinitionId: "string",
	ArtifactName:     "string",
	DependsOn: []string{
		"string",
	},
	Description:   "string",
	DisplayName:   "string",
	ResourceGroup: "string",
})
Copy
var roleAssignmentArtifactResource = new RoleAssignmentArtifact("roleAssignmentArtifactResource", RoleAssignmentArtifactArgs.builder()
    .blueprintName("string")
    .kind("string")
    .principalIds("any")
    .resourceScope("string")
    .roleDefinitionId("string")
    .artifactName("string")
    .dependsOn("string")
    .description("string")
    .displayName("string")
    .resourceGroup("string")
    .build());
Copy
role_assignment_artifact_resource = azure_native.blueprint.RoleAssignmentArtifact("roleAssignmentArtifactResource",
    blueprint_name=string,
    kind=string,
    principal_ids=any,
    resource_scope=string,
    role_definition_id=string,
    artifact_name=string,
    depends_on=[string],
    description=string,
    display_name=string,
    resource_group=string)
Copy
const roleAssignmentArtifactResource = new azure_native.blueprint.RoleAssignmentArtifact("roleAssignmentArtifactResource", {
    blueprintName: "string",
    kind: "string",
    principalIds: "any",
    resourceScope: "string",
    roleDefinitionId: "string",
    artifactName: "string",
    dependsOn: ["string"],
    description: "string",
    displayName: "string",
    resourceGroup: "string",
});
Copy
type: azure-native:blueprint:RoleAssignmentArtifact
properties:
    artifactName: string
    blueprintName: string
    dependsOn:
        - string
    description: string
    displayName: string
    kind: string
    principalIds: any
    resourceGroup: string
    resourceScope: string
    roleDefinitionId: string
Copy

RoleAssignmentArtifact 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 RoleAssignmentArtifact resource accepts the following input properties:

BlueprintName
This property is required.
Changes to this property will trigger replacement.
string
Name of the blueprint definition.
PrincipalIds This property is required. object
Array of user or group identities in Azure Active Directory. The roleDefinition will apply to each identity.
ResourceScope
This property is required.
Changes to this property will trigger replacement.
string
The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
RoleDefinitionId This property is required. string
Azure resource ID of the RoleDefinition.
ArtifactName Changes to this property will trigger replacement. string
Name of the blueprint artifact.
DependsOn List<string>
Artifacts which need to be deployed before the specified artifact.
Description string
Multi-line explain this resource.
DisplayName string
One-liner string explain this resource.
ResourceGroup string
RoleAssignment will be scope to this resourceGroup. If empty, it scopes to the subscription.
BlueprintName
This property is required.
Changes to this property will trigger replacement.
string
Name of the blueprint definition.
PrincipalIds This property is required. interface{}
Array of user or group identities in Azure Active Directory. The roleDefinition will apply to each identity.
ResourceScope
This property is required.
Changes to this property will trigger replacement.
string
The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
RoleDefinitionId This property is required. string
Azure resource ID of the RoleDefinition.
ArtifactName Changes to this property will trigger replacement. string
Name of the blueprint artifact.
DependsOn []string
Artifacts which need to be deployed before the specified artifact.
Description string
Multi-line explain this resource.
DisplayName string
One-liner string explain this resource.
ResourceGroup string
RoleAssignment will be scope to this resourceGroup. If empty, it scopes to the subscription.
blueprintName
This property is required.
Changes to this property will trigger replacement.
String
Name of the blueprint definition.
principalIds This property is required. Object
Array of user or group identities in Azure Active Directory. The roleDefinition will apply to each identity.
resourceScope
This property is required.
Changes to this property will trigger replacement.
String
The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
roleDefinitionId This property is required. String
Azure resource ID of the RoleDefinition.
artifactName Changes to this property will trigger replacement. String
Name of the blueprint artifact.
dependsOn List<String>
Artifacts which need to be deployed before the specified artifact.
description String
Multi-line explain this resource.
displayName String
One-liner string explain this resource.
resourceGroup String
RoleAssignment will be scope to this resourceGroup. If empty, it scopes to the subscription.
blueprintName
This property is required.
Changes to this property will trigger replacement.
string
Name of the blueprint definition.
principalIds This property is required. any
Array of user or group identities in Azure Active Directory. The roleDefinition will apply to each identity.
resourceScope
This property is required.
Changes to this property will trigger replacement.
string
The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
roleDefinitionId This property is required. string
Azure resource ID of the RoleDefinition.
artifactName Changes to this property will trigger replacement. string
Name of the blueprint artifact.
dependsOn string[]
Artifacts which need to be deployed before the specified artifact.
description string
Multi-line explain this resource.
displayName string
One-liner string explain this resource.
resourceGroup string
RoleAssignment will be scope to this resourceGroup. If empty, it scopes to the subscription.
blueprint_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the blueprint definition.
principal_ids This property is required. Any
Array of user or group identities in Azure Active Directory. The roleDefinition will apply to each identity.
resource_scope
This property is required.
Changes to this property will trigger replacement.
str
The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
role_definition_id This property is required. str
Azure resource ID of the RoleDefinition.
artifact_name Changes to this property will trigger replacement. str
Name of the blueprint artifact.
depends_on Sequence[str]
Artifacts which need to be deployed before the specified artifact.
description str
Multi-line explain this resource.
display_name str
One-liner string explain this resource.
resource_group str
RoleAssignment will be scope to this resourceGroup. If empty, it scopes to the subscription.
blueprintName
This property is required.
Changes to this property will trigger replacement.
String
Name of the blueprint definition.
principalIds This property is required. Any
Array of user or group identities in Azure Active Directory. The roleDefinition will apply to each identity.
resourceScope
This property is required.
Changes to this property will trigger replacement.
String
The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
roleDefinitionId This property is required. String
Azure resource ID of the RoleDefinition.
artifactName Changes to this property will trigger replacement. String
Name of the blueprint artifact.
dependsOn List<String>
Artifacts which need to be deployed before the specified artifact.
description String
Multi-line explain this resource.
displayName String
One-liner string explain this resource.
resourceGroup String
RoleAssignment will be scope to this resourceGroup. If empty, it scopes to the subscription.

Outputs

All input properties are implicitly available as output properties. Additionally, the RoleAssignmentArtifact 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.

Import

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

$ pulumi import azure-native:blueprint:RoleAssignmentArtifact ownerAssignment /{resourceScope}/providers/Microsoft.Blueprint/blueprints/{blueprintName}/artifacts/{artifactName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0