Azure Native

Pulumi Official
Package maintained by Pulumi
v1.67.0 published on Tuesday, Jul 12, 2022 by Pulumi

Environment

Deprecated:

Please use one of the variants: Gen1Environment, Gen2Environment.

An environment is a set of time-series data available for query, and is the top level Azure Time Series Insights resource. API Version: 2020-05-15.

Example Usage

EnvironmentsCreate

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var environment = new AzureNative.TimeSeriesInsights.Environment("environment", new AzureNative.TimeSeriesInsights.EnvironmentArgs
        {
            EnvironmentName = "env1",
            Kind = "Gen1",
            Location = "West US",
            ResourceGroupName = "rg1",
            Sku = new AzureNative.TimeSeriesInsights.Inputs.SkuArgs
            {
                Capacity = 1,
                Name = "S1",
            },
        });
    }

}
package main

import (
	timeseriesinsights "github.com/pulumi/pulumi-azure-native/sdk/go/azure/timeseriesinsights"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := timeseriesinsights.NewEnvironment(ctx, "environment", &timeseriesinsights.EnvironmentArgs{
			EnvironmentName:   pulumi.String("env1"),
			Kind:              pulumi.String("Gen1"),
			Location:          pulumi.String("West US"),
			ResourceGroupName: pulumi.String("rg1"),
			Sku: &timeseriesinsights.SkuArgs{
				Capacity: pulumi.Int(1),
				Name:     pulumi.String("S1"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var environment = new Environment("environment", EnvironmentArgs.builder()        
            .environmentName("env1")
            .kind("Gen1")
            .location("West US")
            .resourceGroupName("rg1")
            .sku(Map.ofEntries(
                Map.entry("capacity", 1),
                Map.entry("name", "S1")
            ))
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

environment = azure_native.timeseriesinsights.Environment("environment",
    environment_name="env1",
    kind="Gen1",
    location="West US",
    resource_group_name="rg1",
    sku=azure_native.timeseriesinsights.SkuArgs(
        capacity=1,
        name="S1",
    ))
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const environment = new azure_native.timeseriesinsights.Environment("environment", {
    environmentName: "env1",
    kind: "Gen1",
    location: "West US",
    resourceGroupName: "rg1",
    sku: {
        capacity: 1,
        name: "S1",
    },
});
resources:
  environment:
    type: azure-native:timeseriesinsights:Environment
    properties:
      environmentName: env1
      kind: Gen1
      location: West US
      resourceGroupName: rg1
      sku:
        capacity: 1
        name: S1

Create a Environment Resource

new Environment(name: string, args: EnvironmentArgs, opts?: CustomResourceOptions);
@overload
def Environment(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                environment_name: Optional[str] = None,
                kind: Optional[Union[str, EnvironmentKind]] = None,
                location: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                sku: Optional[SkuArgs] = None,
                tags: Optional[Mapping[str, str]] = None)
@overload
def Environment(resource_name: str,
                args: EnvironmentArgs,
                opts: Optional[ResourceOptions] = None)
func NewEnvironment(ctx *Context, name string, args EnvironmentArgs, opts ...ResourceOption) (*Environment, error)
public Environment(string name, EnvironmentArgs args, CustomResourceOptions? opts = null)
public Environment(String name, EnvironmentArgs args)
public Environment(String name, EnvironmentArgs args, CustomResourceOptions options)
type: azure-native:timeseriesinsights:Environment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args EnvironmentArgs
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 EnvironmentArgs
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 EnvironmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args EnvironmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args EnvironmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Environment 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 Environment resource accepts the following input properties:

Kind string | Pulumi.AzureNative.TimeSeriesInsights.EnvironmentKind

The kind of the environment.

ResourceGroupName string

Name of an Azure Resource group.

Sku Pulumi.AzureNative.TimeSeriesInsights.Inputs.SkuArgs

The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 environments the sku determines the capacity of the environment, the ingress rate, and the billing rate.

EnvironmentName string

Name of the environment

Location string

The location of the resource.

Tags Dictionary<string, string>

Key-value pairs of additional properties for the resource.

Kind string | EnvironmentKind

The kind of the environment.

ResourceGroupName string

Name of an Azure Resource group.

Sku SkuArgs

The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 environments the sku determines the capacity of the environment, the ingress rate, and the billing rate.

EnvironmentName string

Name of the environment

Location string

The location of the resource.

Tags map[string]string

Key-value pairs of additional properties for the resource.

kind String | EnvironmentKind

The kind of the environment.

resourceGroupName String

Name of an Azure Resource group.

sku SkuArgs

The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 environments the sku determines the capacity of the environment, the ingress rate, and the billing rate.

environmentName String

Name of the environment

location String

The location of the resource.

tags Map<String,String>

Key-value pairs of additional properties for the resource.

kind string | EnvironmentKind

The kind of the environment.

resourceGroupName string

Name of an Azure Resource group.

sku SkuArgs

The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 environments the sku determines the capacity of the environment, the ingress rate, and the billing rate.

environmentName string

Name of the environment

location string

The location of the resource.

tags {[key: string]: string}

Key-value pairs of additional properties for the resource.

kind str | EnvironmentKind

The kind of the environment.

resource_group_name str

Name of an Azure Resource group.

sku SkuArgs

The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 environments the sku determines the capacity of the environment, the ingress rate, and the billing rate.

environment_name str

Name of the environment

location str

The location of the resource.

tags Mapping[str, str]

Key-value pairs of additional properties for the resource.

kind String | "Gen1" | "Gen2"

The kind of the environment.

resourceGroupName String

Name of an Azure Resource group.

sku Property Map

The sku determines the type of environment, either Gen1 (S1 or S2) or Gen2 (L1). For Gen1 environments the sku determines the capacity of the environment, the ingress rate, and the billing rate.

environmentName String

Name of the environment

location String

The location of the resource.

tags Map<String>

Key-value pairs of additional properties for the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the Environment resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name

Type string

Resource type

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name

Type string

Resource type

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name

type String

Resource type

id string

The provider-assigned unique ID for this managed resource.

name string

Resource name

type string

Resource type

id str

The provider-assigned unique ID for this managed resource.

name str

Resource name

type str

Resource type

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name

type String

Resource type

Supporting Types

EnvironmentKind

Gen1
Gen1
Gen2
Gen2
EnvironmentKindGen1
Gen1
EnvironmentKindGen2
Gen2
Gen1
Gen1
Gen2
Gen2
Gen1
Gen1
Gen2
Gen2
GEN1
Gen1
GEN2
Gen2
"Gen1"
Gen1
"Gen2"
Gen2

Sku

Capacity int

The capacity of the sku. For Gen1 environments, this value can be changed to support scale out of environments after they have been created.

Name string | Pulumi.AzureNative.TimeSeriesInsights.SkuName

The name of this SKU.

Capacity int

The capacity of the sku. For Gen1 environments, this value can be changed to support scale out of environments after they have been created.

Name string | SkuName

The name of this SKU.

capacity Integer

The capacity of the sku. For Gen1 environments, this value can be changed to support scale out of environments after they have been created.

name String | SkuName

The name of this SKU.

capacity number

The capacity of the sku. For Gen1 environments, this value can be changed to support scale out of environments after they have been created.

name string | SkuName

The name of this SKU.

capacity int

The capacity of the sku. For Gen1 environments, this value can be changed to support scale out of environments after they have been created.

name str | SkuName

The name of this SKU.

capacity Number

The capacity of the sku. For Gen1 environments, this value can be changed to support scale out of environments after they have been created.

name String | "S1" | "S2" | "P1" | "L1"

The name of this SKU.

SkuName

S1
S1
S2
S2
P1
P1
L1
L1
SkuNameS1
S1
SkuNameS2
S2
SkuNameP1
P1
SkuNameL1
L1
S1
S1
S2
S2
P1
P1
L1
L1
S1
S1
S2
S2
P1
P1
L1
L1
S1
S1
S2
S2
P1
P1
L1
L1
"S1"
S1
"S2"
S2
"P1"
P1
"L1"
L1

SkuResponse

Capacity int

The capacity of the sku. For Gen1 environments, this value can be changed to support scale out of environments after they have been created.

Name string

The name of this SKU.

Capacity int

The capacity of the sku. For Gen1 environments, this value can be changed to support scale out of environments after they have been created.

Name string

The name of this SKU.

capacity Integer

The capacity of the sku. For Gen1 environments, this value can be changed to support scale out of environments after they have been created.

name String

The name of this SKU.

capacity number

The capacity of the sku. For Gen1 environments, this value can be changed to support scale out of environments after they have been created.

name string

The name of this SKU.

capacity int

The capacity of the sku. For Gen1 environments, this value can be changed to support scale out of environments after they have been created.

name str

The name of this SKU.

capacity Number

The capacity of the sku. For Gen1 environments, this value can be changed to support scale out of environments after they have been created.

name String

The name of this SKU.

Import

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

$ pulumi import azure-native:timeseriesinsights:Environment env1 /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/Environments/env1 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0