azure-native.deviceregistry.Asset
Explore with Pulumi AI
Asset definition. Azure REST API version: 2023-11-01-preview.
Other available API versions: 2024-09-01-preview, 2024-11-01.
Example Usage
Create_Asset_With_ExternalAssetId
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var asset = new AzureNative.DeviceRegistry.Asset("asset", new()
{
AssetEndpointProfileUri = "https://www.example.com/myAssetEndpointProfile",
AssetName = "my-asset",
AssetType = "MyAssetType",
DataPoints = new[]
{
new AzureNative.DeviceRegistry.Inputs.DataPointArgs
{
CapabilityId = "dtmi:com:example:Thermostat:__temperature;1",
DataPointConfiguration = "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
DataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
ObservabilityMode = AzureNative.DeviceRegistry.DataPointsObservabilityMode.Counter,
},
new AzureNative.DeviceRegistry.Inputs.DataPointArgs
{
CapabilityId = "dtmi:com:example:Thermostat:__pressure;1",
DataPointConfiguration = "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
DataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
ObservabilityMode = AzureNative.DeviceRegistry.DataPointsObservabilityMode.None,
},
},
DefaultDataPointsConfiguration = "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
DefaultEventsConfiguration = "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
Description = "This is a sample Asset",
DisplayName = "AssetDisplayName",
DocumentationUri = "https://www.example.com/manual",
Enabled = true,
Events = new[]
{
new AzureNative.DeviceRegistry.Inputs.EventArgs
{
CapabilityId = "dtmi:com:example:Thermostat:__temperature;1",
EventConfiguration = "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
EventNotifier = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
ObservabilityMode = AzureNative.DeviceRegistry.EventsObservabilityMode.None,
},
new AzureNative.DeviceRegistry.Inputs.EventArgs
{
CapabilityId = "dtmi:com:example:Thermostat:__pressure;1",
EventConfiguration = "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
EventNotifier = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
ObservabilityMode = AzureNative.DeviceRegistry.EventsObservabilityMode.Log,
},
},
ExtendedLocation = new AzureNative.DeviceRegistry.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
Type = "CustomLocation",
},
ExternalAssetId = "8ZBA6LRHU0A458969",
HardwareRevision = "1.0",
Location = "West Europe",
Manufacturer = "Contoso",
ManufacturerUri = "https://www.contoso.com/manufacturerUri",
Model = "ContosoModel",
ProductCode = "SA34VDG",
ResourceGroupName = "myResourceGroup",
SerialNumber = "64-103816-519918-8",
SoftwareRevision = "2.0",
Tags =
{
{ "site", "building-1" },
},
});
});
package main
import (
deviceregistry "github.com/pulumi/pulumi-azure-native-sdk/deviceregistry/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := deviceregistry.NewAsset(ctx, "asset", &deviceregistry.AssetArgs{
AssetEndpointProfileUri: pulumi.String("https://www.example.com/myAssetEndpointProfile"),
AssetName: pulumi.String("my-asset"),
AssetType: pulumi.String("MyAssetType"),
DataPoints: deviceregistry.DataPointArray{
&deviceregistry.DataPointArgs{
CapabilityId: pulumi.String("dtmi:com:example:Thermostat:__temperature;1"),
DataPointConfiguration: pulumi.String("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
DataSource: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
ObservabilityMode: pulumi.String(deviceregistry.DataPointsObservabilityModeCounter),
},
&deviceregistry.DataPointArgs{
CapabilityId: pulumi.String("dtmi:com:example:Thermostat:__pressure;1"),
DataPointConfiguration: pulumi.String("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
DataSource: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
ObservabilityMode: pulumi.String(deviceregistry.DataPointsObservabilityModeNone),
},
},
DefaultDataPointsConfiguration: pulumi.String("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
DefaultEventsConfiguration: pulumi.String("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
Description: pulumi.String("This is a sample Asset"),
DisplayName: pulumi.String("AssetDisplayName"),
DocumentationUri: pulumi.String("https://www.example.com/manual"),
Enabled: pulumi.Bool(true),
Events: deviceregistry.EventArray{
&deviceregistry.EventArgs{
CapabilityId: pulumi.String("dtmi:com:example:Thermostat:__temperature;1"),
EventConfiguration: pulumi.String("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
EventNotifier: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
ObservabilityMode: pulumi.String(deviceregistry.EventsObservabilityModeNone),
},
&deviceregistry.EventArgs{
CapabilityId: pulumi.String("dtmi:com:example:Thermostat:__pressure;1"),
EventConfiguration: pulumi.String("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
EventNotifier: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
ObservabilityMode: pulumi.String(deviceregistry.EventsObservabilityModeLog),
},
},
ExtendedLocation: &deviceregistry.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
Type: pulumi.String("CustomLocation"),
},
ExternalAssetId: pulumi.String("8ZBA6LRHU0A458969"),
HardwareRevision: pulumi.String("1.0"),
Location: pulumi.String("West Europe"),
Manufacturer: pulumi.String("Contoso"),
ManufacturerUri: pulumi.String("https://www.contoso.com/manufacturerUri"),
Model: pulumi.String("ContosoModel"),
ProductCode: pulumi.String("SA34VDG"),
ResourceGroupName: pulumi.String("myResourceGroup"),
SerialNumber: pulumi.String("64-103816-519918-8"),
SoftwareRevision: pulumi.String("2.0"),
Tags: pulumi.StringMap{
"site": pulumi.String("building-1"),
},
})
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.deviceregistry.Asset;
import com.pulumi.azurenative.deviceregistry.AssetArgs;
import com.pulumi.azurenative.deviceregistry.inputs.DataPointArgs;
import com.pulumi.azurenative.deviceregistry.inputs.EventArgs;
import com.pulumi.azurenative.deviceregistry.inputs.ExtendedLocationArgs;
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 asset = new Asset("asset", AssetArgs.builder()
.assetEndpointProfileUri("https://www.example.com/myAssetEndpointProfile")
.assetName("my-asset")
.assetType("MyAssetType")
.dataPoints(
DataPointArgs.builder()
.capabilityId("dtmi:com:example:Thermostat:__temperature;1")
.dataPointConfiguration("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}")
.dataSource("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1")
.observabilityMode("counter")
.build(),
DataPointArgs.builder()
.capabilityId("dtmi:com:example:Thermostat:__pressure;1")
.dataPointConfiguration("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}")
.dataSource("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2")
.observabilityMode("none")
.build())
.defaultDataPointsConfiguration("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}")
.defaultEventsConfiguration("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}")
.description("This is a sample Asset")
.displayName("AssetDisplayName")
.documentationUri("https://www.example.com/manual")
.enabled(true)
.events(
EventArgs.builder()
.capabilityId("dtmi:com:example:Thermostat:__temperature;1")
.eventConfiguration("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}")
.eventNotifier("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3")
.observabilityMode("none")
.build(),
EventArgs.builder()
.capabilityId("dtmi:com:example:Thermostat:__pressure;1")
.eventConfiguration("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}")
.eventNotifier("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4")
.observabilityMode("log")
.build())
.extendedLocation(ExtendedLocationArgs.builder()
.name("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1")
.type("CustomLocation")
.build())
.externalAssetId("8ZBA6LRHU0A458969")
.hardwareRevision("1.0")
.location("West Europe")
.manufacturer("Contoso")
.manufacturerUri("https://www.contoso.com/manufacturerUri")
.model("ContosoModel")
.productCode("SA34VDG")
.resourceGroupName("myResourceGroup")
.serialNumber("64-103816-519918-8")
.softwareRevision("2.0")
.tags(Map.of("site", "building-1"))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
asset = azure_native.deviceregistry.Asset("asset",
asset_endpoint_profile_uri="https://www.example.com/myAssetEndpointProfile",
asset_name="my-asset",
asset_type="MyAssetType",
data_points=[
{
"capability_id": "dtmi:com:example:Thermostat:__temperature;1",
"data_point_configuration": "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
"data_source": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
"observability_mode": azure_native.deviceregistry.DataPointsObservabilityMode.COUNTER,
},
{
"capability_id": "dtmi:com:example:Thermostat:__pressure;1",
"data_point_configuration": "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
"data_source": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
"observability_mode": azure_native.deviceregistry.DataPointsObservabilityMode.NONE,
},
],
default_data_points_configuration="{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
default_events_configuration="{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
description="This is a sample Asset",
display_name="AssetDisplayName",
documentation_uri="https://www.example.com/manual",
enabled=True,
events=[
{
"capability_id": "dtmi:com:example:Thermostat:__temperature;1",
"event_configuration": "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
"event_notifier": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
"observability_mode": azure_native.deviceregistry.EventsObservabilityMode.NONE,
},
{
"capability_id": "dtmi:com:example:Thermostat:__pressure;1",
"event_configuration": "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
"event_notifier": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
"observability_mode": azure_native.deviceregistry.EventsObservabilityMode.LOG,
},
],
extended_location={
"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
"type": "CustomLocation",
},
external_asset_id="8ZBA6LRHU0A458969",
hardware_revision="1.0",
location="West Europe",
manufacturer="Contoso",
manufacturer_uri="https://www.contoso.com/manufacturerUri",
model="ContosoModel",
product_code="SA34VDG",
resource_group_name="myResourceGroup",
serial_number="64-103816-519918-8",
software_revision="2.0",
tags={
"site": "building-1",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const asset = new azure_native.deviceregistry.Asset("asset", {
assetEndpointProfileUri: "https://www.example.com/myAssetEndpointProfile",
assetName: "my-asset",
assetType: "MyAssetType",
dataPoints: [
{
capabilityId: "dtmi:com:example:Thermostat:__temperature;1",
dataPointConfiguration: "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
dataSource: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
observabilityMode: azure_native.deviceregistry.DataPointsObservabilityMode.Counter,
},
{
capabilityId: "dtmi:com:example:Thermostat:__pressure;1",
dataPointConfiguration: "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
dataSource: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
observabilityMode: azure_native.deviceregistry.DataPointsObservabilityMode.None,
},
],
defaultDataPointsConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
defaultEventsConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
description: "This is a sample Asset",
displayName: "AssetDisplayName",
documentationUri: "https://www.example.com/manual",
enabled: true,
events: [
{
capabilityId: "dtmi:com:example:Thermostat:__temperature;1",
eventConfiguration: "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
eventNotifier: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
observabilityMode: azure_native.deviceregistry.EventsObservabilityMode.None,
},
{
capabilityId: "dtmi:com:example:Thermostat:__pressure;1",
eventConfiguration: "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
eventNotifier: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
observabilityMode: azure_native.deviceregistry.EventsObservabilityMode.Log,
},
],
extendedLocation: {
name: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
type: "CustomLocation",
},
externalAssetId: "8ZBA6LRHU0A458969",
hardwareRevision: "1.0",
location: "West Europe",
manufacturer: "Contoso",
manufacturerUri: "https://www.contoso.com/manufacturerUri",
model: "ContosoModel",
productCode: "SA34VDG",
resourceGroupName: "myResourceGroup",
serialNumber: "64-103816-519918-8",
softwareRevision: "2.0",
tags: {
site: "building-1",
},
});
resources:
asset:
type: azure-native:deviceregistry:Asset
properties:
assetEndpointProfileUri: https://www.example.com/myAssetEndpointProfile
assetName: my-asset
assetType: MyAssetType
dataPoints:
- capabilityId: dtmi:com:example:Thermostat:__temperature;1
dataPointConfiguration: '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
dataSource: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1
observabilityMode: counter
- capabilityId: dtmi:com:example:Thermostat:__pressure;1
dataPointConfiguration: '{"publishingInterval":4,"samplingInterval":4,"queueSize":7}'
dataSource: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2
observabilityMode: none
defaultDataPointsConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
defaultEventsConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
description: This is a sample Asset
displayName: AssetDisplayName
documentationUri: https://www.example.com/manual
enabled: true
events:
- capabilityId: dtmi:com:example:Thermostat:__temperature;1
eventConfiguration: '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}'
eventNotifier: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3
observabilityMode: none
- capabilityId: dtmi:com:example:Thermostat:__pressure;1
eventConfiguration: '{"publishingInterval":7,"samplingInterval":8,"queueSize":4}'
eventNotifier: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4
observabilityMode: log
extendedLocation:
name: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1
type: CustomLocation
externalAssetId: 8ZBA6LRHU0A458969
hardwareRevision: '1.0'
location: West Europe
manufacturer: Contoso
manufacturerUri: https://www.contoso.com/manufacturerUri
model: ContosoModel
productCode: SA34VDG
resourceGroupName: myResourceGroup
serialNumber: 64-103816-519918-8
softwareRevision: '2.0'
tags:
site: building-1
Create_Asset_Without_DisplayName
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var asset = new AzureNative.DeviceRegistry.Asset("asset", new()
{
AssetEndpointProfileUri = "https://www.example.com/myAssetEndpointProfile",
AssetName = "my-asset",
AssetType = "MyAssetType",
DataPoints = new[]
{
new AzureNative.DeviceRegistry.Inputs.DataPointArgs
{
CapabilityId = "dtmi:com:example:Thermostat:__temperature;1",
DataPointConfiguration = "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
DataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
ObservabilityMode = AzureNative.DeviceRegistry.DataPointsObservabilityMode.Counter,
},
new AzureNative.DeviceRegistry.Inputs.DataPointArgs
{
CapabilityId = "dtmi:com:example:Thermostat:__pressure;1",
DataPointConfiguration = "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
DataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
ObservabilityMode = AzureNative.DeviceRegistry.DataPointsObservabilityMode.None,
},
},
DefaultDataPointsConfiguration = "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
DefaultEventsConfiguration = "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
Description = "This is a sample Asset",
DocumentationUri = "https://www.example.com/manual",
Enabled = true,
Events = new[]
{
new AzureNative.DeviceRegistry.Inputs.EventArgs
{
CapabilityId = "dtmi:com:example:Thermostat:__temperature;1",
EventConfiguration = "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
EventNotifier = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
ObservabilityMode = AzureNative.DeviceRegistry.EventsObservabilityMode.None,
},
new AzureNative.DeviceRegistry.Inputs.EventArgs
{
CapabilityId = "dtmi:com:example:Thermostat:__pressure;1",
EventConfiguration = "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
EventNotifier = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
ObservabilityMode = AzureNative.DeviceRegistry.EventsObservabilityMode.Log,
},
},
ExtendedLocation = new AzureNative.DeviceRegistry.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
Type = "CustomLocation",
},
ExternalAssetId = "8ZBA6LRHU0A458969",
HardwareRevision = "1.0",
Location = "West Europe",
Manufacturer = "Contoso",
ManufacturerUri = "https://www.contoso.com/manufacturerUri",
Model = "ContosoModel",
ProductCode = "SA34VDG",
ResourceGroupName = "myResourceGroup",
SerialNumber = "64-103816-519918-8",
SoftwareRevision = "2.0",
Tags =
{
{ "site", "building-1" },
},
});
});
package main
import (
deviceregistry "github.com/pulumi/pulumi-azure-native-sdk/deviceregistry/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := deviceregistry.NewAsset(ctx, "asset", &deviceregistry.AssetArgs{
AssetEndpointProfileUri: pulumi.String("https://www.example.com/myAssetEndpointProfile"),
AssetName: pulumi.String("my-asset"),
AssetType: pulumi.String("MyAssetType"),
DataPoints: deviceregistry.DataPointArray{
&deviceregistry.DataPointArgs{
CapabilityId: pulumi.String("dtmi:com:example:Thermostat:__temperature;1"),
DataPointConfiguration: pulumi.String("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
DataSource: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
ObservabilityMode: pulumi.String(deviceregistry.DataPointsObservabilityModeCounter),
},
&deviceregistry.DataPointArgs{
CapabilityId: pulumi.String("dtmi:com:example:Thermostat:__pressure;1"),
DataPointConfiguration: pulumi.String("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
DataSource: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
ObservabilityMode: pulumi.String(deviceregistry.DataPointsObservabilityModeNone),
},
},
DefaultDataPointsConfiguration: pulumi.String("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
DefaultEventsConfiguration: pulumi.String("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
Description: pulumi.String("This is a sample Asset"),
DocumentationUri: pulumi.String("https://www.example.com/manual"),
Enabled: pulumi.Bool(true),
Events: deviceregistry.EventArray{
&deviceregistry.EventArgs{
CapabilityId: pulumi.String("dtmi:com:example:Thermostat:__temperature;1"),
EventConfiguration: pulumi.String("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
EventNotifier: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
ObservabilityMode: pulumi.String(deviceregistry.EventsObservabilityModeNone),
},
&deviceregistry.EventArgs{
CapabilityId: pulumi.String("dtmi:com:example:Thermostat:__pressure;1"),
EventConfiguration: pulumi.String("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
EventNotifier: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
ObservabilityMode: pulumi.String(deviceregistry.EventsObservabilityModeLog),
},
},
ExtendedLocation: &deviceregistry.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
Type: pulumi.String("CustomLocation"),
},
ExternalAssetId: pulumi.String("8ZBA6LRHU0A458969"),
HardwareRevision: pulumi.String("1.0"),
Location: pulumi.String("West Europe"),
Manufacturer: pulumi.String("Contoso"),
ManufacturerUri: pulumi.String("https://www.contoso.com/manufacturerUri"),
Model: pulumi.String("ContosoModel"),
ProductCode: pulumi.String("SA34VDG"),
ResourceGroupName: pulumi.String("myResourceGroup"),
SerialNumber: pulumi.String("64-103816-519918-8"),
SoftwareRevision: pulumi.String("2.0"),
Tags: pulumi.StringMap{
"site": pulumi.String("building-1"),
},
})
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.deviceregistry.Asset;
import com.pulumi.azurenative.deviceregistry.AssetArgs;
import com.pulumi.azurenative.deviceregistry.inputs.DataPointArgs;
import com.pulumi.azurenative.deviceregistry.inputs.EventArgs;
import com.pulumi.azurenative.deviceregistry.inputs.ExtendedLocationArgs;
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 asset = new Asset("asset", AssetArgs.builder()
.assetEndpointProfileUri("https://www.example.com/myAssetEndpointProfile")
.assetName("my-asset")
.assetType("MyAssetType")
.dataPoints(
DataPointArgs.builder()
.capabilityId("dtmi:com:example:Thermostat:__temperature;1")
.dataPointConfiguration("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}")
.dataSource("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1")
.observabilityMode("counter")
.build(),
DataPointArgs.builder()
.capabilityId("dtmi:com:example:Thermostat:__pressure;1")
.dataPointConfiguration("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}")
.dataSource("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2")
.observabilityMode("none")
.build())
.defaultDataPointsConfiguration("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}")
.defaultEventsConfiguration("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}")
.description("This is a sample Asset")
.documentationUri("https://www.example.com/manual")
.enabled(true)
.events(
EventArgs.builder()
.capabilityId("dtmi:com:example:Thermostat:__temperature;1")
.eventConfiguration("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}")
.eventNotifier("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3")
.observabilityMode("none")
.build(),
EventArgs.builder()
.capabilityId("dtmi:com:example:Thermostat:__pressure;1")
.eventConfiguration("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}")
.eventNotifier("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4")
.observabilityMode("log")
.build())
.extendedLocation(ExtendedLocationArgs.builder()
.name("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1")
.type("CustomLocation")
.build())
.externalAssetId("8ZBA6LRHU0A458969")
.hardwareRevision("1.0")
.location("West Europe")
.manufacturer("Contoso")
.manufacturerUri("https://www.contoso.com/manufacturerUri")
.model("ContosoModel")
.productCode("SA34VDG")
.resourceGroupName("myResourceGroup")
.serialNumber("64-103816-519918-8")
.softwareRevision("2.0")
.tags(Map.of("site", "building-1"))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
asset = azure_native.deviceregistry.Asset("asset",
asset_endpoint_profile_uri="https://www.example.com/myAssetEndpointProfile",
asset_name="my-asset",
asset_type="MyAssetType",
data_points=[
{
"capability_id": "dtmi:com:example:Thermostat:__temperature;1",
"data_point_configuration": "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
"data_source": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
"observability_mode": azure_native.deviceregistry.DataPointsObservabilityMode.COUNTER,
},
{
"capability_id": "dtmi:com:example:Thermostat:__pressure;1",
"data_point_configuration": "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
"data_source": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
"observability_mode": azure_native.deviceregistry.DataPointsObservabilityMode.NONE,
},
],
default_data_points_configuration="{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
default_events_configuration="{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
description="This is a sample Asset",
documentation_uri="https://www.example.com/manual",
enabled=True,
events=[
{
"capability_id": "dtmi:com:example:Thermostat:__temperature;1",
"event_configuration": "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
"event_notifier": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
"observability_mode": azure_native.deviceregistry.EventsObservabilityMode.NONE,
},
{
"capability_id": "dtmi:com:example:Thermostat:__pressure;1",
"event_configuration": "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
"event_notifier": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
"observability_mode": azure_native.deviceregistry.EventsObservabilityMode.LOG,
},
],
extended_location={
"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
"type": "CustomLocation",
},
external_asset_id="8ZBA6LRHU0A458969",
hardware_revision="1.0",
location="West Europe",
manufacturer="Contoso",
manufacturer_uri="https://www.contoso.com/manufacturerUri",
model="ContosoModel",
product_code="SA34VDG",
resource_group_name="myResourceGroup",
serial_number="64-103816-519918-8",
software_revision="2.0",
tags={
"site": "building-1",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const asset = new azure_native.deviceregistry.Asset("asset", {
assetEndpointProfileUri: "https://www.example.com/myAssetEndpointProfile",
assetName: "my-asset",
assetType: "MyAssetType",
dataPoints: [
{
capabilityId: "dtmi:com:example:Thermostat:__temperature;1",
dataPointConfiguration: "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
dataSource: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
observabilityMode: azure_native.deviceregistry.DataPointsObservabilityMode.Counter,
},
{
capabilityId: "dtmi:com:example:Thermostat:__pressure;1",
dataPointConfiguration: "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
dataSource: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
observabilityMode: azure_native.deviceregistry.DataPointsObservabilityMode.None,
},
],
defaultDataPointsConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
defaultEventsConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
description: "This is a sample Asset",
documentationUri: "https://www.example.com/manual",
enabled: true,
events: [
{
capabilityId: "dtmi:com:example:Thermostat:__temperature;1",
eventConfiguration: "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
eventNotifier: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
observabilityMode: azure_native.deviceregistry.EventsObservabilityMode.None,
},
{
capabilityId: "dtmi:com:example:Thermostat:__pressure;1",
eventConfiguration: "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
eventNotifier: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
observabilityMode: azure_native.deviceregistry.EventsObservabilityMode.Log,
},
],
extendedLocation: {
name: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
type: "CustomLocation",
},
externalAssetId: "8ZBA6LRHU0A458969",
hardwareRevision: "1.0",
location: "West Europe",
manufacturer: "Contoso",
manufacturerUri: "https://www.contoso.com/manufacturerUri",
model: "ContosoModel",
productCode: "SA34VDG",
resourceGroupName: "myResourceGroup",
serialNumber: "64-103816-519918-8",
softwareRevision: "2.0",
tags: {
site: "building-1",
},
});
resources:
asset:
type: azure-native:deviceregistry:Asset
properties:
assetEndpointProfileUri: https://www.example.com/myAssetEndpointProfile
assetName: my-asset
assetType: MyAssetType
dataPoints:
- capabilityId: dtmi:com:example:Thermostat:__temperature;1
dataPointConfiguration: '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
dataSource: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1
observabilityMode: counter
- capabilityId: dtmi:com:example:Thermostat:__pressure;1
dataPointConfiguration: '{"publishingInterval":4,"samplingInterval":4,"queueSize":7}'
dataSource: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2
observabilityMode: none
defaultDataPointsConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
defaultEventsConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
description: This is a sample Asset
documentationUri: https://www.example.com/manual
enabled: true
events:
- capabilityId: dtmi:com:example:Thermostat:__temperature;1
eventConfiguration: '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}'
eventNotifier: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3
observabilityMode: none
- capabilityId: dtmi:com:example:Thermostat:__pressure;1
eventConfiguration: '{"publishingInterval":7,"samplingInterval":8,"queueSize":4}'
eventNotifier: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4
observabilityMode: log
extendedLocation:
name: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1
type: CustomLocation
externalAssetId: 8ZBA6LRHU0A458969
hardwareRevision: '1.0'
location: West Europe
manufacturer: Contoso
manufacturerUri: https://www.contoso.com/manufacturerUri
model: ContosoModel
productCode: SA34VDG
resourceGroupName: myResourceGroup
serialNumber: 64-103816-519918-8
softwareRevision: '2.0'
tags:
site: building-1
Create_Asset_Without_ExternalAssetId
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var asset = new AzureNative.DeviceRegistry.Asset("asset", new()
{
AssetEndpointProfileUri = "https://www.example.com/myAssetEndpointProfile",
AssetName = "my-asset",
AssetType = "MyAssetType",
DataPoints = new[]
{
new AzureNative.DeviceRegistry.Inputs.DataPointArgs
{
CapabilityId = "dtmi:com:example:Thermostat:__temperature;1",
DataPointConfiguration = "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
DataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
ObservabilityMode = AzureNative.DeviceRegistry.DataPointsObservabilityMode.Counter,
},
new AzureNative.DeviceRegistry.Inputs.DataPointArgs
{
CapabilityId = "dtmi:com:example:Thermostat:__pressure;1",
DataPointConfiguration = "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
DataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
ObservabilityMode = AzureNative.DeviceRegistry.DataPointsObservabilityMode.None,
},
},
DefaultDataPointsConfiguration = "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
DefaultEventsConfiguration = "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
Description = "This is a sample Asset",
DisplayName = "AssetDisplayName",
DocumentationUri = "https://www.example.com/manual",
Enabled = true,
Events = new[]
{
new AzureNative.DeviceRegistry.Inputs.EventArgs
{
CapabilityId = "dtmi:com:example:Thermostat:__temperature;1",
EventConfiguration = "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
EventNotifier = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
ObservabilityMode = AzureNative.DeviceRegistry.EventsObservabilityMode.None,
},
new AzureNative.DeviceRegistry.Inputs.EventArgs
{
CapabilityId = "dtmi:com:example:Thermostat:__pressure;1",
EventConfiguration = "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
EventNotifier = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
ObservabilityMode = AzureNative.DeviceRegistry.EventsObservabilityMode.Log,
},
},
ExtendedLocation = new AzureNative.DeviceRegistry.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
Type = "CustomLocation",
},
HardwareRevision = "1.0",
Location = "West Europe",
Manufacturer = "Contoso",
ManufacturerUri = "https://www.contoso.com/manufacturerUri",
Model = "ContosoModel",
ProductCode = "SA34VDG",
ResourceGroupName = "myResourceGroup",
SerialNumber = "64-103816-519918-8",
SoftwareRevision = "2.0",
Tags =
{
{ "site", "building-1" },
},
});
});
package main
import (
deviceregistry "github.com/pulumi/pulumi-azure-native-sdk/deviceregistry/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := deviceregistry.NewAsset(ctx, "asset", &deviceregistry.AssetArgs{
AssetEndpointProfileUri: pulumi.String("https://www.example.com/myAssetEndpointProfile"),
AssetName: pulumi.String("my-asset"),
AssetType: pulumi.String("MyAssetType"),
DataPoints: deviceregistry.DataPointArray{
&deviceregistry.DataPointArgs{
CapabilityId: pulumi.String("dtmi:com:example:Thermostat:__temperature;1"),
DataPointConfiguration: pulumi.String("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}"),
DataSource: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1"),
ObservabilityMode: pulumi.String(deviceregistry.DataPointsObservabilityModeCounter),
},
&deviceregistry.DataPointArgs{
CapabilityId: pulumi.String("dtmi:com:example:Thermostat:__pressure;1"),
DataPointConfiguration: pulumi.String("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}"),
DataSource: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2"),
ObservabilityMode: pulumi.String(deviceregistry.DataPointsObservabilityModeNone),
},
},
DefaultDataPointsConfiguration: pulumi.String("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
DefaultEventsConfiguration: pulumi.String("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}"),
Description: pulumi.String("This is a sample Asset"),
DisplayName: pulumi.String("AssetDisplayName"),
DocumentationUri: pulumi.String("https://www.example.com/manual"),
Enabled: pulumi.Bool(true),
Events: deviceregistry.EventArray{
&deviceregistry.EventArgs{
CapabilityId: pulumi.String("dtmi:com:example:Thermostat:__temperature;1"),
EventConfiguration: pulumi.String("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}"),
EventNotifier: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"),
ObservabilityMode: pulumi.String(deviceregistry.EventsObservabilityModeNone),
},
&deviceregistry.EventArgs{
CapabilityId: pulumi.String("dtmi:com:example:Thermostat:__pressure;1"),
EventConfiguration: pulumi.String("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}"),
EventNotifier: pulumi.String("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"),
ObservabilityMode: pulumi.String(deviceregistry.EventsObservabilityModeLog),
},
},
ExtendedLocation: &deviceregistry.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1"),
Type: pulumi.String("CustomLocation"),
},
HardwareRevision: pulumi.String("1.0"),
Location: pulumi.String("West Europe"),
Manufacturer: pulumi.String("Contoso"),
ManufacturerUri: pulumi.String("https://www.contoso.com/manufacturerUri"),
Model: pulumi.String("ContosoModel"),
ProductCode: pulumi.String("SA34VDG"),
ResourceGroupName: pulumi.String("myResourceGroup"),
SerialNumber: pulumi.String("64-103816-519918-8"),
SoftwareRevision: pulumi.String("2.0"),
Tags: pulumi.StringMap{
"site": pulumi.String("building-1"),
},
})
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.deviceregistry.Asset;
import com.pulumi.azurenative.deviceregistry.AssetArgs;
import com.pulumi.azurenative.deviceregistry.inputs.DataPointArgs;
import com.pulumi.azurenative.deviceregistry.inputs.EventArgs;
import com.pulumi.azurenative.deviceregistry.inputs.ExtendedLocationArgs;
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 asset = new Asset("asset", AssetArgs.builder()
.assetEndpointProfileUri("https://www.example.com/myAssetEndpointProfile")
.assetName("my-asset")
.assetType("MyAssetType")
.dataPoints(
DataPointArgs.builder()
.capabilityId("dtmi:com:example:Thermostat:__temperature;1")
.dataPointConfiguration("{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}")
.dataSource("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1")
.observabilityMode("counter")
.build(),
DataPointArgs.builder()
.capabilityId("dtmi:com:example:Thermostat:__pressure;1")
.dataPointConfiguration("{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}")
.dataSource("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2")
.observabilityMode("none")
.build())
.defaultDataPointsConfiguration("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}")
.defaultEventsConfiguration("{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}")
.description("This is a sample Asset")
.displayName("AssetDisplayName")
.documentationUri("https://www.example.com/manual")
.enabled(true)
.events(
EventArgs.builder()
.capabilityId("dtmi:com:example:Thermostat:__temperature;1")
.eventConfiguration("{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}")
.eventNotifier("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3")
.observabilityMode("none")
.build(),
EventArgs.builder()
.capabilityId("dtmi:com:example:Thermostat:__pressure;1")
.eventConfiguration("{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}")
.eventNotifier("nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4")
.observabilityMode("log")
.build())
.extendedLocation(ExtendedLocationArgs.builder()
.name("/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1")
.type("CustomLocation")
.build())
.hardwareRevision("1.0")
.location("West Europe")
.manufacturer("Contoso")
.manufacturerUri("https://www.contoso.com/manufacturerUri")
.model("ContosoModel")
.productCode("SA34VDG")
.resourceGroupName("myResourceGroup")
.serialNumber("64-103816-519918-8")
.softwareRevision("2.0")
.tags(Map.of("site", "building-1"))
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
asset = azure_native.deviceregistry.Asset("asset",
asset_endpoint_profile_uri="https://www.example.com/myAssetEndpointProfile",
asset_name="my-asset",
asset_type="MyAssetType",
data_points=[
{
"capability_id": "dtmi:com:example:Thermostat:__temperature;1",
"data_point_configuration": "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
"data_source": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
"observability_mode": azure_native.deviceregistry.DataPointsObservabilityMode.COUNTER,
},
{
"capability_id": "dtmi:com:example:Thermostat:__pressure;1",
"data_point_configuration": "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
"data_source": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
"observability_mode": azure_native.deviceregistry.DataPointsObservabilityMode.NONE,
},
],
default_data_points_configuration="{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
default_events_configuration="{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
description="This is a sample Asset",
display_name="AssetDisplayName",
documentation_uri="https://www.example.com/manual",
enabled=True,
events=[
{
"capability_id": "dtmi:com:example:Thermostat:__temperature;1",
"event_configuration": "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
"event_notifier": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
"observability_mode": azure_native.deviceregistry.EventsObservabilityMode.NONE,
},
{
"capability_id": "dtmi:com:example:Thermostat:__pressure;1",
"event_configuration": "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
"event_notifier": "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
"observability_mode": azure_native.deviceregistry.EventsObservabilityMode.LOG,
},
],
extended_location={
"name": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
"type": "CustomLocation",
},
hardware_revision="1.0",
location="West Europe",
manufacturer="Contoso",
manufacturer_uri="https://www.contoso.com/manufacturerUri",
model="ContosoModel",
product_code="SA34VDG",
resource_group_name="myResourceGroup",
serial_number="64-103816-519918-8",
software_revision="2.0",
tags={
"site": "building-1",
})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const asset = new azure_native.deviceregistry.Asset("asset", {
assetEndpointProfileUri: "https://www.example.com/myAssetEndpointProfile",
assetName: "my-asset",
assetType: "MyAssetType",
dataPoints: [
{
capabilityId: "dtmi:com:example:Thermostat:__temperature;1",
dataPointConfiguration: "{\"publishingInterval\":8,\"samplingInterval\":8,\"queueSize\":4}",
dataSource: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1",
observabilityMode: azure_native.deviceregistry.DataPointsObservabilityMode.Counter,
},
{
capabilityId: "dtmi:com:example:Thermostat:__pressure;1",
dataPointConfiguration: "{\"publishingInterval\":4,\"samplingInterval\":4,\"queueSize\":7}",
dataSource: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2",
observabilityMode: azure_native.deviceregistry.DataPointsObservabilityMode.None,
},
],
defaultDataPointsConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
defaultEventsConfiguration: "{\"publishingInterval\":10,\"samplingInterval\":15,\"queueSize\":20}",
description: "This is a sample Asset",
displayName: "AssetDisplayName",
documentationUri: "https://www.example.com/manual",
enabled: true,
events: [
{
capabilityId: "dtmi:com:example:Thermostat:__temperature;1",
eventConfiguration: "{\"publishingInterval\":7,\"samplingInterval\":1,\"queueSize\":8}",
eventNotifier: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3",
observabilityMode: azure_native.deviceregistry.EventsObservabilityMode.None,
},
{
capabilityId: "dtmi:com:example:Thermostat:__pressure;1",
eventConfiguration: "{\"publishingInterval\":7,\"samplingInterval\":8,\"queueSize\":4}",
eventNotifier: "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4",
observabilityMode: azure_native.deviceregistry.EventsObservabilityMode.Log,
},
],
extendedLocation: {
name: "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1",
type: "CustomLocation",
},
hardwareRevision: "1.0",
location: "West Europe",
manufacturer: "Contoso",
manufacturerUri: "https://www.contoso.com/manufacturerUri",
model: "ContosoModel",
productCode: "SA34VDG",
resourceGroupName: "myResourceGroup",
serialNumber: "64-103816-519918-8",
softwareRevision: "2.0",
tags: {
site: "building-1",
},
});
resources:
asset:
type: azure-native:deviceregistry:Asset
properties:
assetEndpointProfileUri: https://www.example.com/myAssetEndpointProfile
assetName: my-asset
assetType: MyAssetType
dataPoints:
- capabilityId: dtmi:com:example:Thermostat:__temperature;1
dataPointConfiguration: '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
dataSource: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt1
observabilityMode: counter
- capabilityId: dtmi:com:example:Thermostat:__pressure;1
dataPointConfiguration: '{"publishingInterval":4,"samplingInterval":4,"queueSize":7}'
dataSource: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt2
observabilityMode: none
defaultDataPointsConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
defaultEventsConfiguration: '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
description: This is a sample Asset
displayName: AssetDisplayName
documentationUri: https://www.example.com/manual
enabled: true
events:
- capabilityId: dtmi:com:example:Thermostat:__temperature;1
eventConfiguration: '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}'
eventNotifier: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3
observabilityMode: none
- capabilityId: dtmi:com:example:Thermostat:__pressure;1
eventConfiguration: '{"publishingInterval":7,"samplingInterval":8,"queueSize":4}'
eventNotifier: nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4
observabilityMode: log
extendedLocation:
name: /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/myResourceGroup/providers/microsoft.extendedlocation/customlocations/location1
type: CustomLocation
hardwareRevision: '1.0'
location: West Europe
manufacturer: Contoso
manufacturerUri: https://www.contoso.com/manufacturerUri
model: ContosoModel
productCode: SA34VDG
resourceGroupName: myResourceGroup
serialNumber: 64-103816-519918-8
softwareRevision: '2.0'
tags:
site: building-1
Create Asset Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Asset(name: string, args: AssetArgs, opts?: CustomResourceOptions);
@overload
def Asset(resource_name: str,
args: AssetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Asset(resource_name: str,
opts: Optional[ResourceOptions] = None,
asset_endpoint_profile_uri: Optional[str] = None,
resource_group_name: Optional[str] = None,
extended_location: Optional[ExtendedLocationArgs] = None,
default_events_configuration: Optional[str] = None,
hardware_revision: Optional[str] = None,
default_data_points_configuration: Optional[str] = None,
attributes: Optional[Any] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
documentation_uri: Optional[str] = None,
enabled: Optional[bool] = None,
events: Optional[Sequence[EventArgs]] = None,
asset_type: Optional[str] = None,
external_asset_id: Optional[str] = None,
data_points: Optional[Sequence[DataPointArgs]] = None,
location: Optional[str] = None,
manufacturer: Optional[str] = None,
manufacturer_uri: Optional[str] = None,
model: Optional[str] = None,
product_code: Optional[str] = None,
asset_name: Optional[str] = None,
serial_number: Optional[str] = None,
software_revision: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewAsset(ctx *Context, name string, args AssetArgs, opts ...ResourceOption) (*Asset, error)
public Asset(string name, AssetArgs args, CustomResourceOptions? opts = null)
type: azure-native:deviceregistry:Asset
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 AssetArgs
- 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 AssetArgs
- 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 AssetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AssetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AssetArgs
- 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 assetResource = new AzureNative.DeviceRegistry.Asset("assetResource", new()
{
AssetEndpointProfileUri = "string",
ResourceGroupName = "string",
ExtendedLocation = new AzureNative.DeviceRegistry.Inputs.ExtendedLocationArgs
{
Name = "string",
Type = "string",
},
DefaultEventsConfiguration = "string",
HardwareRevision = "string",
DefaultDataPointsConfiguration = "string",
Attributes = "any",
Description = "string",
DisplayName = "string",
DocumentationUri = "string",
Enabled = false,
Events = new[]
{
new AzureNative.DeviceRegistry.Inputs.EventArgs
{
EventNotifier = "string",
CapabilityId = "string",
EventConfiguration = "string",
Name = "string",
ObservabilityMode = "string",
},
},
AssetType = "string",
ExternalAssetId = "string",
DataPoints = new[]
{
new AzureNative.DeviceRegistry.Inputs.DataPointArgs
{
DataSource = "string",
CapabilityId = "string",
DataPointConfiguration = "string",
Name = "string",
ObservabilityMode = "string",
},
},
Location = "string",
Manufacturer = "string",
ManufacturerUri = "string",
Model = "string",
ProductCode = "string",
AssetName = "string",
SerialNumber = "string",
SoftwareRevision = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := deviceregistry.NewAsset(ctx, "assetResource", &deviceregistry.AssetArgs{
AssetEndpointProfileUri: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ExtendedLocation: &deviceregistry.ExtendedLocationArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
},
DefaultEventsConfiguration: pulumi.String("string"),
HardwareRevision: pulumi.String("string"),
DefaultDataPointsConfiguration: pulumi.String("string"),
Attributes: pulumi.Any("any"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
DocumentationUri: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Events: deviceregistry.EventArray{
&deviceregistry.EventArgs{
EventNotifier: pulumi.String("string"),
CapabilityId: pulumi.String("string"),
EventConfiguration: pulumi.String("string"),
Name: pulumi.String("string"),
ObservabilityMode: pulumi.String("string"),
},
},
AssetType: pulumi.String("string"),
ExternalAssetId: pulumi.String("string"),
DataPoints: deviceregistry.DataPointArray{
&deviceregistry.DataPointArgs{
DataSource: pulumi.String("string"),
CapabilityId: pulumi.String("string"),
DataPointConfiguration: pulumi.String("string"),
Name: pulumi.String("string"),
ObservabilityMode: pulumi.String("string"),
},
},
Location: pulumi.String("string"),
Manufacturer: pulumi.String("string"),
ManufacturerUri: pulumi.String("string"),
Model: pulumi.String("string"),
ProductCode: pulumi.String("string"),
AssetName: pulumi.String("string"),
SerialNumber: pulumi.String("string"),
SoftwareRevision: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var assetResource = new Asset("assetResource", AssetArgs.builder()
.assetEndpointProfileUri("string")
.resourceGroupName("string")
.extendedLocation(ExtendedLocationArgs.builder()
.name("string")
.type("string")
.build())
.defaultEventsConfiguration("string")
.hardwareRevision("string")
.defaultDataPointsConfiguration("string")
.attributes("any")
.description("string")
.displayName("string")
.documentationUri("string")
.enabled(false)
.events(EventArgs.builder()
.eventNotifier("string")
.capabilityId("string")
.eventConfiguration("string")
.name("string")
.observabilityMode("string")
.build())
.assetType("string")
.externalAssetId("string")
.dataPoints(DataPointArgs.builder()
.dataSource("string")
.capabilityId("string")
.dataPointConfiguration("string")
.name("string")
.observabilityMode("string")
.build())
.location("string")
.manufacturer("string")
.manufacturerUri("string")
.model("string")
.productCode("string")
.assetName("string")
.serialNumber("string")
.softwareRevision("string")
.tags(Map.of("string", "string"))
.build());
asset_resource = azure_native.deviceregistry.Asset("assetResource",
asset_endpoint_profile_uri="string",
resource_group_name="string",
extended_location={
"name": "string",
"type": "string",
},
default_events_configuration="string",
hardware_revision="string",
default_data_points_configuration="string",
attributes="any",
description="string",
display_name="string",
documentation_uri="string",
enabled=False,
events=[{
"event_notifier": "string",
"capability_id": "string",
"event_configuration": "string",
"name": "string",
"observability_mode": "string",
}],
asset_type="string",
external_asset_id="string",
data_points=[{
"data_source": "string",
"capability_id": "string",
"data_point_configuration": "string",
"name": "string",
"observability_mode": "string",
}],
location="string",
manufacturer="string",
manufacturer_uri="string",
model="string",
product_code="string",
asset_name="string",
serial_number="string",
software_revision="string",
tags={
"string": "string",
})
const assetResource = new azure_native.deviceregistry.Asset("assetResource", {
assetEndpointProfileUri: "string",
resourceGroupName: "string",
extendedLocation: {
name: "string",
type: "string",
},
defaultEventsConfiguration: "string",
hardwareRevision: "string",
defaultDataPointsConfiguration: "string",
attributes: "any",
description: "string",
displayName: "string",
documentationUri: "string",
enabled: false,
events: [{
eventNotifier: "string",
capabilityId: "string",
eventConfiguration: "string",
name: "string",
observabilityMode: "string",
}],
assetType: "string",
externalAssetId: "string",
dataPoints: [{
dataSource: "string",
capabilityId: "string",
dataPointConfiguration: "string",
name: "string",
observabilityMode: "string",
}],
location: "string",
manufacturer: "string",
manufacturerUri: "string",
model: "string",
productCode: "string",
assetName: "string",
serialNumber: "string",
softwareRevision: "string",
tags: {
string: "string",
},
});
type: azure-native:deviceregistry:Asset
properties:
assetEndpointProfileUri: string
assetName: string
assetType: string
attributes: any
dataPoints:
- capabilityId: string
dataPointConfiguration: string
dataSource: string
name: string
observabilityMode: string
defaultDataPointsConfiguration: string
defaultEventsConfiguration: string
description: string
displayName: string
documentationUri: string
enabled: false
events:
- capabilityId: string
eventConfiguration: string
eventNotifier: string
name: string
observabilityMode: string
extendedLocation:
name: string
type: string
externalAssetId: string
hardwareRevision: string
location: string
manufacturer: string
manufacturerUri: string
model: string
productCode: string
resourceGroupName: string
serialNumber: string
softwareRevision: string
tags:
string: string
Asset 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 Asset resource accepts the following input properties:
- Asset
Endpoint stringProfile Uri - A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must have the format <ModuleCR.metadata.namespace>/<ModuleCR.metadata.name>.
- Extended
Location Pulumi.Azure Native. Device Registry. Inputs. Extended Location - The extended location.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Asset
Name string - Asset name parameter.
- Asset
Type string - Resource path to asset type (model) definition.
- Attributes object
- A set of key-value pairs that contain custom attributes set by the customer.
- Data
Points List<Pulumi.Azure Native. Device Registry. Inputs. Data Point> - Array of data points that are part of the asset. Each data point can reference an asset type capability and have per-data point configuration.
- Default
Data stringPoints Configuration - Stringified JSON that contains protocol-specific default configuration for all data points. Each data point can have its own configuration that overrides the default settings here.
- Default
Events stringConfiguration - Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
- Description string
- Human-readable description of the asset.
- Display
Name string - Human-readable display name.
- Documentation
Uri string - Reference to the documentation.
- Enabled bool
- Enabled/Disabled status of the asset.
- Events
List<Pulumi.
Azure Native. Device Registry. Inputs. Event> - Array of events that are part of the asset. Each event can have per-event configuration.
- External
Asset stringId - Asset id provided by the customer.
- Hardware
Revision string - Revision number of the hardware.
- Location string
- The geo-location where the resource lives
- Manufacturer string
- Asset manufacturer name.
- Manufacturer
Uri string - Asset manufacturer URI.
- Model string
- Asset model name.
- Product
Code string - Asset product code.
- Serial
Number string - Asset serial number.
- Software
Revision string - Revision number of the software.
- Dictionary<string, string>
- Resource tags.
- Asset
Endpoint stringProfile Uri - A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must have the format <ModuleCR.metadata.namespace>/<ModuleCR.metadata.name>.
- Extended
Location ExtendedLocation Args - The extended location.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Asset
Name string - Asset name parameter.
- Asset
Type string - Resource path to asset type (model) definition.
- Attributes interface{}
- A set of key-value pairs that contain custom attributes set by the customer.
- Data
Points []DataPoint Args - Array of data points that are part of the asset. Each data point can reference an asset type capability and have per-data point configuration.
- Default
Data stringPoints Configuration - Stringified JSON that contains protocol-specific default configuration for all data points. Each data point can have its own configuration that overrides the default settings here.
- Default
Events stringConfiguration - Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
- Description string
- Human-readable description of the asset.
- Display
Name string - Human-readable display name.
- Documentation
Uri string - Reference to the documentation.
- Enabled bool
- Enabled/Disabled status of the asset.
- Events
[]Event
Args - Array of events that are part of the asset. Each event can have per-event configuration.
- External
Asset stringId - Asset id provided by the customer.
- Hardware
Revision string - Revision number of the hardware.
- Location string
- The geo-location where the resource lives
- Manufacturer string
- Asset manufacturer name.
- Manufacturer
Uri string - Asset manufacturer URI.
- Model string
- Asset model name.
- Product
Code string - Asset product code.
- Serial
Number string - Asset serial number.
- Software
Revision string - Revision number of the software.
- map[string]string
- Resource tags.
- asset
Endpoint StringProfile Uri - A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must have the format <ModuleCR.metadata.namespace>/<ModuleCR.metadata.name>.
- extended
Location ExtendedLocation - The extended location.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- asset
Name String - Asset name parameter.
- asset
Type String - Resource path to asset type (model) definition.
- attributes Object
- A set of key-value pairs that contain custom attributes set by the customer.
- data
Points List<DataPoint> - Array of data points that are part of the asset. Each data point can reference an asset type capability and have per-data point configuration.
- default
Data StringPoints Configuration - Stringified JSON that contains protocol-specific default configuration for all data points. Each data point can have its own configuration that overrides the default settings here.
- default
Events StringConfiguration - Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
- description String
- Human-readable description of the asset.
- display
Name String - Human-readable display name.
- documentation
Uri String - Reference to the documentation.
- enabled Boolean
- Enabled/Disabled status of the asset.
- events List<Event>
- Array of events that are part of the asset. Each event can have per-event configuration.
- external
Asset StringId - Asset id provided by the customer.
- hardware
Revision String - Revision number of the hardware.
- location String
- The geo-location where the resource lives
- manufacturer String
- Asset manufacturer name.
- manufacturer
Uri String - Asset manufacturer URI.
- model String
- Asset model name.
- product
Code String - Asset product code.
- serial
Number String - Asset serial number.
- software
Revision String - Revision number of the software.
- Map<String,String>
- Resource tags.
- asset
Endpoint stringProfile Uri - A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must have the format <ModuleCR.metadata.namespace>/<ModuleCR.metadata.name>.
- extended
Location ExtendedLocation - The extended location.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- asset
Name string - Asset name parameter.
- asset
Type string - Resource path to asset type (model) definition.
- attributes any
- A set of key-value pairs that contain custom attributes set by the customer.
- data
Points DataPoint[] - Array of data points that are part of the asset. Each data point can reference an asset type capability and have per-data point configuration.
- default
Data stringPoints Configuration - Stringified JSON that contains protocol-specific default configuration for all data points. Each data point can have its own configuration that overrides the default settings here.
- default
Events stringConfiguration - Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
- description string
- Human-readable description of the asset.
- display
Name string - Human-readable display name.
- documentation
Uri string - Reference to the documentation.
- enabled boolean
- Enabled/Disabled status of the asset.
- events Event[]
- Array of events that are part of the asset. Each event can have per-event configuration.
- external
Asset stringId - Asset id provided by the customer.
- hardware
Revision string - Revision number of the hardware.
- location string
- The geo-location where the resource lives
- manufacturer string
- Asset manufacturer name.
- manufacturer
Uri string - Asset manufacturer URI.
- model string
- Asset model name.
- product
Code string - Asset product code.
- serial
Number string - Asset serial number.
- software
Revision string - Revision number of the software.
- {[key: string]: string}
- Resource tags.
- asset_
endpoint_ strprofile_ uri - A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must have the format <ModuleCR.metadata.namespace>/<ModuleCR.metadata.name>.
- extended_
location ExtendedLocation Args - The extended location.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- asset_
name str - Asset name parameter.
- asset_
type str - Resource path to asset type (model) definition.
- attributes Any
- A set of key-value pairs that contain custom attributes set by the customer.
- data_
points Sequence[DataPoint Args] - Array of data points that are part of the asset. Each data point can reference an asset type capability and have per-data point configuration.
- default_
data_ strpoints_ configuration - Stringified JSON that contains protocol-specific default configuration for all data points. Each data point can have its own configuration that overrides the default settings here.
- default_
events_ strconfiguration - Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
- description str
- Human-readable description of the asset.
- display_
name str - Human-readable display name.
- documentation_
uri str - Reference to the documentation.
- enabled bool
- Enabled/Disabled status of the asset.
- events
Sequence[Event
Args] - Array of events that are part of the asset. Each event can have per-event configuration.
- external_
asset_ strid - Asset id provided by the customer.
- hardware_
revision str - Revision number of the hardware.
- location str
- The geo-location where the resource lives
- manufacturer str
- Asset manufacturer name.
- manufacturer_
uri str - Asset manufacturer URI.
- model str
- Asset model name.
- product_
code str - Asset product code.
- serial_
number str - Asset serial number.
- software_
revision str - Revision number of the software.
- Mapping[str, str]
- Resource tags.
- asset
Endpoint StringProfile Uri - A reference to the asset endpoint profile (connection information) used by brokers to connect to an endpoint that provides data points for this asset. Must have the format <ModuleCR.metadata.namespace>/<ModuleCR.metadata.name>.
- extended
Location Property Map - The extended location.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- asset
Name String - Asset name parameter.
- asset
Type String - Resource path to asset type (model) definition.
- attributes Any
- A set of key-value pairs that contain custom attributes set by the customer.
- data
Points List<Property Map> - Array of data points that are part of the asset. Each data point can reference an asset type capability and have per-data point configuration.
- default
Data StringPoints Configuration - Stringified JSON that contains protocol-specific default configuration for all data points. Each data point can have its own configuration that overrides the default settings here.
- default
Events StringConfiguration - Stringified JSON that contains connector-specific default configuration for all events. Each event can have its own configuration that overrides the default settings here.
- description String
- Human-readable description of the asset.
- display
Name String - Human-readable display name.
- documentation
Uri String - Reference to the documentation.
- enabled Boolean
- Enabled/Disabled status of the asset.
- events List<Property Map>
- Array of events that are part of the asset. Each event can have per-event configuration.
- external
Asset StringId - Asset id provided by the customer.
- hardware
Revision String - Revision number of the hardware.
- location String
- The geo-location where the resource lives
- manufacturer String
- Asset manufacturer name.
- manufacturer
Uri String - Asset manufacturer URI.
- model String
- Asset model name.
- product
Code String - Asset product code.
- serial
Number String - Asset serial number.
- software
Revision String - Revision number of the software.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Asset resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Provisioning state of the resource.
- Status
Pulumi.
Azure Native. Device Registry. Outputs. Asset Status Response - Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
- System
Data Pulumi.Azure Native. Device Registry. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Uuid string
- Globally unique, immutable, non-reusable id.
- Version int
- An integer that is incremented each time the resource is modified.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - Provisioning state of the resource.
- Status
Asset
Status Response - Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Uuid string
- Globally unique, immutable, non-reusable id.
- Version int
- An integer that is incremented each time the resource is modified.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Provisioning state of the resource.
- status
Asset
Status Response - Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- uuid String
- Globally unique, immutable, non-reusable id.
- version Integer
- An integer that is incremented each time the resource is modified.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - Provisioning state of the resource.
- status
Asset
Status Response - Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- uuid string
- Globally unique, immutable, non-reusable id.
- version number
- An integer that is incremented each time the resource is modified.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- provisioning_
state str - Provisioning state of the resource.
- status
Asset
Status Response - Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- uuid str
- Globally unique, immutable, non-reusable id.
- version int
- An integer that is incremented each time the resource is modified.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - Provisioning state of the resource.
- status Property Map
- Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- uuid String
- Globally unique, immutable, non-reusable id.
- version Number
- An integer that is incremented each time the resource is modified.
Supporting Types
AssetStatusErrorResponse, AssetStatusErrorResponseArgs
AssetStatusResponse, AssetStatusResponseArgs
- Errors
List<Pulumi.
Azure Native. Device Registry. Inputs. Asset Status Error Response> - Array object to transfer and persist errors that originate from the Edge.
- Version int
- A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.
- Errors
[]Asset
Status Error Response - Array object to transfer and persist errors that originate from the Edge.
- Version int
- A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.
- errors
List<Asset
Status Error Response> - Array object to transfer and persist errors that originate from the Edge.
- version Integer
- A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.
- errors
Asset
Status Error Response[] - Array object to transfer and persist errors that originate from the Edge.
- version number
- A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.
- errors
Sequence[Asset
Status Error Response] - Array object to transfer and persist errors that originate from the Edge.
- version int
- A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.
- errors List<Property Map>
- Array object to transfer and persist errors that originate from the Edge.
- version Number
- A read only incremental counter indicating the number of times the configuration has been modified from the perspective of the current actual (Edge) state of the Asset. Edge would be the only writer of this value and would sync back up to the cloud. In steady state, this should equal version.
DataPoint, DataPointArgs
- Data
Source string - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- Capability
Id string - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- Data
Point stringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- Name string
- The name of the data point.
- Observability
Mode string | Pulumi.Azure Native. Device Registry. Data Points Observability Mode - An indication of how the data point should be mapped to OpenTelemetry.
- Data
Source string - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- Capability
Id string - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- Data
Point stringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- Name string
- The name of the data point.
- Observability
Mode string | DataPoints Observability Mode - An indication of how the data point should be mapped to OpenTelemetry.
- data
Source String - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- capability
Id String - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- data
Point StringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- name String
- The name of the data point.
- observability
Mode String | DataPoints Observability Mode - An indication of how the data point should be mapped to OpenTelemetry.
- data
Source string - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- capability
Id string - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- data
Point stringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- name string
- The name of the data point.
- observability
Mode string | DataPoints Observability Mode - An indication of how the data point should be mapped to OpenTelemetry.
- data_
source str - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- capability_
id str - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- data_
point_ strconfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- name str
- The name of the data point.
- observability_
mode str | DataPoints Observability Mode - An indication of how the data point should be mapped to OpenTelemetry.
- data
Source String - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- capability
Id String - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- data
Point StringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- name String
- The name of the data point.
- observability
Mode String | "none" | "counter" | "gauge" | "histogram" | "log" - An indication of how the data point should be mapped to OpenTelemetry.
DataPointResponse, DataPointResponseArgs
- Data
Source string - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- Capability
Id string - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- Data
Point stringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- Name string
- The name of the data point.
- Observability
Mode string - An indication of how the data point should be mapped to OpenTelemetry.
- Data
Source string - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- Capability
Id string - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- Data
Point stringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- Name string
- The name of the data point.
- Observability
Mode string - An indication of how the data point should be mapped to OpenTelemetry.
- data
Source String - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- capability
Id String - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- data
Point StringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- name String
- The name of the data point.
- observability
Mode String - An indication of how the data point should be mapped to OpenTelemetry.
- data
Source string - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- capability
Id string - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- data
Point stringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- name string
- The name of the data point.
- observability
Mode string - An indication of how the data point should be mapped to OpenTelemetry.
- data_
source str - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- capability_
id str - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- data_
point_ strconfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- name str
- The name of the data point.
- observability_
mode str - An indication of how the data point should be mapped to OpenTelemetry.
- data
Source String - The address of the source of the data in the asset (e.g. URL) so that a client can access the data source on the asset.
- capability
Id String - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- data
Point StringConfiguration - Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- name String
- The name of the data point.
- observability
Mode String - An indication of how the data point should be mapped to OpenTelemetry.
DataPointsObservabilityMode, DataPointsObservabilityModeArgs
- None
- noneNo mapping to OpenTelemetry.
- Counter
- counterMap as counter to OpenTelemetry.
- Gauge
- gaugeMap as gauge to OpenTelemetry.
- Histogram
- histogramMap as histogram to OpenTelemetry.
- Log
- logMap as log to OpenTelemetry.
- Data
Points Observability Mode None - noneNo mapping to OpenTelemetry.
- Data
Points Observability Mode Counter - counterMap as counter to OpenTelemetry.
- Data
Points Observability Mode Gauge - gaugeMap as gauge to OpenTelemetry.
- Data
Points Observability Mode Histogram - histogramMap as histogram to OpenTelemetry.
- Data
Points Observability Mode Log - logMap as log to OpenTelemetry.
- None
- noneNo mapping to OpenTelemetry.
- Counter
- counterMap as counter to OpenTelemetry.
- Gauge
- gaugeMap as gauge to OpenTelemetry.
- Histogram
- histogramMap as histogram to OpenTelemetry.
- Log
- logMap as log to OpenTelemetry.
- None
- noneNo mapping to OpenTelemetry.
- Counter
- counterMap as counter to OpenTelemetry.
- Gauge
- gaugeMap as gauge to OpenTelemetry.
- Histogram
- histogramMap as histogram to OpenTelemetry.
- Log
- logMap as log to OpenTelemetry.
- NONE
- noneNo mapping to OpenTelemetry.
- COUNTER
- counterMap as counter to OpenTelemetry.
- GAUGE
- gaugeMap as gauge to OpenTelemetry.
- HISTOGRAM
- histogramMap as histogram to OpenTelemetry.
- LOG
- logMap as log to OpenTelemetry.
- "none"
- noneNo mapping to OpenTelemetry.
- "counter"
- counterMap as counter to OpenTelemetry.
- "gauge"
- gaugeMap as gauge to OpenTelemetry.
- "histogram"
- histogramMap as histogram to OpenTelemetry.
- "log"
- logMap as log to OpenTelemetry.
Event, EventArgs
- Event
Notifier string - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- Capability
Id string - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- Event
Configuration string - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- Name string
- The name of the event.
- Observability
Mode string | Pulumi.Azure Native. Device Registry. Events Observability Mode - An indication of how the event should be mapped to OpenTelemetry.
- Event
Notifier string - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- Capability
Id string - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- Event
Configuration string - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- Name string
- The name of the event.
- Observability
Mode string | EventsObservability Mode - An indication of how the event should be mapped to OpenTelemetry.
- event
Notifier String - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- capability
Id String - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- event
Configuration String - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- name String
- The name of the event.
- observability
Mode String | EventsObservability Mode - An indication of how the event should be mapped to OpenTelemetry.
- event
Notifier string - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- capability
Id string - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- event
Configuration string - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- name string
- The name of the event.
- observability
Mode string | EventsObservability Mode - An indication of how the event should be mapped to OpenTelemetry.
- event_
notifier str - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- capability_
id str - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- event_
configuration str - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- name str
- The name of the event.
- observability_
mode str | EventsObservability Mode - An indication of how the event should be mapped to OpenTelemetry.
- event
Notifier String - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- capability
Id String - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- event
Configuration String - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- name String
- The name of the event.
- observability
Mode String | "none" | "log" - An indication of how the event should be mapped to OpenTelemetry.
EventResponse, EventResponseArgs
- Event
Notifier string - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- Capability
Id string - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- Event
Configuration string - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- Name string
- The name of the event.
- Observability
Mode string - An indication of how the event should be mapped to OpenTelemetry.
- Event
Notifier string - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- Capability
Id string - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- Event
Configuration string - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- Name string
- The name of the event.
- Observability
Mode string - An indication of how the event should be mapped to OpenTelemetry.
- event
Notifier String - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- capability
Id String - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- event
Configuration String - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- name String
- The name of the event.
- observability
Mode String - An indication of how the event should be mapped to OpenTelemetry.
- event
Notifier string - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- capability
Id string - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- event
Configuration string - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- name string
- The name of the event.
- observability
Mode string - An indication of how the event should be mapped to OpenTelemetry.
- event_
notifier str - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- capability_
id str - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- event_
configuration str - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- name str
- The name of the event.
- observability_
mode str - An indication of how the event should be mapped to OpenTelemetry.
- event
Notifier String - The address of the notifier of the event in the asset (e.g. URL) so that a client can access the event on the asset.
- capability
Id String - The path to the type definition of the capability (e.g. DTMI, OPC UA information model node id, etc.), for example dtmi:com:example:Robot:_contents:__prop1;1.
- event
Configuration String - Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- name String
- The name of the event.
- observability
Mode String - An indication of how the event should be mapped to OpenTelemetry.
EventsObservabilityMode, EventsObservabilityModeArgs
- None
- noneNo mapping to OpenTelemetry.
- Log
- logMap as log to OpenTelemetry.
- Events
Observability Mode None - noneNo mapping to OpenTelemetry.
- Events
Observability Mode Log - logMap as log to OpenTelemetry.
- None
- noneNo mapping to OpenTelemetry.
- Log
- logMap as log to OpenTelemetry.
- None
- noneNo mapping to OpenTelemetry.
- Log
- logMap as log to OpenTelemetry.
- NONE
- noneNo mapping to OpenTelemetry.
- LOG
- logMap as log to OpenTelemetry.
- "none"
- noneNo mapping to OpenTelemetry.
- "log"
- logMap as log to OpenTelemetry.
ExtendedLocation, ExtendedLocationArgs
ExtendedLocationResponse, ExtendedLocationResponseArgs
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:deviceregistry:Asset my-asset /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceRegistry/assets/{assetName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0