Account

Account resource details. API Version: 2022-02-01.

Example Usage

Create or update RecommendationsService Account resource

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var account = new AzureNative.RecommendationsService.Account("account", new()
{
AccountName = "sampleAccount",
Location = "West US",
Properties = new AzureNative.RecommendationsService.Inputs.AccountResourcePropertiesArgs
{
Configuration = "Capacity",
EndpointAuthentications = new[]
{
new AzureNative.RecommendationsService.Inputs.EndpointAuthenticationArgs
{
AadTenantID = "tenant",
PrincipalID = "oid",
PrincipalType = "User",
},
},
},
ResourceGroupName = "rg",
Tags =
{
{ "Environment", "Prod" },
},
});
});
package main
import (
recommendationsservice "github.com/pulumi/pulumi-azure-native/sdk/go/azure/recommendationsservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := recommendationsservice.NewAccount(ctx, "account", &recommendationsservice.AccountArgs{
AccountName: pulumi.String("sampleAccount"),
Location: pulumi.String("West US"),
Properties: recommendationsservice.AccountResourceResponseProperties{
Configuration: pulumi.String("Capacity"),
EndpointAuthentications: recommendationsservice.EndpointAuthenticationArray{
&recommendationsservice.EndpointAuthenticationArgs{
AadTenantID: pulumi.String("tenant"),
PrincipalID: pulumi.String("oid"),
PrincipalType: pulumi.String("User"),
},
},
},
ResourceGroupName: pulumi.String("rg"),
Tags: pulumi.StringMap{
"Environment": pulumi.String("Prod"),
},
})
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.recommendationsservice.Account;
import com.pulumi.azurenative.recommendationsservice.AccountArgs;
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 account = new Account("account", AccountArgs.builder()
.accountName("sampleAccount")
.location("West US")
.properties(Map.ofEntries(
Map.entry("configuration", "Capacity"),
Map.entry("endpointAuthentications", Map.ofEntries(
Map.entry("aadTenantID", "tenant"),
Map.entry("principalID", "oid"),
Map.entry("principalType", "User")
))
))
.resourceGroupName("rg")
.tags(Map.of("Environment", "Prod"))
.build());
}
}

Import

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

$ pulumi import azure-native:recommendationsservice:Account sampleAccount /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rg/providers/Microsoft.RecommendationsService/accounts/sampleAccount

Properties

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

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Account resource properties.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

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

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>