Setting

class Setting : KotlinCustomResource

State of the myscope setting. Uses Azure REST API version 2019-11-01. In version 2.x of the Azure Native provider, it used API version 2019-11-01.

Example Usage

CreateOrUpdateSetting

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var setting = new AzureNative.CostManagement.Setting("setting", new()
{
Cache = new[]
{
new AzureNative.CostManagement.Inputs.SettingsPropertiesCacheArgs
{
Channel = "Modern",
Id = "/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47",
Name = "72f988bf-86f1-41af-91ab-2d7cd011db47",
Parent = "/providers/Microsoft.Management/managementGroups/acm",
Status = "enabled",
Subchannel = "NotApplicable",
},
},
Scope = "/subscriptions/00000000-0000-0000-0000-000000000000",
SettingName = "myscope",
StartOn = "LastUsed",
});
});
package main
import (
costmanagement "github.com/pulumi/pulumi-azure-native-sdk/costmanagement/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := costmanagement.NewSetting(ctx, "setting", &costmanagement.SettingArgs{
Cache: costmanagement.SettingsPropertiesCacheArray{
&costmanagement.SettingsPropertiesCacheArgs{
Channel: pulumi.String("Modern"),
Id: pulumi.String("/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47"),
Name: pulumi.String("72f988bf-86f1-41af-91ab-2d7cd011db47"),
Parent: pulumi.String("/providers/Microsoft.Management/managementGroups/acm"),
Status: pulumi.String("enabled"),
Subchannel: pulumi.String("NotApplicable"),
},
},
Scope: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000"),
SettingName: pulumi.String("myscope"),
StartOn: pulumi.String("LastUsed"),
})
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.costmanagement.Setting;
import com.pulumi.azurenative.costmanagement.SettingArgs;
import com.pulumi.azurenative.costmanagement.inputs.SettingsPropertiesCacheArgs;
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 setting = new Setting("setting", SettingArgs.builder()
.cache(SettingsPropertiesCacheArgs.builder()
.channel("Modern")
.id("/providers/Microsoft.Management/managementGroups/72f988bf-86f1-41af-91ab-2d7cd011db47")
.name("72f988bf-86f1-41af-91ab-2d7cd011db47")
.parent("/providers/Microsoft.Management/managementGroups/acm")
.status("enabled")
.subchannel("NotApplicable")
.build())
.scope("/subscriptions/00000000-0000-0000-0000-000000000000")
.settingName("myscope")
.startOn("LastUsed")
.build());
}
}

Import

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

$ pulumi import azure-native:costmanagement:Setting myscope /providers/Microsoft.CostManagement/settings/{settingName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard

Array of scopes with additional details used by Cost Management in the Azure portal.

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

Resource kind.

Link copied to clipboard
val name: Output<String>

Resource name.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val scope: Output<String>

Sets the default scope the current user will see when they sign into Azure Cost Management in the Azure portal.

Link copied to clipboard
val startOn: Output<String>?

Indicates what scope Cost Management in the Azure portal should default to. Allowed values: LastUsed.

Link copied to clipboard
val type: Output<String>

Resource type.

Link copied to clipboard
val urn: Output<String>