BillingRoleAssignmentByBillingAccount

class BillingRoleAssignmentByBillingAccount : KotlinCustomResource

The role assignment API Version: 2019-10-01-preview.

Example Usage

PutEnrollmentAdministratorRoleAssignment

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var billingRoleAssignmentByBillingAccount = new AzureNative.Billing.BillingRoleAssignmentByBillingAccount("billingRoleAssignmentByBillingAccount", new()
{
BillingAccountName = "{billingAccountName}",
BillingRoleAssignmentName = "{billingRoleAssignmentName}",
PrincipalId = "99a1a759-30dd-42c2-828c-db398826bb67",
PrincipalTenantId = "7ca289b9-c32d-4f01-8566-7ff93261d76f",
RoleDefinitionId = "/providers/Microsoft.Billing/billingAccounts/7898901/billingRoleDefinitions/9f1983cb-2574-400c-87e9-34cf8e2280db",
});
});
package main
import (
billing "github.com/pulumi/pulumi-azure-native-sdk/billing"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := billing.NewBillingRoleAssignmentByBillingAccount(ctx, "billingRoleAssignmentByBillingAccount", &billing.BillingRoleAssignmentByBillingAccountArgs{
BillingAccountName: pulumi.String("{billingAccountName}"),
BillingRoleAssignmentName: pulumi.String("{billingRoleAssignmentName}"),
PrincipalId: pulumi.String("99a1a759-30dd-42c2-828c-db398826bb67"),
PrincipalTenantId: pulumi.String("7ca289b9-c32d-4f01-8566-7ff93261d76f"),
RoleDefinitionId: pulumi.String("/providers/Microsoft.Billing/billingAccounts/7898901/billingRoleDefinitions/9f1983cb-2574-400c-87e9-34cf8e2280db"),
})
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.BillingRoleAssignmentByBillingAccount;
import com.pulumi.azurenative.billing.BillingRoleAssignmentByBillingAccountArgs;
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 billingRoleAssignmentByBillingAccount = new BillingRoleAssignmentByBillingAccount("billingRoleAssignmentByBillingAccount", BillingRoleAssignmentByBillingAccountArgs.builder()
.billingAccountName("{billingAccountName}")
.billingRoleAssignmentName("{billingRoleAssignmentName}")
.principalId("99a1a759-30dd-42c2-828c-db398826bb67")
.principalTenantId("7ca289b9-c32d-4f01-8566-7ff93261d76f")
.roleDefinitionId("/providers/Microsoft.Billing/billingAccounts/7898901/billingRoleDefinitions/9f1983cb-2574-400c-87e9-34cf8e2280db")
.build());
}
}

Import

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

$ pulumi import azure-native:billing:BillingRoleAssignmentByBillingAccount 9dfd08c2-62a3-4d47-85bd-1cdba1408402 /providers/Microsoft.Billing/billingAccounts/7898901/billingRoleAssignments/9dfd08c2-62a3-4d47-85bd-1cdba1408402

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.