Azure Native

Pulumi Official
Package maintained by Pulumi
v1.68.2 published on Tuesday, Aug 16, 2022 by Pulumi

App

The IoT Central application. API Version: 2021-06-01.

Example Usage

Apps_CreateOrUpdate

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var app = new AzureNative.IoTCentral.App("app", new()
    {
        DisplayName = "My IoT Central App",
        Identity = new AzureNative.IoTCentral.Inputs.SystemAssignedServiceIdentityArgs
        {
            Type = "SystemAssigned",
        },
        Location = "westus",
        ResourceGroupName = "resRg",
        ResourceName = "myIoTCentralApp",
        Sku = new AzureNative.IoTCentral.Inputs.AppSkuInfoArgs
        {
            Name = "ST2",
        },
        Subdomain = "my-iot-central-app",
        Template = "iotc-pnp-preview@1.0.0",
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := iotcentral.NewApp(ctx, "app", &iotcentral.AppArgs{
			DisplayName: pulumi.String("My IoT Central App"),
			Identity: &iotcentral.SystemAssignedServiceIdentityArgs{
				Type: pulumi.String("SystemAssigned"),
			},
			Location:          pulumi.String("westus"),
			ResourceGroupName: pulumi.String("resRg"),
			ResourceName:      pulumi.String("myIoTCentralApp"),
			Sku: &iotcentral.AppSkuInfoArgs{
				Name: pulumi.String("ST2"),
			},
			Subdomain: pulumi.String("my-iot-central-app"),
			Template:  pulumi.String("iotc-pnp-preview@1.0.0"),
		})
		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.iotcentral.App;
import com.pulumi.azurenative.iotcentral.AppArgs;
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 app = new App("app", AppArgs.builder()        
            .displayName("My IoT Central App")
            .identity(Map.of("type", "SystemAssigned"))
            .location("westus")
            .resourceGroupName("resRg")
            .resourceName("myIoTCentralApp")
            .sku(Map.of("name", "ST2"))
            .subdomain("my-iot-central-app")
            .template("iotc-pnp-preview@1.0.0")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

app = azure_native.iotcentral.App("app",
    display_name="My IoT Central App",
    identity=azure_native.iotcentral.SystemAssignedServiceIdentityArgs(
        type="SystemAssigned",
    ),
    location="westus",
    resource_group_name="resRg",
    resource_name_="myIoTCentralApp",
    sku=azure_native.iotcentral.AppSkuInfoArgs(
        name="ST2",
    ),
    subdomain="my-iot-central-app",
    template="iotc-pnp-preview@1.0.0")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const app = new azure_native.iotcentral.App("app", {
    displayName: "My IoT Central App",
    identity: {
        type: "SystemAssigned",
    },
    location: "westus",
    resourceGroupName: "resRg",
    resourceName: "myIoTCentralApp",
    sku: {
        name: "ST2",
    },
    subdomain: "my-iot-central-app",
    template: "iotc-pnp-preview@1.0.0",
});
resources:
  app:
    type: azure-native:iotcentral:App
    properties:
      displayName: My IoT Central App
      identity:
        type: SystemAssigned
      location: westus
      resourceGroupName: resRg
      resourceName: myIoTCentralApp
      sku:
        name: ST2
      subdomain: my-iot-central-app
      template: iotc-pnp-preview@1.0.0

Create a App Resource

new App(name: string, args: AppArgs, opts?: CustomResourceOptions);
@overload
def App(resource_name: str,
        opts: Optional[ResourceOptions] = None,
        display_name: Optional[str] = None,
        identity: Optional[SystemAssignedServiceIdentityArgs] = None,
        location: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        resource_name_: Optional[str] = None,
        sku: Optional[AppSkuInfoArgs] = None,
        subdomain: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        template: Optional[str] = None)
@overload
def App(resource_name: str,
        args: AppArgs,
        opts: Optional[ResourceOptions] = None)
func NewApp(ctx *Context, name string, args AppArgs, opts ...ResourceOption) (*App, error)
public App(string name, AppArgs args, CustomResourceOptions? opts = null)
public App(String name, AppArgs args)
public App(String name, AppArgs args, CustomResourceOptions options)
type: azure-native:iotcentral:App
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

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

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

ResourceGroupName string

The name of the resource group that contains the IoT Central application.

Sku Pulumi.AzureNative.IoTCentral.Inputs.AppSkuInfoArgs

A valid instance SKU.

DisplayName string

The display name of the application.

Identity Pulumi.AzureNative.IoTCentral.Inputs.SystemAssignedServiceIdentityArgs

The managed identities for the IoT Central application.

Location string

The resource location.

ResourceName string

The ARM resource name of the IoT Central application.

Subdomain string

The subdomain of the application.

Tags Dictionary<string, string>

The resource tags.

Template string

The ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.

ResourceGroupName string

The name of the resource group that contains the IoT Central application.

Sku AppSkuInfoArgs

A valid instance SKU.

DisplayName string

The display name of the application.

Identity SystemAssignedServiceIdentityArgs

The managed identities for the IoT Central application.

Location string

The resource location.

ResourceName string

The ARM resource name of the IoT Central application.

Subdomain string

The subdomain of the application.

Tags map[string]string

The resource tags.

Template string

The ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.

resourceGroupName String

The name of the resource group that contains the IoT Central application.

sku AppSkuInfoArgs

A valid instance SKU.

displayName String

The display name of the application.

identity SystemAssignedServiceIdentityArgs

The managed identities for the IoT Central application.

location String

The resource location.

resourceName String

The ARM resource name of the IoT Central application.

subdomain String

The subdomain of the application.

tags Map<String,String>

The resource tags.

template String

The ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.

resourceGroupName string

The name of the resource group that contains the IoT Central application.

sku AppSkuInfoArgs

A valid instance SKU.

displayName string

The display name of the application.

identity SystemAssignedServiceIdentityArgs

The managed identities for the IoT Central application.

location string

The resource location.

resourceName string

The ARM resource name of the IoT Central application.

subdomain string

The subdomain of the application.

tags {[key: string]: string}

The resource tags.

template string

The ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.

resource_group_name str

The name of the resource group that contains the IoT Central application.

sku AppSkuInfoArgs

A valid instance SKU.

display_name str

The display name of the application.

identity SystemAssignedServiceIdentityArgs

The managed identities for the IoT Central application.

location str

The resource location.

resource_name str

The ARM resource name of the IoT Central application.

subdomain str

The subdomain of the application.

tags Mapping[str, str]

The resource tags.

template str

The ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.

resourceGroupName String

The name of the resource group that contains the IoT Central application.

sku Property Map

A valid instance SKU.

displayName String

The display name of the application.

identity Property Map

The managed identities for the IoT Central application.

location String

The resource location.

resourceName String

The ARM resource name of the IoT Central application.

subdomain String

The subdomain of the application.

tags Map<String>

The resource tags.

template String

The ID of the application template, which is a blueprint that defines the characteristics and behaviors of an application. Optional; if not specified, defaults to a blank blueprint and allows the application to be defined from scratch.

Outputs

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

ApplicationId string

The ID of the application.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The ARM resource name.

State string

The current state of the application.

Type string

The resource type.

ApplicationId string

The ID of the application.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The ARM resource name.

State string

The current state of the application.

Type string

The resource type.

applicationId String

The ID of the application.

id String

The provider-assigned unique ID for this managed resource.

name String

The ARM resource name.

state String

The current state of the application.

type String

The resource type.

applicationId string

The ID of the application.

id string

The provider-assigned unique ID for this managed resource.

name string

The ARM resource name.

state string

The current state of the application.

type string

The resource type.

application_id str

The ID of the application.

id str

The provider-assigned unique ID for this managed resource.

name str

The ARM resource name.

state str

The current state of the application.

type str

The resource type.

applicationId String

The ID of the application.

id String

The provider-assigned unique ID for this managed resource.

name String

The ARM resource name.

state String

The current state of the application.

type String

The resource type.

Supporting Types

AppSku

ST0
ST0
ST1
ST1
ST2
ST2
AppSkuST0
ST0
AppSkuST1
ST1
AppSkuST2
ST2
ST0
ST0
ST1
ST1
ST2
ST2
ST0
ST0
ST1
ST1
ST2
ST2
ST0
ST0
ST1
ST1
ST2
ST2
"ST0"
ST0
"ST1"
ST1
"ST2"
ST2

AppSkuInfo

Name string | Pulumi.AzureNative.IoTCentral.AppSku

The name of the SKU.

Name string | AppSku

The name of the SKU.

name String | AppSku

The name of the SKU.

name string | AppSku

The name of the SKU.

name str | AppSku

The name of the SKU.

name String | "ST0" | "ST1" | "ST2"

The name of the SKU.

AppSkuInfoResponse

Name string

The name of the SKU.

Name string

The name of the SKU.

name String

The name of the SKU.

name string

The name of the SKU.

name str

The name of the SKU.

name String

The name of the SKU.

SystemAssignedServiceIdentity

Type string | Pulumi.AzureNative.IoTCentral.SystemAssignedServiceIdentityType

Type of managed service identity (either system assigned, or none).

Type string | SystemAssignedServiceIdentityType

Type of managed service identity (either system assigned, or none).

type String | SystemAssignedServiceIdentityType

Type of managed service identity (either system assigned, or none).

type string | SystemAssignedServiceIdentityType

Type of managed service identity (either system assigned, or none).

type str | SystemAssignedServiceIdentityType

Type of managed service identity (either system assigned, or none).

type String | "None" | "SystemAssigned"

Type of managed service identity (either system assigned, or none).

SystemAssignedServiceIdentityResponse

PrincipalId string

The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.

TenantId string

The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.

Type string

Type of managed service identity (either system assigned, or none).

PrincipalId string

The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.

TenantId string

The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.

Type string

Type of managed service identity (either system assigned, or none).

principalId String

The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.

tenantId String

The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.

type String

Type of managed service identity (either system assigned, or none).

principalId string

The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.

tenantId string

The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.

type string

Type of managed service identity (either system assigned, or none).

principal_id str

The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.

tenant_id str

The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.

type str

Type of managed service identity (either system assigned, or none).

principalId String

The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.

tenantId String

The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.

type String

Type of managed service identity (either system assigned, or none).

SystemAssignedServiceIdentityType

None
None
SystemAssigned
SystemAssigned
SystemAssignedServiceIdentityTypeNone
None
SystemAssignedServiceIdentityTypeSystemAssigned
SystemAssigned
None
None
SystemAssigned
SystemAssigned
None
None
SystemAssigned
SystemAssigned
NONE
None
SYSTEM_ASSIGNED
SystemAssigned
"None"
None
"SystemAssigned"
SystemAssigned

Import

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

$ pulumi import azure-native:iotcentral:App myIoTCentralApp /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/resRg/providers/Microsoft.IoTCentral/IoTApps/myIoTCentralApp 

Package Details

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