azure-native.portal.ConsoleWithLocation
Explore with Pulumi AI
Cloud shell console Azure REST API version: 2018-10-01. Prior API version in Azure Native 1.x: 2018-10-01.
Example Usage
PutConsole
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var consoleWithLocation = new AzureNative.Portal.ConsoleWithLocation("consoleWithLocation", new()
{
ConsoleName = "default",
Location = "eastus",
});
});
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.NewConsoleWithLocation(ctx, "consoleWithLocation", &portal.ConsoleWithLocationArgs{
ConsoleName: pulumi.String("default"),
Location: pulumi.String("eastus"),
})
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.ConsoleWithLocation;
import com.pulumi.azurenative.portal.ConsoleWithLocationArgs;
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 consoleWithLocation = new ConsoleWithLocation("consoleWithLocation", ConsoleWithLocationArgs.builder()
.consoleName("default")
.location("eastus")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
console_with_location = azure_native.portal.ConsoleWithLocation("consoleWithLocation",
console_name="default",
location="eastus")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const consoleWithLocation = new azure_native.portal.ConsoleWithLocation("consoleWithLocation", {
consoleName: "default",
location: "eastus",
});
resources:
consoleWithLocation:
type: azure-native:portal:ConsoleWithLocation
properties:
consoleName: default
location: eastus
Create ConsoleWithLocation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConsoleWithLocation(name: string, args: ConsoleWithLocationArgs, opts?: CustomResourceOptions);
@overload
def ConsoleWithLocation(resource_name: str,
args: ConsoleWithLocationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConsoleWithLocation(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
console_name: Optional[str] = None)
func NewConsoleWithLocation(ctx *Context, name string, args ConsoleWithLocationArgs, opts ...ResourceOption) (*ConsoleWithLocation, error)
public ConsoleWithLocation(string name, ConsoleWithLocationArgs args, CustomResourceOptions? opts = null)
public ConsoleWithLocation(String name, ConsoleWithLocationArgs args)
public ConsoleWithLocation(String name, ConsoleWithLocationArgs args, CustomResourceOptions options)
type: azure-native:portal:ConsoleWithLocation
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 ConsoleWithLocationArgs
- 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 ConsoleWithLocationArgs
- 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 ConsoleWithLocationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConsoleWithLocationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConsoleWithLocationArgs
- 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 consoleWithLocationResource = new AzureNative.Portal.ConsoleWithLocation("consoleWithLocationResource", new()
{
Location = "string",
ConsoleName = "string",
});
example, err := portal.NewConsoleWithLocation(ctx, "consoleWithLocationResource", &portal.ConsoleWithLocationArgs{
Location: pulumi.String("string"),
ConsoleName: pulumi.String("string"),
})
var consoleWithLocationResource = new ConsoleWithLocation("consoleWithLocationResource", ConsoleWithLocationArgs.builder()
.location("string")
.consoleName("string")
.build());
console_with_location_resource = azure_native.portal.ConsoleWithLocation("consoleWithLocationResource",
location="string",
console_name="string")
const consoleWithLocationResource = new azure_native.portal.ConsoleWithLocation("consoleWithLocationResource", {
location: "string",
consoleName: "string",
});
type: azure-native:portal:ConsoleWithLocation
properties:
consoleName: string
location: string
ConsoleWithLocation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ConsoleWithLocation resource accepts the following input properties:
- Location string
- The provider location
- Console
Name string - The name of the console
- Location string
- The provider location
- Console
Name string - The name of the console
- location String
- The provider location
- console
Name String - The name of the console
- location string
- The provider location
- console
Name string - The name of the console
- location str
- The provider location
- console_
name str - The name of the console
- location String
- The provider location
- console
Name String - The name of the console
Outputs
All input properties are implicitly available as output properties. Additionally, the ConsoleWithLocation resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Properties
Pulumi.
Azure Native. Portal. Outputs. Console Properties Response - Cloud shell console properties.
- Id string
- The provider-assigned unique ID for this managed resource.
- Properties
Console
Properties Response - Cloud shell console properties.
- id String
- The provider-assigned unique ID for this managed resource.
- properties
Console
Properties Response - Cloud shell console properties.
- id string
- The provider-assigned unique ID for this managed resource.
- properties
Console
Properties Response - Cloud shell console properties.
- id str
- The provider-assigned unique ID for this managed resource.
- properties
Console
Properties Response - Cloud shell console properties.
- id String
- The provider-assigned unique ID for this managed resource.
- properties Property Map
- Cloud shell console properties.
Supporting Types
ConsolePropertiesResponse, ConsolePropertiesResponseArgs
- Os
Type string - The operating system type of the cloud shell.
- Provisioning
State string - Provisioning state of the console.
- Uri string
- Uri of the console.
- Os
Type string - The operating system type of the cloud shell.
- Provisioning
State string - Provisioning state of the console.
- Uri string
- Uri of the console.
- os
Type String - The operating system type of the cloud shell.
- provisioning
State String - Provisioning state of the console.
- uri String
- Uri of the console.
- os
Type string - The operating system type of the cloud shell.
- provisioning
State string - Provisioning state of the console.
- uri string
- Uri of the console.
- os_
type str - The operating system type of the cloud shell.
- provisioning_
state str - Provisioning state of the console.
- uri str
- Uri of the console.
- os
Type String - The operating system type of the cloud shell.
- provisioning
State String - Provisioning state of the console.
- uri String
- Uri of the console.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:portal:ConsoleWithLocation myresource1 /providers/Microsoft.Portal/locations/{location}/consoles/{consoleName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0