1. Packages
  2. Azure Native
  3. API Docs
  4. deviceregistry
  5. Asset
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.deviceregistry.Asset

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    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)
    public Asset(String name, AssetArgs args)
    public Asset(String name, AssetArgs args, CustomResourceOptions options)
    
    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:

    AssetEndpointProfileUri string
    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>.
    ExtendedLocation Pulumi.AzureNative.DeviceRegistry.Inputs.ExtendedLocation
    The extended location.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    AssetName string
    Asset name parameter.
    AssetType string
    Resource path to asset type (model) definition.
    Attributes object
    A set of key-value pairs that contain custom attributes set by the customer.
    DataPoints List<Pulumi.AzureNative.DeviceRegistry.Inputs.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.
    DefaultDataPointsConfiguration string
    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.
    DefaultEventsConfiguration string
    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.
    DisplayName string
    Human-readable display name.
    DocumentationUri string
    Reference to the documentation.
    Enabled bool
    Enabled/Disabled status of the asset.
    Events List<Pulumi.AzureNative.DeviceRegistry.Inputs.Event>
    Array of events that are part of the asset. Each event can have per-event configuration.
    ExternalAssetId string
    Asset id provided by the customer.
    HardwareRevision string
    Revision number of the hardware.
    Location string
    The geo-location where the resource lives
    Manufacturer string
    Asset manufacturer name.
    ManufacturerUri string
    Asset manufacturer URI.
    Model string
    Asset model name.
    ProductCode string
    Asset product code.
    SerialNumber string
    Asset serial number.
    SoftwareRevision string
    Revision number of the software.
    Tags Dictionary<string, string>
    Resource tags.
    AssetEndpointProfileUri string
    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>.
    ExtendedLocation ExtendedLocationArgs
    The extended location.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    AssetName string
    Asset name parameter.
    AssetType string
    Resource path to asset type (model) definition.
    Attributes interface{}
    A set of key-value pairs that contain custom attributes set by the customer.
    DataPoints []DataPointArgs
    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.
    DefaultDataPointsConfiguration string
    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.
    DefaultEventsConfiguration string
    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.
    DisplayName string
    Human-readable display name.
    DocumentationUri string
    Reference to the documentation.
    Enabled bool
    Enabled/Disabled status of the asset.
    Events []EventArgs
    Array of events that are part of the asset. Each event can have per-event configuration.
    ExternalAssetId string
    Asset id provided by the customer.
    HardwareRevision string
    Revision number of the hardware.
    Location string
    The geo-location where the resource lives
    Manufacturer string
    Asset manufacturer name.
    ManufacturerUri string
    Asset manufacturer URI.
    Model string
    Asset model name.
    ProductCode string
    Asset product code.
    SerialNumber string
    Asset serial number.
    SoftwareRevision string
    Revision number of the software.
    Tags map[string]string
    Resource tags.
    assetEndpointProfileUri String
    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>.
    extendedLocation ExtendedLocation
    The extended location.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    assetName String
    Asset name parameter.
    assetType String
    Resource path to asset type (model) definition.
    attributes Object
    A set of key-value pairs that contain custom attributes set by the customer.
    dataPoints 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.
    defaultDataPointsConfiguration String
    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.
    defaultEventsConfiguration String
    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.
    displayName String
    Human-readable display name.
    documentationUri 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.
    externalAssetId String
    Asset id provided by the customer.
    hardwareRevision String
    Revision number of the hardware.
    location String
    The geo-location where the resource lives
    manufacturer String
    Asset manufacturer name.
    manufacturerUri String
    Asset manufacturer URI.
    model String
    Asset model name.
    productCode String
    Asset product code.
    serialNumber String
    Asset serial number.
    softwareRevision String
    Revision number of the software.
    tags Map<String,String>
    Resource tags.
    assetEndpointProfileUri string
    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>.
    extendedLocation ExtendedLocation
    The extended location.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    assetName string
    Asset name parameter.
    assetType string
    Resource path to asset type (model) definition.
    attributes any
    A set of key-value pairs that contain custom attributes set by the customer.
    dataPoints 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.
    defaultDataPointsConfiguration string
    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.
    defaultEventsConfiguration string
    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.
    displayName string
    Human-readable display name.
    documentationUri 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.
    externalAssetId string
    Asset id provided by the customer.
    hardwareRevision string
    Revision number of the hardware.
    location string
    The geo-location where the resource lives
    manufacturer string
    Asset manufacturer name.
    manufacturerUri string
    Asset manufacturer URI.
    model string
    Asset model name.
    productCode string
    Asset product code.
    serialNumber string
    Asset serial number.
    softwareRevision string
    Revision number of the software.
    tags {[key: string]: string}
    Resource tags.
    asset_endpoint_profile_uri str
    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 ExtendedLocationArgs
    The extended location.
    resource_group_name str
    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[DataPointArgs]
    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_points_configuration str
    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_configuration str
    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[EventArgs]
    Array of events that are part of the asset. Each event can have per-event configuration.
    external_asset_id str
    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.
    tags Mapping[str, str]
    Resource tags.
    assetEndpointProfileUri String
    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>.
    extendedLocation Property Map
    The extended location.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    assetName String
    Asset name parameter.
    assetType String
    Resource path to asset type (model) definition.
    attributes Any
    A set of key-value pairs that contain custom attributes set by the customer.
    dataPoints 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.
    defaultDataPointsConfiguration String
    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.
    defaultEventsConfiguration String
    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.
    displayName String
    Human-readable display name.
    documentationUri 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.
    externalAssetId String
    Asset id provided by the customer.
    hardwareRevision String
    Revision number of the hardware.
    location String
    The geo-location where the resource lives
    manufacturer String
    Asset manufacturer name.
    manufacturerUri String
    Asset manufacturer URI.
    model String
    Asset model name.
    productCode String
    Asset product code.
    serialNumber String
    Asset serial number.
    softwareRevision String
    Revision number of the software.
    tags 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
    ProvisioningState string
    Provisioning state of the resource.
    Status Pulumi.AzureNative.DeviceRegistry.Outputs.AssetStatusResponse
    Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
    SystemData Pulumi.AzureNative.DeviceRegistry.Outputs.SystemDataResponse
    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
    ProvisioningState string
    Provisioning state of the resource.
    Status AssetStatusResponse
    Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
    SystemData SystemDataResponse
    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
    provisioningState String
    Provisioning state of the resource.
    status AssetStatusResponse
    Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
    systemData SystemDataResponse
    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
    provisioningState string
    Provisioning state of the resource.
    status AssetStatusResponse
    Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
    systemData SystemDataResponse
    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 AssetStatusResponse
    Read only object to reflect changes that have occurred on the Edge. Similar to Kubernetes status property for custom resources.
    system_data SystemDataResponse
    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
    provisioningState 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.
    systemData 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

    Code int
    Error code for classification of errors (ex: 400, 404, 500, etc.).
    Message string
    Human readable helpful error message to provide additional context for error (ex: “capability Id 'foo' does not exist”).
    Code int
    Error code for classification of errors (ex: 400, 404, 500, etc.).
    Message string
    Human readable helpful error message to provide additional context for error (ex: “capability Id 'foo' does not exist”).
    code Integer
    Error code for classification of errors (ex: 400, 404, 500, etc.).
    message String
    Human readable helpful error message to provide additional context for error (ex: “capability Id 'foo' does not exist”).
    code number
    Error code for classification of errors (ex: 400, 404, 500, etc.).
    message string
    Human readable helpful error message to provide additional context for error (ex: “capability Id 'foo' does not exist”).
    code int
    Error code for classification of errors (ex: 400, 404, 500, etc.).
    message str
    Human readable helpful error message to provide additional context for error (ex: “capability Id 'foo' does not exist”).
    code Number
    Error code for classification of errors (ex: 400, 404, 500, etc.).
    message String
    Human readable helpful error message to provide additional context for error (ex: “capability Id 'foo' does not exist”).

    AssetStatusResponse, AssetStatusResponseArgs

    Errors List<Pulumi.AzureNative.DeviceRegistry.Inputs.AssetStatusErrorResponse>
    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 []AssetStatusErrorResponse
    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<AssetStatusErrorResponse>
    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 AssetStatusErrorResponse[]
    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[AssetStatusErrorResponse]
    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

    DataSource 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.
    CapabilityId 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.
    DataPointConfiguration string
    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.
    ObservabilityMode string | Pulumi.AzureNative.DeviceRegistry.DataPointsObservabilityMode
    An indication of how the data point should be mapped to OpenTelemetry.
    DataSource 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.
    CapabilityId 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.
    DataPointConfiguration string
    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.
    ObservabilityMode string | DataPointsObservabilityMode
    An indication of how the data point should be mapped to OpenTelemetry.
    dataSource 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.
    capabilityId 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.
    dataPointConfiguration String
    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.
    observabilityMode String | DataPointsObservabilityMode
    An indication of how the data point should be mapped to OpenTelemetry.
    dataSource 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.
    capabilityId 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.
    dataPointConfiguration string
    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.
    observabilityMode string | DataPointsObservabilityMode
    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_configuration str
    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 | DataPointsObservabilityMode
    An indication of how the data point should be mapped to OpenTelemetry.
    dataSource 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.
    capabilityId 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.
    dataPointConfiguration String
    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.
    observabilityMode String | "none" | "counter" | "gauge" | "histogram" | "log"
    An indication of how the data point should be mapped to OpenTelemetry.

    DataPointResponse, DataPointResponseArgs

    DataSource 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.
    CapabilityId 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.
    DataPointConfiguration string
    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.
    ObservabilityMode string
    An indication of how the data point should be mapped to OpenTelemetry.
    DataSource 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.
    CapabilityId 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.
    DataPointConfiguration string
    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.
    ObservabilityMode string
    An indication of how the data point should be mapped to OpenTelemetry.
    dataSource 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.
    capabilityId 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.
    dataPointConfiguration String
    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.
    observabilityMode String
    An indication of how the data point should be mapped to OpenTelemetry.
    dataSource 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.
    capabilityId 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.
    dataPointConfiguration string
    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.
    observabilityMode 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_configuration str
    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.
    dataSource 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.
    capabilityId 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.
    dataPointConfiguration String
    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.
    observabilityMode 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.
    DataPointsObservabilityModeNone
    noneNo mapping to OpenTelemetry.
    DataPointsObservabilityModeCounter
    counterMap as counter to OpenTelemetry.
    DataPointsObservabilityModeGauge
    gaugeMap as gauge to OpenTelemetry.
    DataPointsObservabilityModeHistogram
    histogramMap as histogram to OpenTelemetry.
    DataPointsObservabilityModeLog
    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

    EventNotifier 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.
    CapabilityId 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.
    EventConfiguration 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.
    ObservabilityMode string | Pulumi.AzureNative.DeviceRegistry.EventsObservabilityMode
    An indication of how the event should be mapped to OpenTelemetry.
    EventNotifier 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.
    CapabilityId 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.
    EventConfiguration 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.
    ObservabilityMode string | EventsObservabilityMode
    An indication of how the event should be mapped to OpenTelemetry.
    eventNotifier 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.
    capabilityId 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.
    eventConfiguration 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.
    observabilityMode String | EventsObservabilityMode
    An indication of how the event should be mapped to OpenTelemetry.
    eventNotifier 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.
    capabilityId 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.
    eventConfiguration 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.
    observabilityMode string | EventsObservabilityMode
    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 | EventsObservabilityMode
    An indication of how the event should be mapped to OpenTelemetry.
    eventNotifier 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.
    capabilityId 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.
    eventConfiguration 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.
    observabilityMode String | "none" | "log"
    An indication of how the event should be mapped to OpenTelemetry.

    EventResponse, EventResponseArgs

    EventNotifier 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.
    CapabilityId 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.
    EventConfiguration 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.
    ObservabilityMode string
    An indication of how the event should be mapped to OpenTelemetry.
    EventNotifier 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.
    CapabilityId 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.
    EventConfiguration 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.
    ObservabilityMode string
    An indication of how the event should be mapped to OpenTelemetry.
    eventNotifier 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.
    capabilityId 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.
    eventConfiguration 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.
    observabilityMode String
    An indication of how the event should be mapped to OpenTelemetry.
    eventNotifier 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.
    capabilityId 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.
    eventConfiguration 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.
    observabilityMode 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.
    eventNotifier 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.
    capabilityId 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.
    eventConfiguration 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.
    observabilityMode 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.
    EventsObservabilityModeNone
    noneNo mapping to OpenTelemetry.
    EventsObservabilityModeLog
    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

    Name string
    The extended location name.
    Type string
    The extended location type.
    Name string
    The extended location name.
    Type string
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.
    name string
    The extended location name.
    type string
    The extended location type.
    name str
    The extended location name.
    type str
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.

    ExtendedLocationResponse, ExtendedLocationResponseArgs

    Name string
    The extended location name.
    Type string
    The extended location type.
    Name string
    The extended location name.
    Type string
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.
    name string
    The extended location name.
    type string
    The extended location type.
    name str
    The extended location name.
    type str
    The extended location type.
    name String
    The extended location name.
    type String
    The extended location type.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    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_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    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
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi