User Settings Args
data class UserSettingsArgs(val properties: Output<UserPropertiesArgs>? = null, val userSettingsName: Output<String>? = null) : ConvertibleToJava<UserSettingsArgs>
Response to get user settings Uses Azure REST API version 2018-10-01. In version 2.x of the Azure Native provider, it used API version 2018-10-01.
Example Usage
PutUserSettings
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var userSettings = new AzureNative.Portal.UserSettings("userSettings", new()
{
Properties = new AzureNative.Portal.Inputs.UserPropertiesArgs
{
PreferredLocation = "eastus",
PreferredOsType = AzureNative.Portal.OsType.Linux,
PreferredShellType = AzureNative.Portal.ShellType.Bash,
StorageProfile = new AzureNative.Portal.Inputs.StorageProfileArgs
{
DiskSizeInGB = 5,
FileShareName = "string",
StorageAccountResourceId = "string",
},
TerminalSettings = new AzureNative.Portal.Inputs.TerminalSettingsArgs
{
FontSize = AzureNative.Portal.FontSize.Medium,
FontStyle = AzureNative.Portal.FontStyle.Monospace,
},
},
UserSettingsName = "cloudconsole",
});
});
Content copied to clipboard
package main
import (
portal "github.com/pulumi/pulumi-azure-native-sdk/portal/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := portal.NewUserSettings(ctx, "userSettings", &portal.UserSettingsArgs{
Properties: &portal.UserPropertiesArgs{
PreferredLocation: pulumi.String("eastus"),
PreferredOsType: pulumi.String(portal.OsTypeLinux),
PreferredShellType: pulumi.String(portal.ShellTypeBash),
StorageProfile: &portal.StorageProfileArgs{
DiskSizeInGB: pulumi.Int(5),
FileShareName: pulumi.String("string"),
StorageAccountResourceId: pulumi.String("string"),
},
TerminalSettings: &portal.TerminalSettingsArgs{
FontSize: pulumi.String(portal.FontSizeMedium),
FontStyle: pulumi.String(portal.FontStyleMonospace),
},
},
UserSettingsName: pulumi.String("cloudconsole"),
})
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.portal.UserSettings;
import com.pulumi.azurenative.portal.UserSettingsArgs;
import com.pulumi.azurenative.portal.inputs.UserPropertiesArgs;
import com.pulumi.azurenative.portal.inputs.StorageProfileArgs;
import com.pulumi.azurenative.portal.inputs.TerminalSettingsArgs;
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 userSettings = new UserSettings("userSettings", UserSettingsArgs.builder()
.properties(UserPropertiesArgs.builder()
.preferredLocation("eastus")
.preferredOsType("Linux")
.preferredShellType("bash")
.storageProfile(StorageProfileArgs.builder()
.diskSizeInGB(5)
.fileShareName("string")
.storageAccountResourceId("string")
.build())
.terminalSettings(TerminalSettingsArgs.builder()
.fontSize("Medium")
.fontStyle("Monospace")
.build())
.build())
.userSettingsName("cloudconsole")
.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:portal:UserSettings myresource1 /providers/Microsoft.Portal/userSettings/{userSettingsName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(properties: Output<UserPropertiesArgs>? = null, userSettingsName: Output<String>? = null)