Application
Manages an IoT Central Application
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resource",
location: "West Europe",
});
const exampleApplication = new azure.iotcentral.Application("example", {
name: "example-iotcentral-app",
resourceGroupName: example.name,
location: example.location,
subDomain: "example-iotcentral-app-subdomain",
displayName: "example-iotcentral-app-display-name",
sku: "ST1",
template: "iotc-default@1.0.0",
tags: {
Foo: "Bar",
},
});
Content copied to clipboard
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resource",
location="West Europe")
example_application = azure.iotcentral.Application("example",
name="example-iotcentral-app",
resource_group_name=example.name,
location=example.location,
sub_domain="example-iotcentral-app-subdomain",
display_name="example-iotcentral-app-display-name",
sku="ST1",
template="iotc-default@1.0.0",
tags={
"Foo": "Bar",
})
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resource",
Location = "West Europe",
});
var exampleApplication = new Azure.IotCentral.Application("example", new()
{
Name = "example-iotcentral-app",
ResourceGroupName = example.Name,
Location = example.Location,
SubDomain = "example-iotcentral-app-subdomain",
DisplayName = "example-iotcentral-app-display-name",
Sku = "ST1",
Template = "iotc-default@1.0.0",
Tags =
{
{ "Foo", "Bar" },
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/iotcentral"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resource"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = iotcentral.NewApplication(ctx, "example", &iotcentral.ApplicationArgs{
Name: pulumi.String("example-iotcentral-app"),
ResourceGroupName: example.Name,
Location: example.Location,
SubDomain: pulumi.String("example-iotcentral-app-subdomain"),
DisplayName: pulumi.String("example-iotcentral-app-display-name"),
Sku: pulumi.String("ST1"),
Template: pulumi.String("iotc-default@1.0.0"),
Tags: pulumi.StringMap{
"Foo": pulumi.String("Bar"),
},
})
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.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.iotcentral.Application;
import com.pulumi.azure.iotcentral.ApplicationArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resource")
.location("West Europe")
.build());
var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder()
.name("example-iotcentral-app")
.resourceGroupName(example.name())
.location(example.location())
.subDomain("example-iotcentral-app-subdomain")
.displayName("example-iotcentral-app-display-name")
.sku("ST1")
.template("iotc-default@1.0.0")
.tags(Map.of("Foo", "Bar"))
.build());
}
}
Content copied to clipboard
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resource
location: West Europe
exampleApplication:
type: azure:iotcentral:Application
name: example
properties:
name: example-iotcentral-app
resourceGroupName: ${example.name}
location: ${example.location}
subDomain: example-iotcentral-app-subdomain
displayName: example-iotcentral-app-display-name
sku: ST1
template: iotc-default@1.0.0
tags:
Foo: Bar
Content copied to clipboard
Import
The IoT Central Application can be imported using the resource id
, e.g.
$ pulumi import azure:iotcentral/application:Application example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.IoTCentral/iotApps/app1
Content copied to clipboard
Properties
Link copied to clipboard
A display_name
name. Custom display name for the IoT Central application. Default is resource name.
Link copied to clipboard
An identity
block as defined below.
Link copied to clipboard
Whether public network access is allowed for the IoT Central Application. Defaults to true
.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The name of the resource group under which the IotHub resource has to be created. Changing this forces a new resource to be created.