1. Packages
  2. Azure Classic
  3. API Docs
  4. marketplace
  5. RoleAssignment

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.marketplace.RoleAssignment

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Create RoleAssignment Resource

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

    Constructor syntax

    new RoleAssignment(name: string, args: RoleAssignmentArgs, opts?: CustomResourceOptions);
    @overload
    def RoleAssignment(resource_name: str,
                       args: RoleAssignmentArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def RoleAssignment(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       principal_id: Optional[str] = None,
                       condition: Optional[str] = None,
                       condition_version: Optional[str] = None,
                       delegated_managed_identity_resource_id: Optional[str] = None,
                       description: Optional[str] = None,
                       name: Optional[str] = None,
                       role_definition_id: Optional[str] = None,
                       role_definition_name: Optional[str] = None,
                       skip_service_principal_aad_check: Optional[bool] = None)
    func NewRoleAssignment(ctx *Context, name string, args RoleAssignmentArgs, opts ...ResourceOption) (*RoleAssignment, error)
    public RoleAssignment(string name, RoleAssignmentArgs args, CustomResourceOptions? opts = null)
    public RoleAssignment(String name, RoleAssignmentArgs args)
    public RoleAssignment(String name, RoleAssignmentArgs args, CustomResourceOptions options)
    
    type: azure:marketplace:RoleAssignment
    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 RoleAssignmentArgs
    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 RoleAssignmentArgs
    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 RoleAssignmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RoleAssignmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RoleAssignmentArgs
    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 roleAssignmentResource = new Azure.Marketplace.RoleAssignment("roleAssignmentResource", new()
    {
        PrincipalId = "string",
        Condition = "string",
        ConditionVersion = "string",
        DelegatedManagedIdentityResourceId = "string",
        Description = "string",
        Name = "string",
        RoleDefinitionId = "string",
        RoleDefinitionName = "string",
        SkipServicePrincipalAadCheck = false,
    });
    
    example, err := marketplace.NewRoleAssignment(ctx, "roleAssignmentResource", &marketplace.RoleAssignmentArgs{
    	PrincipalId:                        pulumi.String("string"),
    	Condition:                          pulumi.String("string"),
    	ConditionVersion:                   pulumi.String("string"),
    	DelegatedManagedIdentityResourceId: pulumi.String("string"),
    	Description:                        pulumi.String("string"),
    	Name:                               pulumi.String("string"),
    	RoleDefinitionId:                   pulumi.String("string"),
    	RoleDefinitionName:                 pulumi.String("string"),
    	SkipServicePrincipalAadCheck:       pulumi.Bool(false),
    })
    
    var roleAssignmentResource = new RoleAssignment("roleAssignmentResource", RoleAssignmentArgs.builder()
        .principalId("string")
        .condition("string")
        .conditionVersion("string")
        .delegatedManagedIdentityResourceId("string")
        .description("string")
        .name("string")
        .roleDefinitionId("string")
        .roleDefinitionName("string")
        .skipServicePrincipalAadCheck(false)
        .build());
    
    role_assignment_resource = azure.marketplace.RoleAssignment("roleAssignmentResource",
        principal_id="string",
        condition="string",
        condition_version="string",
        delegated_managed_identity_resource_id="string",
        description="string",
        name="string",
        role_definition_id="string",
        role_definition_name="string",
        skip_service_principal_aad_check=False)
    
    const roleAssignmentResource = new azure.marketplace.RoleAssignment("roleAssignmentResource", {
        principalId: "string",
        condition: "string",
        conditionVersion: "string",
        delegatedManagedIdentityResourceId: "string",
        description: "string",
        name: "string",
        roleDefinitionId: "string",
        roleDefinitionName: "string",
        skipServicePrincipalAadCheck: false,
    });
    
    type: azure:marketplace:RoleAssignment
    properties:
        condition: string
        conditionVersion: string
        delegatedManagedIdentityResourceId: string
        description: string
        name: string
        principalId: string
        roleDefinitionId: string
        roleDefinitionName: string
        skipServicePrincipalAadCheck: false
    

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

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    PrincipalType string
    Id string
    The provider-assigned unique ID for this managed resource.
    PrincipalType string
    id String
    The provider-assigned unique ID for this managed resource.
    principalType String
    id string
    The provider-assigned unique ID for this managed resource.
    principalType string
    id str
    The provider-assigned unique ID for this managed resource.
    principal_type str
    id String
    The provider-assigned unique ID for this managed resource.
    principalType String

    Look up Existing RoleAssignment Resource

    Get an existing RoleAssignment resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: RoleAssignmentState, opts?: CustomResourceOptions): RoleAssignment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            condition: Optional[str] = None,
            condition_version: Optional[str] = None,
            delegated_managed_identity_resource_id: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            principal_id: Optional[str] = None,
            principal_type: Optional[str] = None,
            role_definition_id: Optional[str] = None,
            role_definition_name: Optional[str] = None,
            skip_service_principal_aad_check: Optional[bool] = None) -> RoleAssignment
    func GetRoleAssignment(ctx *Context, name string, id IDInput, state *RoleAssignmentState, opts ...ResourceOption) (*RoleAssignment, error)
    public static RoleAssignment Get(string name, Input<string> id, RoleAssignmentState? state, CustomResourceOptions? opts = null)
    public static RoleAssignment get(String name, Output<String> id, RoleAssignmentState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi