ConsoleArgs

data class ConsoleArgs(val consoleName: Output<String>? = null, val properties: Output<ConsoleCreatePropertiesArgs>? = null) : ConvertibleToJava<ConsoleArgs>

Cloud shell console Uses Azure REST API version 2018-10-01. In version 1.x of the Azure Native provider, it used API version 2018-10-01.

Example Usage

PutConsole

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var console = new AzureNative.Portal.Console("console", new()
{
ConsoleName = "default",
Properties = new AzureNative.Portal.Inputs.ConsoleCreatePropertiesArgs
{
OsType = AzureNative.Portal.OsType.Linux,
},
});
});
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.NewConsole(ctx, "console", &portal.ConsoleArgs{
ConsoleName: pulumi.String("default"),
Properties: &portal.ConsoleCreatePropertiesArgs{
OsType: pulumi.String(portal.OsTypeLinux),
},
})
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.Console;
import com.pulumi.azurenative.portal.ConsoleArgs;
import com.pulumi.azurenative.portal.inputs.ConsoleCreatePropertiesArgs;
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 console = new Console("console", ConsoleArgs.builder()
.consoleName("default")
.properties(ConsoleCreatePropertiesArgs.builder()
.osType("Linux")
.build())
.build());
}
}

Import

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

$ pulumi import azure-native:portal:Console myresource1 /providers/Microsoft.Portal/consoles/{consoleName}

Constructors

Link copied to clipboard
constructor(consoleName: Output<String>? = null, properties: Output<ConsoleCreatePropertiesArgs>? = null)

Properties

Link copied to clipboard
val consoleName: Output<String>? = null

The name of the console

Link copied to clipboard

Cloud shell properties for creating a console.

Functions

Link copied to clipboard
open override fun toJava(): ConsoleArgs