Billing Role Assignment By Enrollment Account Args
The role assignment API Version: 2019-10-01-preview.
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"
"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/7898901/enrollmentAccounts/225314/billingRoleAssignments/9dfd08c2-62a3-4d47-85bd-1cdba1408402
Constructors
Properties
The ID that uniquely identifies a billing account.
The ID that uniquely identifies a role assignment.
The ID that uniquely identifies an enrollment account.
The principal id of the user to whom the role was assigned.
The principal tenant id of the user to whom the role was assigned.
The ID of the role definition.
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.
The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.