BillingRoleAssignmentByEnrollmentAccount

class BillingRoleAssignmentByEnrollmentAccount : KotlinCustomResource

The role assignment Uses Azure REST API version 2019-10-01-preview. In version 1.x of the Azure Native provider, it used API version 2019-10-01-preview. Other available API versions: 2024-04-01.

Example Usage

PutEnrollmentAccountSubscriptionCreatorRoleAssignment

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var billingRoleAssignmentByEnrollmentAccount = new AzureNative.Billing.BillingRoleAssignmentByEnrollmentAccount("billingRoleAssignmentByEnrollmentAccount", new()
{
BillingAccountName = "{billingAccountName}",
BillingRoleAssignmentName = "{billingRoleAssignmentName}",
EnrollmentAccountName = "{enrollmentAccountName}",
PrincipalId = "99a1a759-30dd-42c2-828c-db398826bb67",
PrincipalTenantId = "7ca289b9-c32d-4f01-8566-7ff93261d76f",
RoleDefinitionId = "/providers/Microsoft.Billing/billingAccounts/7898901/enrollmentAccounts/225314/billingRoleDefinitions/a0bcee42-bf30-4d1b-926a-48d21664ef71",
});
});
package main
import (
billing "github.com/pulumi/pulumi-azure-native-sdk/billing/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := billing.NewBillingRoleAssignmentByEnrollmentAccount(ctx, "billingRoleAssignmentByEnrollmentAccount", &billing.BillingRoleAssignmentByEnrollmentAccountArgs{
BillingAccountName: pulumi.String("{billingAccountName}"),
BillingRoleAssignmentName: pulumi.String("{billingRoleAssignmentName}"),
EnrollmentAccountName: pulumi.String("{enrollmentAccountName}"),
PrincipalId: pulumi.String("99a1a759-30dd-42c2-828c-db398826bb67"),
PrincipalTenantId: pulumi.String("7ca289b9-c32d-4f01-8566-7ff93261d76f"),
RoleDefinitionId: pulumi.String("/providers/Microsoft.Billing/billingAccounts/7898901/enrollmentAccounts/225314/billingRoleDefinitions/a0bcee42-bf30-4d1b-926a-48d21664ef71"),
})
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.BillingRoleAssignmentByEnrollmentAccount;
import com.pulumi.azurenative.billing.BillingRoleAssignmentByEnrollmentAccountArgs;
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 billingRoleAssignmentByEnrollmentAccount = new BillingRoleAssignmentByEnrollmentAccount("billingRoleAssignmentByEnrollmentAccount", BillingRoleAssignmentByEnrollmentAccountArgs.builder()
.billingAccountName("{billingAccountName}")
.billingRoleAssignmentName("{billingRoleAssignmentName}")
.enrollmentAccountName("{enrollmentAccountName}")
.principalId("99a1a759-30dd-42c2-828c-db398826bb67")
.principalTenantId("7ca289b9-c32d-4f01-8566-7ff93261d76f")
.roleDefinitionId("/providers/Microsoft.Billing/billingAccounts/7898901/enrollmentAccounts/225314/billingRoleDefinitions/a0bcee42-bf30-4d1b-926a-48d21664ef71")
.build());
}
}

Import

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

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

Properties

Link copied to clipboard

The principal Id of the user who created the role assignment.

Link copied to clipboard

The tenant Id of the user who created the role assignment.

Link copied to clipboard

The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement.

Link copied to clipboard
val createdOn: Output<String>

The date the role assignment was created.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Resource name.

Link copied to clipboard
val principalId: Output<String>?

The principal id of the user to whom the role was assigned.

Link copied to clipboard

The principal tenant id of the user to whom the role was assigned.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val roleDefinitionId: Output<String>?

The ID of the role definition.

Link copied to clipboard
val scope: Output<String>

The scope at which the role was assigned.

Link copied to clipboard
val type: Output<String>

Resource type.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

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.

Link copied to clipboard
val userEmailAddress: Output<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.