Account
Account resource details. Uses Azure REST API version 2022-03-01-preview. In version 2.x of the Azure Native provider, it used API version 2022-02-01. Other available API versions: 2022-02-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native recommendationsservice [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
Create or update RecommendationsService Account resource
using System.Collections.Generic;
using System.Linq;
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 = AzureNative.RecommendationsService.AccountConfiguration.Capacity,
EndpointAuthentications = new[]
{
new AzureNative.RecommendationsService.Inputs.EndpointAuthenticationArgs
{
AadTenantID = "tenant",
PrincipalID = "oid",
PrincipalType = AzureNative.RecommendationsService.PrincipalType.User,
},
},
},
ResourceGroupName = "rg",
Tags =
{
{ "Environment", "Prod" },
},
});
});
Content copied to clipboard
package main
import (
recommendationsservice "github.com/pulumi/pulumi-azure-native-sdk/recommendationsservice/v3"
"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.AccountResourcePropertiesArgs{
Configuration: pulumi.String(recommendationsservice.AccountConfigurationCapacity),
EndpointAuthentications: recommendationsservice.EndpointAuthenticationArray{
&recommendationsservice.EndpointAuthenticationArgs{
AadTenantID: pulumi.String("tenant"),
PrincipalID: pulumi.String("oid"),
PrincipalType: pulumi.String(recommendationsservice.PrincipalTypeUser),
},
},
},
ResourceGroupName: pulumi.String("rg"),
Tags: pulumi.StringMap{
"Environment": pulumi.String("Prod"),
},
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
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 com.pulumi.azurenative.recommendationsservice.inputs.AccountResourcePropertiesArgs;
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(AccountResourcePropertiesArgs.builder()
.configuration("Capacity")
.endpointAuthentications(EndpointAuthenticationArgs.builder()
.aadTenantID("tenant")
.principalID("oid")
.principalType("User")
.build())
.build())
.resourceGroupName("rg")
.tags(Map.of("Environment", "Prod"))
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:recommendationsservice:Account sampleAccount /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecommendationsService/accounts/{accountName}
Content copied to clipboard
Properties
Link copied to clipboard
The Azure API version of the resource.
Link copied to clipboard
The identity used for the resource.
Link copied to clipboard
Account resource properties.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Metadata pertaining to creation and last modification of the resource.