AppArgs

data class AppArgs(val displayName: Output<String>? = null, val identity: Output<SystemAssignedServiceIdentityArgs>? = null, val location: Output<String>? = null, val networkRuleSets: Output<NetworkRuleSetsArgs>? = null, val publicNetworkAccess: Output<Either<String, PublicNetworkAccess>>? = 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. Uses Azure REST API version 2021-11-01-preview. In version 2.x of the Azure Native provider, it used API version 2021-06-01. Other available API versions: 2021-06-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native iotcentral [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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 = AzureNative.IoTCentral.SystemAssignedServiceIdentityType.SystemAssigned,
},
Location = "westus",
ResourceGroupName = "resRg",
ResourceName = "myIoTCentralApp",
Sku = new AzureNative.IoTCentral.Inputs.AppSkuInfoArgs
{
Name = AzureNative.IoTCentral.AppSku.ST2,
},
Subdomain = "my-iot-central-app",
Template = "iotc-pnp-preview@1.0.0",
});
});
package main
import (
iotcentral "github.com/pulumi/pulumi-azure-native-sdk/iotcentral/v3"
"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(iotcentral.SystemAssignedServiceIdentityTypeSystemAssigned),
},
Location: pulumi.String("westus"),
ResourceGroupName: pulumi.String("resRg"),
ResourceName: pulumi.String("myIoTCentralApp"),
Sku: &iotcentral.AppSkuInfoArgs{
Name: pulumi.String(iotcentral.AppSkuST2),
},
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 com.pulumi.azurenative.iotcentral.inputs.SystemAssignedServiceIdentityArgs;
import com.pulumi.azurenative.iotcentral.inputs.AppSkuInfoArgs;
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(SystemAssignedServiceIdentityArgs.builder()
.type("SystemAssigned")
.build())
.location("westus")
.resourceGroupName("resRg")
.resourceName("myIoTCentralApp")
.sku(AppSkuInfoArgs.builder()
.name("ST2")
.build())
.subdomain("my-iot-central-app")
.template("iotc-pnp-preview@1.0.0")
.build());
}
}

Import

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

$ pulumi import azure-native:iotcentral:App myIoTCentralApp /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTCentral/iotApps/{resourceName}

Constructors

Link copied to clipboard
constructor(displayName: Output<String>? = null, identity: Output<SystemAssignedServiceIdentityArgs>? = null, location: Output<String>? = null, networkRuleSets: Output<NetworkRuleSetsArgs>? = null, publicNetworkAccess: Output<Either<String, PublicNetworkAccess>>? = 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
val displayName: Output<String>? = null

The display name of the application.

Link copied to clipboard

The managed identities for the IoT Central application.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard

Network Rule Set Properties of this IoT Central application.

Link copied to clipboard
val publicNetworkAccess: Output<Either<String, PublicNetworkAccess>>? = null

Whether requests from the public network are allowed.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

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

Link copied to clipboard
val resourceName: Output<String>? = null

The ARM resource name of the IoT Central application.

Link copied to clipboard
val sku: Output<AppSkuInfoArgs>? = null

A valid instance SKU.

Link copied to clipboard
val subdomain: Output<String>? = null

The subdomain of the application.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Link copied to clipboard
val template: Output<String>? = null

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.

Functions

Link copied to clipboard
open override fun toJava(): AppArgs