azure-native.portal.UserSettings
Explore with Pulumi AI
Response to get user settings Azure REST API version: 2018-10-01. Prior API version in Azure Native 1.x: 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",
    });
});
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
	})
}
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());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const userSettings = new azure_native.portal.UserSettings("userSettings", {
    properties: {
        preferredLocation: "eastus",
        preferredOsType: azure_native.portal.OsType.Linux,
        preferredShellType: azure_native.portal.ShellType.Bash,
        storageProfile: {
            diskSizeInGB: 5,
            fileShareName: "string",
            storageAccountResourceId: "string",
        },
        terminalSettings: {
            fontSize: azure_native.portal.FontSize.Medium,
            fontStyle: azure_native.portal.FontStyle.Monospace,
        },
    },
    userSettingsName: "cloudconsole",
});
import pulumi
import pulumi_azure_native as azure_native
user_settings = azure_native.portal.UserSettings("userSettings",
    properties={
        "preferred_location": "eastus",
        "preferred_os_type": azure_native.portal.OsType.LINUX,
        "preferred_shell_type": azure_native.portal.ShellType.BASH,
        "storage_profile": {
            "disk_size_in_gb": 5,
            "file_share_name": "string",
            "storage_account_resource_id": "string",
        },
        "terminal_settings": {
            "font_size": azure_native.portal.FontSize.MEDIUM,
            "font_style": azure_native.portal.FontStyle.MONOSPACE,
        },
    },
    user_settings_name="cloudconsole")
resources:
  userSettings:
    type: azure-native:portal:UserSettings
    properties:
      properties:
        preferredLocation: eastus
        preferredOsType: Linux
        preferredShellType: bash
        storageProfile:
          diskSizeInGB: 5
          fileShareName: string
          storageAccountResourceId: string
        terminalSettings:
          fontSize: Medium
          fontStyle: Monospace
      userSettingsName: cloudconsole
