App Args
data class AppArgs(val displayName: Output<String>? = null, val identity: Output<SystemAssignedServiceIdentityArgs>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val sku: Output<AppSkuInfoArgs>? = null, val subdomain: Output<String>? = null, val tags: Output<Map<String, String>>? = null, val template: Output<String>? = null) : ConvertibleToJava<AppArgs>
The IoT Central application. API Version: 2021-06-01.
Example Usage
Apps_CreateOrUpdate
using System.Collections.Generic;
using System.Linq;
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",
});
});
Content copied to clipboard
package main
import (
iotcentral "github.com/pulumi/pulumi-azure-native-sdk/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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(displayName: Output<String>? = null, identity: Output<SystemAssignedServiceIdentityArgs>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, sku: Output<AppSkuInfoArgs>? = null, subdomain: Output<String>? = null, tags: Output<Map<String, String>>? = null, template: Output<String>? = null)
Properties
Link copied to clipboard
The display name of the application.
Link copied to clipboard
The managed identities for the IoT Central application.
Link copied to clipboard
The name of the resource group that contains the IoT Central application.
Link copied to clipboard
The ARM resource name of the IoT Central application.
Link copied to clipboard
A valid instance SKU.
Link copied to clipboard