azure-native.iotcentral.App
Explore with Pulumi AI
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",
});
});
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
})
}
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 App Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new App(name: string, args: AppArgs, opts?: CustomResourceOptions);
@overload
def App(resource_name: str,
args: AppArgs,
opts: Optional[ResourceOptions] = None)
@overload
def App(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
sku: Optional[AppSkuInfoArgs] = None,
display_name: Optional[str] = None,
identity: Optional[SystemAssignedServiceIdentityArgs] = None,
location: Optional[str] = None,
resource_name_: Optional[str] = None,
subdomain: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
template: Optional[str] = None)
func NewApp(ctx *Context, name string, args AppArgs, opts ...ResourceOption) (*App, error)
public App(string name, AppArgs args, CustomResourceOptions? opts = null)
type: azure-native:iotcentral:App
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeAppResource = new AzureNative.Iotcentral.App("azure-nativeAppResource", new()
{
ResourceGroupName = "string",
Sku =
{
{ "name", "string" },
},
DisplayName = "string",
Identity =
{
{ "type", "string" },
},
Location = "string",
ResourceName = "string",
Subdomain = "string",
Tags =
{
{ "string", "string" },
},
Template = "string",
});
example, err := iotcentral.NewApp(ctx, "azure-nativeAppResource", &iotcentral.AppArgs{
ResourceGroupName: "string",
Sku: map[string]interface{}{
"name": "string",
},
DisplayName: "string",
Identity: map[string]interface{}{
"type": "string",
},
Location: "string",
ResourceName: "string",
Subdomain: "string",
Tags: map[string]interface{}{
"string": "string",
},
Template: "string",
})
var azure_nativeAppResource = new App("azure-nativeAppResource", AppArgs.builder()
.resourceGroupName("string")
.sku(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.displayName("string")
.identity(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.location("string")
.resourceName("string")
.subdomain("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.template("string")
.build());
azure_native_app_resource = azure_native.iotcentral.App("azure-nativeAppResource",
resource_group_name=string,
sku={
name: string,
},
display_name=string,
identity={
type: string,
},
location=string,
resource_name_=string,
subdomain=string,
tags={
string: string,
},
template=string)
const azure_nativeAppResource = new azure_native.iotcentral.App("azure-nativeAppResource", {
resourceGroupName: "string",
sku: {
name: "string",
},
displayName: "string",
identity: {
type: "string",
},
location: "string",
resourceName: "string",
subdomain: "string",
tags: {
string: "string",
},
template: "string",
});
type: azure-native:iotcentral:App
properties:
displayName: string
identity:
type: string
location: string
resourceGroupName: string
resourceName: string
sku:
name: string
subdomain: string
tags:
string: string
template: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The App resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group that contains the IoT Central application.
- Sku
Pulumi.
Azure Native. Io TCentral. Inputs. App Sku Info - A valid instance SKU.
- Display
Name string - The display name of the application.
- Identity
Pulumi.
Azure Native. Io TCentral. Inputs. System Assigned Service Identity - The managed identities for the IoT Central application.
- Location string
- The resource location.
- Resource
Name string - The ARM resource name of the IoT Central application.
- Subdomain string
- The subdomain of the application.
- 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.
- Resource
Group stringName - The name of the resource group that contains the IoT Central application.
- Sku
App
Sku Info Args - A valid instance SKU.
- Display
Name string - The display name of the application.
- Identity
System
Assigned Service Identity Args - The managed identities for the IoT Central application.
- Location string
- The resource location.
- Resource
Name string - The ARM resource name of the IoT Central application.
- Subdomain string
- The subdomain of the application.
- 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.
- resource
Group StringName - The name of the resource group that contains the IoT Central application.
- sku
App
Sku Info - A valid instance SKU.
- display
Name String - The display name of the application.
- identity
System
Assigned Service Identity - The managed identities for the IoT Central application.
- location String
- The resource location.
- resource
Name String - The ARM resource name of the IoT Central application.
- subdomain String
- The subdomain of the application.
- 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.
- resource
Group stringName - The name of the resource group that contains the IoT Central application.
- sku
App
Sku Info - A valid instance SKU.
- display
Name string - The display name of the application.
- identity
System
Assigned Service Identity - The managed identities for the IoT Central application.
- location string
- The resource location.
- resource
Name string - The ARM resource name of the IoT Central application.
- subdomain string
- The subdomain of the application.
- {[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_ strname - The name of the resource group that contains the IoT Central application.
- sku
App
Sku Info Args - A valid instance SKU.
- display_
name str - The display name of the application.
- identity
System
Assigned Service Identity Args - 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.
- 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.
- resource
Group StringName - The name of the resource group that contains the IoT Central application.
- sku Property Map
- A valid instance SKU.
- display
Name String - The display name of the application.
- identity Property Map
- The managed identities for the IoT Central application.
- location String
- The resource location.
- resource
Name String - The ARM resource name of the IoT Central application.
- subdomain String
- The subdomain of the application.
- 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:
- Application
Id 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 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 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 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.
- application
Id 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, AppSkuArgs
- ST0
- ST0
- ST1
- ST1
- ST2
- ST2
- App
Sku ST0 - ST0
- App
Sku ST1 - ST1
- App
Sku ST2 - 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, AppSkuInfoArgs
- Name
string | Pulumi.
Azure Native. Io TCentral. App Sku - The name of the SKU.
- name String | "ST0" | "ST1" | "ST2"
- The name of the SKU.
AppSkuInfoResponse, AppSkuInfoResponseArgs
- 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, SystemAssignedServiceIdentityArgs
- Type
string | Pulumi.
Azure Native. Io TCentral. System Assigned Service Identity Type - Type of managed service identity (either system assigned, or none).
- Type
string | System
Assigned Service Identity Type - Type of managed service identity (either system assigned, or none).
- type
String | System
Assigned Service Identity Type - Type of managed service identity (either system assigned, or none).
- type
string | System
Assigned Service Identity Type - Type of managed service identity (either system assigned, or none).
- type
str | System
Assigned Service Identity Type - Type of managed service identity (either system assigned, or none).
- type
String | "None" | "System
Assigned" - Type of managed service identity (either system assigned, or none).
SystemAssignedServiceIdentityResponse, SystemAssignedServiceIdentityResponseArgs
- Principal
Id string - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- Tenant
Id 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 string - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- Tenant
Id 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 String - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant
Id 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 string - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant
Id 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).
- principal
Id String - The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.
- tenant
Id 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, SystemAssignedServiceIdentityTypeArgs
- None
- None
- System
Assigned - SystemAssigned
- System
Assigned Service Identity Type None - None
- System
Assigned Service Identity Type System Assigned - SystemAssigned
- None
- None
- System
Assigned - SystemAssigned
- None
- None
- System
Assigned - SystemAssigned
- NONE
- None
- SYSTEM_ASSIGNED
- SystemAssigned
- "None"
- None
- "System
Assigned" - 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
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0