IotDpsResourceArgs

data class IotDpsResourceArgs(val location: Output<String>? = null, val properties: Output<IotDpsPropertiesDescriptionArgs>? = null, val provisioningServiceName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val resourcegroup: Output<String>? = null, val sku: Output<IotDpsSkuInfoArgs>? = null, val subscriptionid: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<IotDpsResourceArgs>

The description of the provisioning service. Uses Azure REST API version 2022-12-12. In version 1.x of the Azure Native provider, it used API version 2020-03-01. Other available API versions: 2020-09-01-preview, 2023-03-01-preview, 2025-02-01-preview.

Example Usage

DPSCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var iotDpsResource = new AzureNative.Devices.IotDpsResource("iotDpsResource", new()
{
Location = "East US",
Properties = new AzureNative.Devices.Inputs.IotDpsPropertiesDescriptionArgs
{
EnableDataResidency = false,
},
ProvisioningServiceName = "myFirstProvisioningService",
ResourceGroupName = "myResourceGroup",
Sku = new AzureNative.Devices.Inputs.IotDpsSkuInfoArgs
{
Capacity = 1,
Name = AzureNative.Devices.IotDpsSku.S1,
},
Tags = null,
});
});
package main
import (
devices "github.com/pulumi/pulumi-azure-native-sdk/devices/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := devices.NewIotDpsResource(ctx, "iotDpsResource", &devices.IotDpsResourceArgs{
Location: pulumi.String("East US"),
Properties: &devices.IotDpsPropertiesDescriptionArgs{
EnableDataResidency: pulumi.Bool(false),
},
ProvisioningServiceName: pulumi.String("myFirstProvisioningService"),
ResourceGroupName: pulumi.String("myResourceGroup"),
Sku: &devices.IotDpsSkuInfoArgs{
Capacity: pulumi.Float64(1),
Name: pulumi.String(devices.IotDpsSkuS1),
},
Tags: pulumi.StringMap{},
})
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.devices.IotDpsResource;
import com.pulumi.azurenative.devices.IotDpsResourceArgs;
import com.pulumi.azurenative.devices.inputs.IotDpsPropertiesDescriptionArgs;
import com.pulumi.azurenative.devices.inputs.IotDpsSkuInfoArgs;
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 iotDpsResource = new IotDpsResource("iotDpsResource", IotDpsResourceArgs.builder()
.location("East US")
.properties(IotDpsPropertiesDescriptionArgs.builder()
.enableDataResidency(false)
.build())
.provisioningServiceName("myFirstProvisioningService")
.resourceGroupName("myResourceGroup")
.sku(IotDpsSkuInfoArgs.builder()
.capacity(1)
.name("S1")
.build())
.tags()
.build());
}
}

Import

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

$ pulumi import azure-native:devices:IotDpsResource myFirstProvisioningService /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}

Constructors

Link copied to clipboard
constructor(location: Output<String>? = null, properties: Output<IotDpsPropertiesDescriptionArgs>? = null, provisioningServiceName: Output<String>? = null, resourceGroupName: Output<String>? = null, resourcegroup: Output<String>? = null, sku: Output<IotDpsSkuInfoArgs>? = null, subscriptionid: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

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

The resource location.

Link copied to clipboard

Service specific properties for a provisioning service

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

Name of provisioning service to create or update.

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

The resource group of the resource.

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

Resource group identifier.

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

Sku info for a provisioning Service.

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

The subscription id of the resource.

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

The resource tags.

Functions

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