ServicesAccount

class ServicesAccount : KotlinCustomResource

Manages a Microsoft Graph Services Account.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuread.Application;
import com.pulumi.azuread.ApplicationArgs;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.graph.ServicesAccount;
import com.pulumi.azure.graph.ServicesAccountArgs;
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 exampleApplication = new Application("exampleApplication", ApplicationArgs.builder()
.displayName("example-app")
.build());
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleServicesAccount = new ServicesAccount("exampleServicesAccount", ServicesAccountArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.applicationId(exampleApplication.applicationId())
.tags(Map.of("environment", "Production"))
.build());
}
}

Import

An existing Account can be imported into Terraform using the resource id, e.g.

$ pulumi import azure:graph/servicesAccount:ServicesAccount example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.GraphServices/accounts/account1

Properties

Link copied to clipboard
val applicationId: Output<String>

Customer owned application ID. Changing this forces a new Account to be created.

Link copied to clipboard
val billingPlanId: Output<String>

Billing Plan Id.

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

Specifies the name of this Account. Changing this forces a new Account to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Specifies the name of the Resource Group within which this Account should exist. Changing this forces a new Account to be created.

Link copied to clipboard
val tags: Output<Map<String, String>>?

A mapping of tags which should be assigned to the Account.

Link copied to clipboard
val urn: Output<String>