1. Packages
  2. Azure Native
  3. API Docs
  4. billing
  5. BillingRoleAssignmentByDepartment
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi

azure-native.billing.BillingRoleAssignmentByDepartment

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi

    The properties of the billing role assignment.

    Uses Azure REST API version 2024-04-01. In version 2.x of the Azure Native provider, it used API version 2019-10-01-preview.

    Other available API versions: 2019-10-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native billing [ApiVersion]. See the version guide for details.

    Example Usage

    BillingRoleAssignmentCreateOrUpdateByDepartment

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var billingRoleAssignmentByDepartment = new AzureNative.Billing.BillingRoleAssignmentByDepartment("billingRoleAssignmentByDepartment", new()
        {
            BillingAccountName = "7898901",
            BillingRoleAssignmentName = "9dfd08c2-62a3-4d47-85bd-1cdba1408402",
            DepartmentName = "12345",
            Properties = new AzureNative.Billing.Inputs.BillingRoleAssignmentPropertiesArgs
            {
                PrincipalId = "00000000-0000-0000-0000-000000000000",
                PrincipalTenantId = "076915e7-de10-4323-bb34-a58c904068bb",
                RoleDefinitionId = "/providers/Microsoft.Billing/billingAccounts/7898901/departments/12345/billingRoleDefinitions/9f1983cb-2574-400c-87e9-34cf8e2280db",
                UserEmailAddress = "john@contoso.com",
            },
        });
    
    });
    
    package main
    
    import (
    	billing "github.com/pulumi/pulumi-azure-native-sdk/billing/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := billing.NewBillingRoleAssignmentByDepartment(ctx, "billingRoleAssignmentByDepartment", &billing.BillingRoleAssignmentByDepartmentArgs{
    			BillingAccountName:        pulumi.String("7898901"),
    			BillingRoleAssignmentName: pulumi.String("9dfd08c2-62a3-4d47-85bd-1cdba1408402"),
    			DepartmentName:            pulumi.String("12345"),
    			Properties: &billing.BillingRoleAssignmentPropertiesArgs{
    				PrincipalId:       pulumi.String("00000000-0000-0000-0000-000000000000"),
    				PrincipalTenantId: pulumi.String("076915e7-de10-4323-bb34-a58c904068bb"),
    				RoleDefinitionId:  pulumi.String("/providers/Microsoft.Billing/billingAccounts/7898901/departments/12345/billingRoleDefinitions/9f1983cb-2574-400c-87e9-34cf8e2280db"),
    				UserEmailAddress:  pulumi.String("john@contoso.com"),
    			},
    		})
    		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.billing.BillingRoleAssignmentByDepartment;
    import com.pulumi.azurenative.billing.BillingRoleAssignmentByDepartmentArgs;
    import com.pulumi.azurenative.billing.inputs.BillingRoleAssignmentPropertiesArgs;
    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 billingRoleAssignmentByDepartment = new BillingRoleAssignmentByDepartment("billingRoleAssignmentByDepartment", BillingRoleAssignmentByDepartmentArgs.builder()
                .billingAccountName("7898901")
                .billingRoleAssignmentName("9dfd08c2-62a3-4d47-85bd-1cdba1408402")
                .departmentName("12345")
                .properties(BillingRoleAssignmentPropertiesArgs.builder()
                    .principalId("00000000-0000-0000-0000-000000000000")
                    .principalTenantId("076915e7-de10-4323-bb34-a58c904068bb")
                    .roleDefinitionId("/providers/Microsoft.Billing/billingAccounts/7898901/departments/12345/billingRoleDefinitions/9f1983cb-2574-400c-87e9-34cf8e2280db")
                    .userEmailAddress("john@contoso.com")
                    .build())
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const billingRoleAssignmentByDepartment = new azure_native.billing.BillingRoleAssignmentByDepartment("billingRoleAssignmentByDepartment", {
        billingAccountName: "7898901",
        billingRoleAssignmentName: "9dfd08c2-62a3-4d47-85bd-1cdba1408402",
        departmentName: "12345",
        properties: {
            principalId: "00000000-0000-0000-0000-000000000000",
            principalTenantId: "076915e7-de10-4323-bb34-a58c904068bb",
            roleDefinitionId: "/providers/Microsoft.Billing/billingAccounts/7898901/departments/12345/billingRoleDefinitions/9f1983cb-2574-400c-87e9-34cf8e2280db",
            userEmailAddress: "john@contoso.com",
        },
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    billing_role_assignment_by_department = azure_native.billing.BillingRoleAssignmentByDepartment("billingRoleAssignmentByDepartment",
        billing_account_name="7898901",
        billing_role_assignment_name="9dfd08c2-62a3-4d47-85bd-1cdba1408402",
        department_name="12345",
        properties={
            "principal_id": "00000000-0000-0000-0000-000000000000",
            "principal_tenant_id": "076915e7-de10-4323-bb34-a58c904068bb",
            "role_definition_id": "/providers/Microsoft.Billing/billingAccounts/7898901/departments/12345/billingRoleDefinitions/9f1983cb-2574-400c-87e9-34cf8e2280db",
            "user_email_address": "john@contoso.com",
        })
    
    resources:
      billingRoleAssignmentByDepartment:
        type: azure-native:billing:BillingRoleAssignmentByDepartment
        properties:
          billingAccountName: '7898901'
          billingRoleAssignmentName: 9dfd08c2-62a3-4d47-85bd-1cdba1408402
          departmentName: '12345'
          properties:
            principalId: 00000000-0000-0000-0000-000000000000
            principalTenantId: 076915e7-de10-4323-bb34-a58c904068bb
            roleDefinitionId: /providers/Microsoft.Billing/billingAccounts/7898901/departments/12345/billingRoleDefinitions/9f1983cb-2574-400c-87e9-34cf8e2280db
            userEmailAddress: john@contoso.com
    

    Create BillingRoleAssignmentByDepartment Resource

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

    Constructor syntax

    new BillingRoleAssignmentByDepartment(name: string, args: BillingRoleAssignmentByDepartmentArgs, opts?: CustomResourceOptions);
    @overload
    def BillingRoleAssignmentByDepartment(resource_name: str,
                                          args: BillingRoleAssignmentByDepartmentArgs,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def BillingRoleAssignmentByDepartment(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          billing_account_name: Optional[str] = None,
                                          department_name: Optional[str] = None,
                                          billing_role_assignment_name: Optional[str] = None,
                                          properties: Optional[BillingRoleAssignmentPropertiesArgs] = None,
                                          tags: Optional[Mapping[str, str]] = None)
    func NewBillingRoleAssignmentByDepartment(ctx *Context, name string, args BillingRoleAssignmentByDepartmentArgs, opts ...ResourceOption) (*BillingRoleAssignmentByDepartment, error)
    public BillingRoleAssignmentByDepartment(string name, BillingRoleAssignmentByDepartmentArgs args, CustomResourceOptions? opts = null)
    public BillingRoleAssignmentByDepartment(String name, BillingRoleAssignmentByDepartmentArgs args)
    public BillingRoleAssignmentByDepartment(String name, BillingRoleAssignmentByDepartmentArgs args, CustomResourceOptions options)
    
    type: azure-native:billing:BillingRoleAssignmentByDepartment
    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 BillingRoleAssignmentByDepartmentArgs
    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 BillingRoleAssignmentByDepartmentArgs
    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 BillingRoleAssignmentByDepartmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BillingRoleAssignmentByDepartmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BillingRoleAssignmentByDepartmentArgs
    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 billingRoleAssignmentByDepartmentResource = new AzureNative.Billing.BillingRoleAssignmentByDepartment("billingRoleAssignmentByDepartmentResource", new()
    {
        BillingAccountName = "string",
        DepartmentName = "string",
        BillingRoleAssignmentName = "string",
        Properties = new AzureNative.Billing.Inputs.BillingRoleAssignmentPropertiesArgs
        {
            RoleDefinitionId = "string",
            PrincipalId = "string",
            PrincipalPuid = "string",
            PrincipalTenantId = "string",
            Scope = "string",
            UserAuthenticationType = "string",
            UserEmailAddress = "string",
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := billing.NewBillingRoleAssignmentByDepartment(ctx, "billingRoleAssignmentByDepartmentResource", &billing.BillingRoleAssignmentByDepartmentArgs{
    	BillingAccountName:        pulumi.String("string"),
    	DepartmentName:            pulumi.String("string"),
    	BillingRoleAssignmentName: pulumi.String("string"),
    	Properties: &billing.BillingRoleAssignmentPropertiesArgs{
    		RoleDefinitionId:       pulumi.String("string"),
    		PrincipalId:            pulumi.String("string"),
    		PrincipalPuid:          pulumi.String("string"),
    		PrincipalTenantId:      pulumi.String("string"),
    		Scope:                  pulumi.String("string"),
    		UserAuthenticationType: pulumi.String("string"),
    		UserEmailAddress:       pulumi.String("string"),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var billingRoleAssignmentByDepartmentResource = new BillingRoleAssignmentByDepartment("billingRoleAssignmentByDepartmentResource", BillingRoleAssignmentByDepartmentArgs.builder()
        .billingAccountName("string")
        .departmentName("string")
        .billingRoleAssignmentName("string")
        .properties(BillingRoleAssignmentPropertiesArgs.builder()
            .roleDefinitionId("string")
            .principalId("string")
            .principalPuid("string")
            .principalTenantId("string")
            .scope("string")
            .userAuthenticationType("string")
            .userEmailAddress("string")
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    billing_role_assignment_by_department_resource = azure_native.billing.BillingRoleAssignmentByDepartment("billingRoleAssignmentByDepartmentResource",
        billing_account_name="string",
        department_name="string",
        billing_role_assignment_name="string",
        properties={
            "role_definition_id": "string",
            "principal_id": "string",
            "principal_puid": "string",
            "principal_tenant_id": "string",
            "scope": "string",
            "user_authentication_type": "string",
            "user_email_address": "string",
        },
        tags={
            "string": "string",
        })
    
    const billingRoleAssignmentByDepartmentResource = new azure_native.billing.BillingRoleAssignmentByDepartment("billingRoleAssignmentByDepartmentResource", {
        billingAccountName: "string",
        departmentName: "string",
        billingRoleAssignmentName: "string",
        properties: {
            roleDefinitionId: "string",
            principalId: "string",
            principalPuid: "string",
            principalTenantId: "string",
            scope: "string",
            userAuthenticationType: "string",
            userEmailAddress: "string",
        },
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:billing:BillingRoleAssignmentByDepartment
    properties:
        billingAccountName: string
        billingRoleAssignmentName: string
        departmentName: string
        properties:
            principalId: string
            principalPuid: string
            principalTenantId: string
            roleDefinitionId: string
            scope: string
            userAuthenticationType: string
            userEmailAddress: string
        tags:
            string: string
    

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

    BillingAccountName string
    The ID that uniquely identifies a billing account.
    DepartmentName string
    The name of the department.
    BillingRoleAssignmentName string
    The ID that uniquely identifies a role assignment.
    Properties Pulumi.AzureNative.Billing.Inputs.BillingRoleAssignmentProperties
    The properties of the billing role assignment.
    Tags Dictionary<string, string>
    Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
    BillingAccountName string
    The ID that uniquely identifies a billing account.
    DepartmentName string
    The name of the department.
    BillingRoleAssignmentName string
    The ID that uniquely identifies a role assignment.
    Properties BillingRoleAssignmentPropertiesArgs
    The properties of the billing role assignment.
    Tags map[string]string
    Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
    billingAccountName String
    The ID that uniquely identifies a billing account.
    departmentName String
    The name of the department.
    billingRoleAssignmentName String
    The ID that uniquely identifies a role assignment.
    properties BillingRoleAssignmentProperties
    The properties of the billing role assignment.
    tags Map<String,String>
    Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
    billingAccountName string
    The ID that uniquely identifies a billing account.
    departmentName string
    The name of the department.
    billingRoleAssignmentName string
    The ID that uniquely identifies a role assignment.
    properties BillingRoleAssignmentProperties
    The properties of the billing role assignment.
    tags {[key: string]: string}
    Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
    billing_account_name str
    The ID that uniquely identifies a billing account.
    department_name str
    The name of the department.
    billing_role_assignment_name str
    The ID that uniquely identifies a role assignment.
    properties BillingRoleAssignmentPropertiesArgs
    The properties of the billing role assignment.
    tags Mapping[str, str]
    Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
    billingAccountName String
    The ID that uniquely identifies a billing account.
    departmentName String
    The name of the department.
    billingRoleAssignmentName String
    The ID that uniquely identifies a role assignment.
    properties Property Map
    The properties of the billing role assignment.
    tags Map<String>
    Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /

    Outputs

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

    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.Billing.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    AzureApiVersion string
    The Azure API version of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion string
    The Azure API version of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azure_api_version str
    The Azure API version of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    azureApiVersion String
    The Azure API version of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    BillingRoleAssignmentProperties, BillingRoleAssignmentPropertiesArgs

    RoleDefinitionId string
    The ID of the role definition.
    PrincipalId string
    The object id of the user to whom the role was assigned.
    PrincipalPuid string
    The principal PUID of the user to whom the role was assigned.
    PrincipalTenantId string
    The principal tenant id of the user to whom the role was assigned.
    Scope string
    The scope at which the role was assigned.
    UserAuthenticationType string
    The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    UserEmailAddress string
    The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    RoleDefinitionId string
    The ID of the role definition.
    PrincipalId string
    The object id of the user to whom the role was assigned.
    PrincipalPuid string
    The principal PUID of the user to whom the role was assigned.
    PrincipalTenantId string
    The principal tenant id of the user to whom the role was assigned.
    Scope string
    The scope at which the role was assigned.
    UserAuthenticationType string
    The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    UserEmailAddress string
    The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    roleDefinitionId String
    The ID of the role definition.
    principalId String
    The object id of the user to whom the role was assigned.
    principalPuid String
    The principal PUID of the user to whom the role was assigned.
    principalTenantId String
    The principal tenant id of the user to whom the role was assigned.
    scope String
    The scope at which the role was assigned.
    userAuthenticationType String
    The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    userEmailAddress String
    The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    roleDefinitionId string
    The ID of the role definition.
    principalId string
    The object id of the user to whom the role was assigned.
    principalPuid string
    The principal PUID of the user to whom the role was assigned.
    principalTenantId string
    The principal tenant id of the user to whom the role was assigned.
    scope string
    The scope at which the role was assigned.
    userAuthenticationType string
    The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    userEmailAddress string
    The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    role_definition_id str
    The ID of the role definition.
    principal_id str
    The object id of the user to whom the role was assigned.
    principal_puid str
    The principal PUID of the user to whom the role was assigned.
    principal_tenant_id str
    The principal tenant id of the user to whom the role was assigned.
    scope str
    The scope at which the role was assigned.
    user_authentication_type str
    The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    user_email_address str
    The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    roleDefinitionId String
    The ID of the role definition.
    principalId String
    The object id of the user to whom the role was assigned.
    principalPuid String
    The principal PUID of the user to whom the role was assigned.
    principalTenantId String
    The principal tenant id of the user to whom the role was assigned.
    scope String
    The scope at which the role was assigned.
    userAuthenticationType String
    The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    userEmailAddress String
    The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.

    BillingRoleAssignmentPropertiesResponse, BillingRoleAssignmentPropertiesResponseArgs

    BillingAccountDisplayName string
    The name of the billing account.
    BillingAccountId string
    The fully qualified ID that uniquely identifies a billing account.
    BillingProfileDisplayName string
    The name of the billing profile.
    BillingProfileId string
    The fully qualified ID that uniquely identifies a billing profile.
    BillingRequestId string
    The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request.
    CreatedByPrincipalId string
    The object ID of the user who created the role assignment.
    CreatedByPrincipalPuid string
    The principal PUID of the user who created the role assignment.
    CreatedByPrincipalTenantId string
    The tenant Id of the user who created the role assignment.
    CreatedByUserEmailAddress string
    The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
    CreatedOn string
    The date the role assignment was created.
    CustomerDisplayName string
    The name of the customer.
    CustomerId string
    The fully qualified ID that uniquely identifies a customer.
    InvoiceSectionDisplayName string
    The name of the invoice section.
    InvoiceSectionId string
    The fully qualified ID that uniquely identifies an invoice section.
    ModifiedByPrincipalId string
    The principal PUID of the user who modified the role assignment.
    ModifiedByPrincipalPuid string
    The principal PUID of the user who modified the role assignment.
    ModifiedByPrincipalTenantId string
    The tenant Id of the user who modified the role assignment.
    ModifiedByUserEmailAddress string
    The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
    ModifiedOn string
    The date the role assignment was modified.
    PrincipalDisplayName string
    The display name of the principal to whom the role was assigned.
    PrincipalTenantName string
    The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account.
    PrincipalType string
    The type of a role Assignment.
    ProvisioningState string
    The provisioning state of the resource during a long-running operation.
    RoleDefinitionId string
    The ID of the role definition.
    PrincipalId string
    The object id of the user to whom the role was assigned.
    PrincipalPuid string
    The principal PUID of the user to whom the role was assigned.
    PrincipalTenantId string
    The principal tenant id of the user to whom the role was assigned.
    Scope string
    The scope at which the role was assigned.
    UserAuthenticationType string
    The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    UserEmailAddress string
    The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    BillingAccountDisplayName string
    The name of the billing account.
    BillingAccountId string
    The fully qualified ID that uniquely identifies a billing account.
    BillingProfileDisplayName string
    The name of the billing profile.
    BillingProfileId string
    The fully qualified ID that uniquely identifies a billing profile.
    BillingRequestId string
    The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request.
    CreatedByPrincipalId string
    The object ID of the user who created the role assignment.
    CreatedByPrincipalPuid string
    The principal PUID of the user who created the role assignment.
    CreatedByPrincipalTenantId string
    The tenant Id of the user who created the role assignment.
    CreatedByUserEmailAddress string
    The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
    CreatedOn string
    The date the role assignment was created.
    CustomerDisplayName string
    The name of the customer.
    CustomerId string
    The fully qualified ID that uniquely identifies a customer.
    InvoiceSectionDisplayName string
    The name of the invoice section.
    InvoiceSectionId string
    The fully qualified ID that uniquely identifies an invoice section.
    ModifiedByPrincipalId string
    The principal PUID of the user who modified the role assignment.
    ModifiedByPrincipalPuid string
    The principal PUID of the user who modified the role assignment.
    ModifiedByPrincipalTenantId string
    The tenant Id of the user who modified the role assignment.
    ModifiedByUserEmailAddress string
    The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
    ModifiedOn string
    The date the role assignment was modified.
    PrincipalDisplayName string
    The display name of the principal to whom the role was assigned.
    PrincipalTenantName string
    The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account.
    PrincipalType string
    The type of a role Assignment.
    ProvisioningState string
    The provisioning state of the resource during a long-running operation.
    RoleDefinitionId string
    The ID of the role definition.
    PrincipalId string
    The object id of the user to whom the role was assigned.
    PrincipalPuid string
    The principal PUID of the user to whom the role was assigned.
    PrincipalTenantId string
    The principal tenant id of the user to whom the role was assigned.
    Scope string
    The scope at which the role was assigned.
    UserAuthenticationType string
    The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    UserEmailAddress string
    The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    billingAccountDisplayName String
    The name of the billing account.
    billingAccountId String
    The fully qualified ID that uniquely identifies a billing account.
    billingProfileDisplayName String
    The name of the billing profile.
    billingProfileId String
    The fully qualified ID that uniquely identifies a billing profile.
    billingRequestId String
    The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request.
    createdByPrincipalId String
    The object ID of the user who created the role assignment.
    createdByPrincipalPuid String
    The principal PUID of the user who created the role assignment.
    createdByPrincipalTenantId String
    The tenant Id of the user who created the role assignment.
    createdByUserEmailAddress String
    The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
    createdOn String
    The date the role assignment was created.
    customerDisplayName String
    The name of the customer.
    customerId String
    The fully qualified ID that uniquely identifies a customer.
    invoiceSectionDisplayName String
    The name of the invoice section.
    invoiceSectionId String
    The fully qualified ID that uniquely identifies an invoice section.
    modifiedByPrincipalId String
    The principal PUID of the user who modified the role assignment.
    modifiedByPrincipalPuid String
    The principal PUID of the user who modified the role assignment.
    modifiedByPrincipalTenantId String
    The tenant Id of the user who modified the role assignment.
    modifiedByUserEmailAddress String
    The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
    modifiedOn String
    The date the role assignment was modified.
    principalDisplayName String
    The display name of the principal to whom the role was assigned.
    principalTenantName String
    The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account.
    principalType String
    The type of a role Assignment.
    provisioningState String
    The provisioning state of the resource during a long-running operation.
    roleDefinitionId String
    The ID of the role definition.
    principalId String
    The object id of the user to whom the role was assigned.
    principalPuid String
    The principal PUID of the user to whom the role was assigned.
    principalTenantId String
    The principal tenant id of the user to whom the role was assigned.
    scope String
    The scope at which the role was assigned.
    userAuthenticationType String
    The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    userEmailAddress String
    The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    billingAccountDisplayName string
    The name of the billing account.
    billingAccountId string
    The fully qualified ID that uniquely identifies a billing account.
    billingProfileDisplayName string
    The name of the billing profile.
    billingProfileId string
    The fully qualified ID that uniquely identifies a billing profile.
    billingRequestId string
    The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request.
    createdByPrincipalId string
    The object ID of the user who created the role assignment.
    createdByPrincipalPuid string
    The principal PUID of the user who created the role assignment.
    createdByPrincipalTenantId string
    The tenant Id of the user who created the role assignment.
    createdByUserEmailAddress string
    The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
    createdOn string
    The date the role assignment was created.
    customerDisplayName string
    The name of the customer.
    customerId string
    The fully qualified ID that uniquely identifies a customer.
    invoiceSectionDisplayName string
    The name of the invoice section.
    invoiceSectionId string
    The fully qualified ID that uniquely identifies an invoice section.
    modifiedByPrincipalId string
    The principal PUID of the user who modified the role assignment.
    modifiedByPrincipalPuid string
    The principal PUID of the user who modified the role assignment.
    modifiedByPrincipalTenantId string
    The tenant Id of the user who modified the role assignment.
    modifiedByUserEmailAddress string
    The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
    modifiedOn string
    The date the role assignment was modified.
    principalDisplayName string
    The display name of the principal to whom the role was assigned.
    principalTenantName string
    The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account.
    principalType string
    The type of a role Assignment.
    provisioningState string
    The provisioning state of the resource during a long-running operation.
    roleDefinitionId string
    The ID of the role definition.
    principalId string
    The object id of the user to whom the role was assigned.
    principalPuid string
    The principal PUID of the user to whom the role was assigned.
    principalTenantId string
    The principal tenant id of the user to whom the role was assigned.
    scope string
    The scope at which the role was assigned.
    userAuthenticationType string
    The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    userEmailAddress string
    The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    billing_account_display_name str
    The name of the billing account.
    billing_account_id str
    The fully qualified ID that uniquely identifies a billing account.
    billing_profile_display_name str
    The name of the billing profile.
    billing_profile_id str
    The fully qualified ID that uniquely identifies a billing profile.
    billing_request_id str
    The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request.
    created_by_principal_id str
    The object ID of the user who created the role assignment.
    created_by_principal_puid str
    The principal PUID of the user who created the role assignment.
    created_by_principal_tenant_id str
    The tenant Id of the user who created the role assignment.
    created_by_user_email_address str
    The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
    created_on str
    The date the role assignment was created.
    customer_display_name str
    The name of the customer.
    customer_id str
    The fully qualified ID that uniquely identifies a customer.
    invoice_section_display_name str
    The name of the invoice section.
    invoice_section_id str
    The fully qualified ID that uniquely identifies an invoice section.
    modified_by_principal_id str
    The principal PUID of the user who modified the role assignment.
    modified_by_principal_puid str
    The principal PUID of the user who modified the role assignment.
    modified_by_principal_tenant_id str
    The tenant Id of the user who modified the role assignment.
    modified_by_user_email_address str
    The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
    modified_on str
    The date the role assignment was modified.
    principal_display_name str
    The display name of the principal to whom the role was assigned.
    principal_tenant_name str
    The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account.
    principal_type str
    The type of a role Assignment.
    provisioning_state str
    The provisioning state of the resource during a long-running operation.
    role_definition_id str
    The ID of the role definition.
    principal_id str
    The object id of the user to whom the role was assigned.
    principal_puid str
    The principal PUID of the user to whom the role was assigned.
    principal_tenant_id str
    The principal tenant id of the user to whom the role was assigned.
    scope str
    The scope at which the role was assigned.
    user_authentication_type str
    The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    user_email_address str
    The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    billingAccountDisplayName String
    The name of the billing account.
    billingAccountId String
    The fully qualified ID that uniquely identifies a billing account.
    billingProfileDisplayName String
    The name of the billing profile.
    billingProfileId String
    The fully qualified ID that uniquely identifies a billing profile.
    billingRequestId String
    The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request.
    createdByPrincipalId String
    The object ID of the user who created the role assignment.
    createdByPrincipalPuid String
    The principal PUID of the user who created the role assignment.
    createdByPrincipalTenantId String
    The tenant Id of the user who created the role assignment.
    createdByUserEmailAddress String
    The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
    createdOn String
    The date the role assignment was created.
    customerDisplayName String
    The name of the customer.
    customerId String
    The fully qualified ID that uniquely identifies a customer.
    invoiceSectionDisplayName String
    The name of the invoice section.
    invoiceSectionId String
    The fully qualified ID that uniquely identifies an invoice section.
    modifiedByPrincipalId String
    The principal PUID of the user who modified the role assignment.
    modifiedByPrincipalPuid String
    The principal PUID of the user who modified the role assignment.
    modifiedByPrincipalTenantId String
    The tenant Id of the user who modified the role assignment.
    modifiedByUserEmailAddress String
    The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.
    modifiedOn String
    The date the role assignment was modified.
    principalDisplayName String
    The display name of the principal to whom the role was assigned.
    principalTenantName String
    The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account.
    principalType String
    The type of a role Assignment.
    provisioningState String
    The provisioning state of the resource during a long-running operation.
    roleDefinitionId String
    The ID of the role definition.
    principalId String
    The object id of the user to whom the role was assigned.
    principalPuid String
    The principal PUID of the user to whom the role was assigned.
    principalTenantId String
    The principal tenant id of the user to whom the role was assigned.
    scope String
    The scope at which the role was assigned.
    userAuthenticationType String
    The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
    userEmailAddress String
    The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

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

    $ pulumi import azure-native:billing:BillingRoleAssignmentByDepartment 9dfd08c2-62a3-4d47-85bd-1cdba1408402 /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/departments/{departmentName}/billingRoleAssignments/{billingRoleAssignmentName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
    Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi