App Args
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
Properties
The display name of the application.
The managed identities for the IoT Central application.
Network Rule Set Properties of this IoT Central application.
Whether requests from the public network are allowed.
The name of the resource group that contains the IoT Central application.
The ARM resource name of the IoT Central application.
A valid instance SKU.