azure-native.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",
});
});
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
})
}
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());
}
}
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")
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",
});
resources:
roleAssignmentArtifact:
type: azure-native:blueprint:RoleAssignmentArtifact
properties:
artifactName: storageTemplate
blueprintName: simpleBlueprint
resourceScope: providers/Microsoft.Management/managementGroups/ContosoOnlineGroup
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",
});
});
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
})
}
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());
}
}
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")
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",
});
resources:
roleAssignmentArtifact:
type: azure-native:blueprint:RoleAssignmentArtifact
properties:
artifactName: costCenterPolicy
blueprintName: simpleBlueprint
resourceScope: providers/Microsoft.Management/managementGroups/ContosoOnlineGroup
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",
});
});
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
})
}
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());
}
}
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")
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",
});
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
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",
});
});
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
})
}
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());
}
}
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")
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",
});
resources:
roleAssignmentArtifact:
type: azure-native:blueprint:RoleAssignmentArtifact
properties:
artifactName: storageTemplate
blueprintName: simpleBlueprint
resourceScope: subscriptions/00000000-0000-0000-0000-000000000000
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",
});
});
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
})
}
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());
}
}
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")
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",
});
resources:
roleAssignmentArtifact:
type: azure-native:blueprint:RoleAssignmentArtifact
properties:
artifactName: costCenterPolicy
blueprintName: simpleBlueprint
resourceScope: subscriptions/00000000-0000-0000-0000-000000000000
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",
});
});
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
})
}
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());
}
}
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")
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",
});
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
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 string
- The unique name of the resource.
- args RoleAssignmentArtifactArgs
- 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 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 string
- The unique name of the resource.
- args RoleAssignmentArtifactArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RoleAssignmentArtifactArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := blueprint.NewRoleAssignmentArtifact(ctx, "roleAssignmentArtifactResource", &blueprint.RoleAssignmentArtifactArgs{
BlueprintName: pulumi.String("string"),
Kind: pulumi.String("string"),
PrincipalIds: pulumi.Any("any"),
ResourceScope: pulumi.String("string"),
RoleDefinitionId: pulumi.String("string"),
ArtifactName: pulumi.String("string"),
DependsOn: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
ResourceGroup: pulumi.String("string"),
})
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());
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")
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",
});
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
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
The RoleAssignmentArtifact resource accepts the following input properties:
- Blueprint
Name string - Name of the blueprint definition.
- Principal
Ids object - Array of user or group identities in Azure Active Directory. The roleDefinition will apply to each identity.
- Resource
Scope string - The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
- Role
Definition stringId - Azure resource ID of the RoleDefinition.
- Artifact
Name string - Name of the blueprint artifact.
- Depends
On List<string> - Artifacts which need to be deployed before the specified artifact.
- Description string
- Multi-line explain this resource.
- Display
Name string - One-liner string explain this resource.
- Resource
Group string - RoleAssignment will be scope to this resourceGroup. If empty, it scopes to the subscription.
- Blueprint
Name string - Name of the blueprint definition.
- Principal
Ids interface{} - Array of user or group identities in Azure Active Directory. The roleDefinition will apply to each identity.
- Resource
Scope string - The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
- Role
Definition stringId - Azure resource ID of the RoleDefinition.
- Artifact
Name string - Name of the blueprint artifact.
- Depends
On []string - Artifacts which need to be deployed before the specified artifact.
- Description string
- Multi-line explain this resource.
- Display
Name string - One-liner string explain this resource.
- Resource
Group string - RoleAssignment will be scope to this resourceGroup. If empty, it scopes to the subscription.
- blueprint
Name String - Name of the blueprint definition.
- principal
Ids Object - Array of user or group identities in Azure Active Directory. The roleDefinition will apply to each identity.
- resource
Scope String - The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
- role
Definition StringId - Azure resource ID of the RoleDefinition.
- artifact
Name String - Name of the blueprint artifact.
- depends
On List<String> - Artifacts which need to be deployed before the specified artifact.
- description String
- Multi-line explain this resource.
- display
Name String - One-liner string explain this resource.
- resource
Group String - RoleAssignment will be scope to this resourceGroup. If empty, it scopes to the subscription.
- blueprint
Name string - Name of the blueprint definition.
- principal
Ids any - Array of user or group identities in Azure Active Directory. The roleDefinition will apply to each identity.
- resource
Scope string - The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
- role
Definition stringId - Azure resource ID of the RoleDefinition.
- artifact
Name string - Name of the blueprint artifact.
- depends
On string[] - Artifacts which need to be deployed before the specified artifact.
- description string
- Multi-line explain this resource.
- display
Name string - One-liner string explain this resource.
- resource
Group string - RoleAssignment will be scope to this resourceGroup. If empty, it scopes to the subscription.
- blueprint_
name str - Name of the blueprint definition.
- principal_
ids Any - Array of user or group identities in Azure Active Directory. The roleDefinition will apply to each identity.
- resource_
scope str - The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
- role_
definition_ strid - Azure resource ID of the RoleDefinition.
- artifact_
name 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.
- blueprint
Name String - Name of the blueprint definition.
- principal
Ids Any - Array of user or group identities in Azure Active Directory. The roleDefinition will apply to each identity.
- resource
Scope String - The scope of the resource. Valid scopes are: management group (format: '/providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: '/subscriptions/{subscriptionId}').
- role
Definition StringId - Azure resource ID of the RoleDefinition.
- artifact
Name String - Name of the blueprint artifact.
- depends
On List<String> - Artifacts which need to be deployed before the specified artifact.
- description String
- Multi-line explain this resource.
- display
Name String - One-liner string explain this resource.
- resource
Group 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:
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}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0