Console Args
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 2.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,
},
});
});
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.NewConsole(ctx, "console", &portal.ConsoleArgs{
ConsoleName: pulumi.String("default"),
Properties: &portal.ConsoleCreatePropertiesArgs{
OsType: pulumi.String(portal.OsTypeLinux),
},
})
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.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());
}
}
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:Console myresource1 /providers/Microsoft.Portal/consoles/{consoleName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(consoleName: Output<String>? = null, properties: Output<ConsoleCreatePropertiesArgs>? = null)