Create UserSettings Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UserSettings(name: string, args: UserSettingsArgs, opts?: CustomResourceOptions);@overload
def UserSettings(resource_name: str,
                 args: UserSettingsArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def UserSettings(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 properties: Optional[UserPropertiesArgs] = None,
                 user_settings_name: Optional[str] = None)func NewUserSettings(ctx *Context, name string, args UserSettingsArgs, opts ...ResourceOption) (*UserSettings, error)public UserSettings(string name, UserSettingsArgs args, CustomResourceOptions? opts = null)
public UserSettings(String name, UserSettingsArgs args)
public UserSettings(String name, UserSettingsArgs args, CustomResourceOptions options)
type: azure-native:portal:UserSettings
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args UserSettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args UserSettingsArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UserSettingsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserSettingsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserSettingsArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var userSettingsResource = new AzureNative.Portal.UserSettings("userSettingsResource", new()
{
    Properties = new AzureNative.Portal.Inputs.UserPropertiesArgs
    {
        PreferredLocation = "string",
        PreferredOsType = "string",
        PreferredShellType = "string",
        StorageProfile = new AzureNative.Portal.Inputs.StorageProfileArgs
        {
            DiskSizeInGB = 0,
            FileShareName = "string",
            StorageAccountResourceId = "string",
        },
        TerminalSettings = new AzureNative.Portal.Inputs.TerminalSettingsArgs
        {
            FontSize = "string",
            FontStyle = "string",
        },
    },
    UserSettingsName = "string",
});
example, err := portal.NewUserSettings(ctx, "userSettingsResource", &portal.UserSettingsArgs{
	Properties: &portal.UserPropertiesArgs{
		PreferredLocation:  pulumi.String("string"),
		PreferredOsType:    pulumi.String("string"),
		PreferredShellType: pulumi.String("string"),
		StorageProfile: &portal.StorageProfileArgs{
			DiskSizeInGB:             pulumi.Int(0),
			FileShareName:            pulumi.String("string"),
			StorageAccountResourceId: pulumi.String("string"),
		},
		TerminalSettings: &portal.TerminalSettingsArgs{
			FontSize:  pulumi.String("string"),
			FontStyle: pulumi.String("string"),
		},
	},
	UserSettingsName: pulumi.String("string"),
})
var userSettingsResource = new UserSettings("userSettingsResource", UserSettingsArgs.builder()
    .properties(UserPropertiesArgs.builder()
        .preferredLocation("string")
        .preferredOsType("string")
        .preferredShellType("string")
        .storageProfile(StorageProfileArgs.builder()
            .diskSizeInGB(0)
            .fileShareName("string")
            .storageAccountResourceId("string")
            .build())
        .terminalSettings(TerminalSettingsArgs.builder()
            .fontSize("string")
            .fontStyle("string")
            .build())
        .build())
    .userSettingsName("string")
    .build());
user_settings_resource = azure_native.portal.UserSettings("userSettingsResource",
    properties={
        "preferred_location": "string",
        "preferred_os_type": "string",
        "preferred_shell_type": "string",
        "storage_profile": {
            "disk_size_in_gb": 0,
            "file_share_name": "string",
            "storage_account_resource_id": "string",
        },
        "terminal_settings": {
            "font_size": "string",
            "font_style": "string",
        },
    },
    user_settings_name="string")
const userSettingsResource = new azure_native.portal.UserSettings("userSettingsResource", {
    properties: {
        preferredLocation: "string",
        preferredOsType: "string",
        preferredShellType: "string",
        storageProfile: {
            diskSizeInGB: 0,
            fileShareName: "string",
            storageAccountResourceId: "string",
        },
        terminalSettings: {
            fontSize: "string",
            fontStyle: "string",
        },
    },
    userSettingsName: "string",
});
type: azure-native:portal:UserSettings
properties:
    properties:
        preferredLocation: string
        preferredOsType: string
        preferredShellType: string
        storageProfile:
            diskSizeInGB: 0
            fileShareName: string
            storageAccountResourceId: string
        terminalSettings:
            fontSize: string
            fontStyle: string
    userSettingsName: string
UserSettings Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The UserSettings resource accepts the following input properties:
- Properties
Pulumi.Azure Native. Portal. Inputs. User Properties 
- The cloud shell user settings properties.
- UserSettings stringName 
- The name of the user settings
- Properties
UserProperties Args 
- The cloud shell user settings properties.
- UserSettings stringName 
- The name of the user settings
- properties
UserProperties 
- The cloud shell user settings properties.
- userSettings StringName 
- The name of the user settings
- properties
UserProperties 
- The cloud shell user settings properties.
- userSettings stringName 
- The name of the user settings
- properties
UserProperties Args 
- The cloud shell user settings properties.
- user_settings_ strname 
- The name of the user settings
- properties Property Map
- The cloud shell user settings properties.
- userSettings StringName 
- The name of the user settings
Outputs
All input properties are implicitly available as output properties. Additionally, the UserSettings resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
FontSize, FontSizeArgs    
- NotSpecified 
- NotSpecified
- Small
- Small
- Medium
- Medium
- Large
- Large
- FontSize Not Specified 
- NotSpecified
- FontSize Small 
- Small
- FontSize Medium 
- Medium
- FontSize Large 
- Large
- NotSpecified 
- NotSpecified
- Small
- Small
- Medium
- Medium
- Large
- Large
- NotSpecified 
- NotSpecified
- Small
- Small
- Medium
- Medium
- Large
- Large
- NOT_SPECIFIED
- NotSpecified
- SMALL
- Small
- MEDIUM
- Medium
- LARGE
- Large
- "NotSpecified" 
- NotSpecified
- "Small"
- Small
- "Medium"
- Medium
- "Large"
- Large
FontStyle, FontStyleArgs    
- NotSpecified 
- NotSpecified
- Monospace
- Monospace
- Courier
- Courier
- FontStyle Not Specified 
- NotSpecified
- FontStyle Monospace 
- Monospace
- FontStyle Courier 
- Courier
- NotSpecified 
- NotSpecified
- Monospace
- Monospace
- Courier
- Courier
- NotSpecified 
- NotSpecified
- Monospace
- Monospace
- Courier
- Courier
- NOT_SPECIFIED
- NotSpecified
- MONOSPACE
- Monospace
- COURIER
- Courier
- "NotSpecified" 
- NotSpecified
- "Monospace"
- Monospace
- "Courier"
- Courier
OsType, OsTypeArgs    
- Windows
- Windows
- Linux
- Linux
- OsType Windows 
- Windows
- OsType Linux 
- Linux
- Windows
- Windows
- Linux
- Linux
- Windows
- Windows
- Linux
- Linux
- WINDOWS
- Windows
- LINUX
- Linux
- "Windows"
- Windows
- "Linux"
- Linux
ShellType, ShellTypeArgs    
- Bash
- bash
- Pwsh
- pwsh
- Powershell
- powershell
- ShellType Bash 
- bash
- ShellType Pwsh 
- pwsh
- ShellType Powershell 
- powershell
- Bash
- bash
- Pwsh
- pwsh
- Powershell
- powershell
- Bash
- bash
- Pwsh
- pwsh
- Powershell
- powershell
- BASH
- bash
- PWSH
- pwsh
- POWERSHELL
- powershell
- "bash"
- bash
- "pwsh"
- pwsh
- "powershell"
- powershell
StorageProfile, StorageProfileArgs    
- DiskSize intIn GB 
- Size of file share
- string
- Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -
- StorageAccount stringResource Id 
- Full resource ID of storage account.
- DiskSize intIn GB 
- Size of file share
- string
- Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -
- StorageAccount stringResource Id 
- Full resource ID of storage account.
- diskSize IntegerIn GB 
- Size of file share
- String
- Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -
- storageAccount StringResource Id 
- Full resource ID of storage account.
- diskSize numberIn GB 
- Size of file share
- string
- Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -
- storageAccount stringResource Id 
- Full resource ID of storage account.
- disk_size_ intin_ gb 
- Size of file share
- str
- Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -
- storage_account_ strresource_ id 
- Full resource ID of storage account.
- diskSize NumberIn GB 
- Size of file share
- String
- Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -
- storageAccount StringResource Id 
- Full resource ID of storage account.
StorageProfileResponse, StorageProfileResponseArgs      
- DiskSize intIn GB 
- Size of file share
- string
- Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -
- StorageAccount stringResource Id 
- Full resource ID of storage account.
- DiskSize intIn GB 
- Size of file share
- string
- Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -
- StorageAccount stringResource Id 
- Full resource ID of storage account.
- diskSize IntegerIn GB 
- Size of file share
- String
- Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -
- storageAccount StringResource Id 
- Full resource ID of storage account.
- diskSize numberIn GB 
- Size of file share
- string
- Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -
- storageAccount stringResource Id 
- Full resource ID of storage account.
- disk_size_ intin_ gb 
- Size of file share
- str
- Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -
- storage_account_ strresource_ id 
- Full resource ID of storage account.
- diskSize NumberIn GB 
- Size of file share
- String
- Name of the mounted file share. 63 characters or less, lowercase alphabet, numbers, and -
- storageAccount StringResource Id 
- Full resource ID of storage account.
TerminalSettings, TerminalSettingsArgs    
- FontSize string | Pulumi.Azure Native. Portal. Font Size 
- Size of terminal font.
- FontStyle string | Pulumi.Azure Native. Portal. Font Style 
- Style of terminal font.
- font_size str | FontSize 
- Size of terminal font.
- font_style str | FontStyle 
- Style of terminal font.
- fontSize String | "NotSpecified" | "Small" | "Medium" | "Large" 
- Size of terminal font.
- fontStyle String | "NotSpecified" | "Monospace" | "Courier" 
- Style of terminal font.
TerminalSettingsResponse, TerminalSettingsResponseArgs      
- font_size str
- Size of terminal font.
- font_style str
- Style of terminal font.
UserProperties, UserPropertiesArgs    
- PreferredLocation string
- The preferred location of the cloud shell.
- PreferredOs string | Pulumi.Type Azure Native. Portal. Os Type 
- The operating system type of the cloud shell. Deprecated, use preferredShellType.
- PreferredShell string | Pulumi.Type Azure Native. Portal. Shell Type 
- The shell type of the cloud shell.
- StorageProfile Pulumi.Azure Native. Portal. Inputs. Storage Profile 
- The storage profile of the user settings.
- TerminalSettings Pulumi.Azure Native. Portal. Inputs. Terminal Settings 
- Settings for terminal appearance.
- PreferredLocation string
- The preferred location of the cloud shell.
- PreferredOs string | OsType Type 
- The operating system type of the cloud shell. Deprecated, use preferredShellType.
- PreferredShell string | ShellType Type 
- The shell type of the cloud shell.
- StorageProfile StorageProfile 
- The storage profile of the user settings.
- TerminalSettings TerminalSettings 
- Settings for terminal appearance.
- preferredLocation String
- The preferred location of the cloud shell.
- preferredOs String | OsType Type 
- The operating system type of the cloud shell. Deprecated, use preferredShellType.
- preferredShell String | ShellType Type 
- The shell type of the cloud shell.
- storageProfile StorageProfile 
- The storage profile of the user settings.
- terminalSettings TerminalSettings 
- Settings for terminal appearance.
- preferredLocation string
- The preferred location of the cloud shell.
- preferredOs string | OsType Type 
- The operating system type of the cloud shell. Deprecated, use preferredShellType.
- preferredShell string | ShellType Type 
- The shell type of the cloud shell.
- storageProfile StorageProfile 
- The storage profile of the user settings.
- terminalSettings TerminalSettings 
- Settings for terminal appearance.
- preferred_location str
- The preferred location of the cloud shell.
- preferred_os_ str | Ostype Type 
- The operating system type of the cloud shell. Deprecated, use preferredShellType.
- preferred_shell_ str | Shelltype Type 
- The shell type of the cloud shell.
- storage_profile StorageProfile 
- The storage profile of the user settings.
- terminal_settings TerminalSettings 
- Settings for terminal appearance.
- preferredLocation String
- The preferred location of the cloud shell.
- preferredOs String | "Windows" | "Linux"Type 
- The operating system type of the cloud shell. Deprecated, use preferredShellType.
- preferredShell String | "bash" | "pwsh" | "powershell"Type 
- The shell type of the cloud shell.
- storageProfile Property Map
- The storage profile of the user settings.
- terminalSettings Property Map
- Settings for terminal appearance.
UserPropertiesResponse, UserPropertiesResponseArgs      
- PreferredLocation string
- The preferred location of the cloud shell.
- PreferredOs stringType 
- The operating system type of the cloud shell. Deprecated, use preferredShellType.
- PreferredShell stringType 
- The shell type of the cloud shell.
- StorageProfile Pulumi.Azure Native. Portal. Inputs. Storage Profile Response 
- The storage profile of the user settings.
- TerminalSettings Pulumi.Azure Native. Portal. Inputs. Terminal Settings Response 
- Settings for terminal appearance.
- PreferredLocation string
- The preferred location of the cloud shell.
- PreferredOs stringType 
- The operating system type of the cloud shell. Deprecated, use preferredShellType.
- PreferredShell stringType 
- The shell type of the cloud shell.
- StorageProfile StorageProfile Response 
- The storage profile of the user settings.
- TerminalSettings TerminalSettings Response 
- Settings for terminal appearance.
- preferredLocation String
- The preferred location of the cloud shell.
- preferredOs StringType 
- The operating system type of the cloud shell. Deprecated, use preferredShellType.
- preferredShell StringType 
- The shell type of the cloud shell.
- storageProfile StorageProfile Response 
- The storage profile of the user settings.
- terminalSettings TerminalSettings Response 
- Settings for terminal appearance.
- preferredLocation string
- The preferred location of the cloud shell.
- preferredOs stringType 
- The operating system type of the cloud shell. Deprecated, use preferredShellType.
- preferredShell stringType 
- The shell type of the cloud shell.
- storageProfile StorageProfile Response 
- The storage profile of the user settings.
- terminalSettings TerminalSettings Response 
- Settings for terminal appearance.
- preferred_location str
- The preferred location of the cloud shell.
- preferred_os_ strtype 
- The operating system type of the cloud shell. Deprecated, use preferredShellType.
- preferred_shell_ strtype 
- The shell type of the cloud shell.
- storage_profile StorageProfile Response 
- The storage profile of the user settings.
- terminal_settings TerminalSettings Response 
- Settings for terminal appearance.
- preferredLocation String
- The preferred location of the cloud shell.
- preferredOs StringType 
- The operating system type of the cloud shell. Deprecated, use preferredShellType.
- preferredShell StringType 
- The shell type of the cloud shell.
- storageProfile Property Map
- The storage profile of the user settings.
- terminalSettings Property Map
- Settings for terminal appearance.
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} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0