diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/Az.DeviceRegistry.format.ps1xml b/generated/DeviceRegistry/DeviceRegistry.Autorest/Az.DeviceRegistry.format.ps1xml
index ca0f69ec40b5..127287dcb7fa 100644
--- a/generated/DeviceRegistry/DeviceRegistry.Autorest/Az.DeviceRegistry.format.ps1xml
+++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/Az.DeviceRegistry.format.ps1xml
@@ -1797,6 +1797,9 @@
+
+
+
@@ -1816,6 +1819,9 @@
Configuration
+
+ DataSource
+
DefaultTimeoutInSecond
@@ -2311,6 +2317,28 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventGroup
+
+ Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusEventGroup#Multiple
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceAssetStatusManagementAction
@@ -2926,12 +2954,21 @@
+
+
+
+
+
+
+
+
+
@@ -2975,12 +3012,21 @@
DefaultStreamsConfiguration
+
+ Description
+
DiscoveryId
+
+ DisplayName
+
DocumentationUri
+
+ ExternalAssetId
+
HardwareRevision
@@ -3032,9 +3078,15 @@
+
+
+
+
+
+
@@ -3078,9 +3130,15 @@
DefaultStreamsConfiguration
+
+ Description
+
DiscoveryId
+
+ DisplayName
+
DocumentationUri
@@ -3453,10 +3511,10 @@
-
+
-
+
@@ -3472,10 +3530,10 @@
- EventConfiguration
+ DataSource
- EventNotifier
+ EventConfiguration
LastUpdatedOn
@@ -3492,40 +3550,40 @@
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventDataPoint
+ Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventGroup
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventDataPoint#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceDiscoveredEventGroup#Multiple
-
-
-
-
+
+
+
+
-
- DataPointConfiguration
-
DataSource
- LastUpdatedOn
+ EventGroupConfiguration
Name
+
+ TypeRef
+
@@ -3602,6 +3660,9 @@
+
+
+
@@ -3624,6 +3685,9 @@
+
+ DataSource
+
DefaultTimeoutInSecond
@@ -3695,10 +3759,10 @@
-
+
-
+
@@ -3711,10 +3775,10 @@
- EventConfiguration
+ DataSource
- EventNotifier
+ EventConfiguration
Name
@@ -3728,34 +3792,40 @@
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventDataPoint
+ Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventGroup
- Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventDataPoint#Multiple
+ Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.NamespaceEventGroup#Multiple
-
+
-
+
+
+
+
- DataPointConfiguration
+ DataSource
- DataSource
+ EventGroupConfiguration
Name
+
+ TypeRef
+
@@ -5093,6 +5163,74 @@
+
+ Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentials
+
+ Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentials#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CertificateSecretName
+
+
+ IntermediateCertificatesSecretName
+
+
+ KeySecretName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentialsUpdate
+
+ Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509CertificateCredentialsUpdate#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CertificateSecretName
+
+
+ IntermediateCertificatesSecretName
+
+
+ KeySecretName
+
+
+
+
+
+
Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.X509Credentials
diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/Properties/AssemblyInfo.cs b/generated/DeviceRegistry/DeviceRegistry.Autorest/Properties/AssemblyInfo.cs
index 7836ec330e52..d4e4fc189b47 100644
--- a/generated/DeviceRegistry/DeviceRegistry.Autorest/Properties/AssemblyInfo.cs
+++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/Properties/AssemblyInfo.cs
@@ -20,10 +20,9 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DeviceRegistry")]
-[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.1")]
-[assembly: System.Reflection.AssemblyVersionAttribute("0.1.1")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.0")]
+[assembly: System.Reflection.AssemblyVersionAttribute("0.2.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
-
diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceAsset.ps1
index 2b8b7a67d674..8100383577bd 100644
--- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceAsset.ps1
+++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceAsset.ps1
@@ -20,7 +20,154 @@ Create a NamespaceAsset
.Description
Create a NamespaceAsset
.Example
-New-AzDeviceRegistryNamespaceAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -AssetName "my-asset" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-2pnh4" -ExtendedLocationType "CustomLocation" -DeviceRefDeviceName "my-device" -DeviceRefEndpointName "my-endpoint" -ExternalAssetId "my-external-asset-id" -DisplayName "My Asset Display Name" -Manufacturer "Contoso" -ManufacturerUri "https://www.contoso.com/manufacturerUri" -Model "ContosoModel" -ProductCode "SA34VDG" -SoftwareRevision "2.0" -HardwareRevision "1.0" -SerialNumber "64-103816-519918-8" -DocumentationUri "https://www.example.com/manual/"
+$eventGroups = @(
+ @{
+ name = "eventGroup1"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/EventGroup1"
+ eventGroupConfiguration = '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
+ typeRef = "eventGroup1TypeRef"
+ events = @(
+ @{
+ name = "event1"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt5"
+ eventConfiguration = '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}'
+ destinations = @(
+ @{
+ target = "Mqtt"
+ configuration = @{
+ topic = "/contoso/testEvent1"
+ retain = "Keep"
+ qos = "Qos0"
+ ttl = 7200
+ }
+ }
+ )
+ typeRef = "event1Ref"
+ }
+ )
+ },
+ @{
+ name = "eventGroup2"
+ events = @(
+ @{
+ name = "event2"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt8"
+ eventConfiguration = '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}'
+ destinations = @(
+ @{
+ target = "Storage"
+ configuration = @{
+ path = "/tmp/event2"
+ }
+ }
+ )
+ typeRef = "event2Ref"
+ }
+ )
+ }
+)
+
+$managementGroups = @(
+ @{
+ name = "managementGroup1"
+ managementGroupConfiguration = '{"retryCount":10,"retryBackoffInterval":15}'
+ typeRef = "managementGroup1TypeRef"
+ defaultTopic = "/contoso/managementGroup1"
+ defaultTimeoutInSeconds = 100
+ actions = @(
+ @{
+ name = "action1"
+ actionConfiguration = '{"retryCount":5,"retryBackoffInterval":5}'
+ targetUri = "/onvif/device_service?ONVIFProfile=Profile1"
+ typeRef = "action1TypeRef"
+ topic = "/contoso/managementGroup1/action1"
+ actionType = "Call"
+ timeoutInSeconds = 60
+ },
+ @{
+ name = "action2"
+ actionConfiguration = '{"retryCount":5,"retryBackoffInterval":5}'
+ targetUri = "/onvif/device_service?ONVIFProfile=Profile2"
+ typeRef = "action2TypeRef"
+ topic = "/contoso/managementGroup1/action2"
+ actionType = "Call"
+ timeoutInSeconds = 60
+ }
+ )
+ }
+)
+
+$datasets = @(
+ @{
+ name = "dataset1"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc"
+ },
+ @{
+ name = "dataSet2"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/Oven;i=5"
+ typeRef = "dataset1TypeRef"
+ datasetConfiguration = '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
+ destinations = @(
+ @{
+ target = "Mqtt"
+ configuration = @{
+ topic = "/contoso/test2"
+ retain = "Keep"
+ qos = "Qos1"
+ ttl = 3600
+ }
+ }
+ )
+ dataPoints = @(
+ @{
+ name = "dataset1DataPoint1"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"
+ dataPointConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
+ typeRef = "dataset1DataPoint1TypeRef"
+ },
+ @{
+ name = "dataset1DataPoint2"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"
+ dataPointConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
+ typeRef = "dataset1DataPoint2TypeRef"
+ }
+ )
+ }
+)
+
+$streams = @(
+ @{
+ name = "stream1"
+ streamConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
+ typeRef = "stream1TypeRef"
+ destinations = @(
+ @{
+ target = "Storage"
+ configuration = @{
+ path = "/tmp/stream1"
+ }
+ }
+ )
+ },
+ @{
+ name = "stream2"
+ streamConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
+ typeRef = "stream2TypeRef"
+ destinations = @(
+ @{
+ target = "Mqtt"
+ configuration = @{
+ topic = "/contoso/testStream2"
+ retain = "Never"
+ qos = "Qos0"
+ ttl = 7200
+ }
+ }
+ )
+ }
+)
+
+New-AzDeviceRegistryNamespaceAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -AssetName "my-asset" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-mkzkq" -ExtendedLocationType "CustomLocation" -DeviceRefDeviceName "my-device" -DeviceRefEndpointName "my-endpoint" -ExternalAssetId "my-external-asset-id" -DisplayName "My Asset Display Name" -Manufacturer "Contoso" -ManufacturerUri "https://www.contoso.com/manufacturerUri" -Model "ContosoModel" -ProductCode "SA34VDG" -SoftwareRevision "2.0" -HardwareRevision "1.0" -SerialNumber "64-103816-519918-8" -DocumentationUri "https://www.example.com/manual/" -EventGroup $eventGroups -ManagementGroup $managementGroups -Dataset $datasets -Stream $streams
.Example
New-AzDeviceRegistryNamespaceAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -AssetName "my-asset" -JsonFilePath "C:\path\to\asset.json"
.Example
@@ -56,16 +203,18 @@ DEFAULTEVENTSDESTINATION : Default destinations for an even
DEFAULTSTREAMSDESTINATION : Default destinations for a stream.
Target : Target destination.
-EVENT : Array of events that are part of the asset. Each event can have per-event configuration.
- EventNotifier : 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.
- Name : The name of the event.
- [DataPoint >]: Array of data points that are part of the event. Each data point can have a per-data point configuration.
- DataSource : 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.
- Name : The name of the data point.
- [DataPointConfiguration ]: Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- [Destination >]: Destinations for an event.
+EVENTGROUP : Array of event groups that are part of the asset. Each event group can have per-event group configuration.
+ Name : The name of the event group.
+ [DataSource ]: The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset.
+ [DefaultDestination >]: Destinations for events. Default destinations when destinations is not defined at the event level.
Target : Target destination.
- [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
+ [Event >]: Array of events that are part of the event group.
+ Name : The name of the event.
+ [DataSource ]: Reference to a data source for a given event.
+ [Destination >]: Destinations for an event.
+ [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
+ [TypeRef ]: URI or type definition ID.
+ [EventGroupConfiguration ]: Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
[TypeRef ]: URI or type definition ID.
MANAGEMENTGROUP : Array of management groups that are part of the asset. Each management group can have a per-group configuration.
@@ -79,6 +228,7 @@ MANAGEMENTGROUP : Array of management groups that are part o
[Topic ]: The MQTT topic path on which a client will receive the request for the action.
[TypeRef ]: URI or type definition ID.
[Configuration ]: Stringified JSON that contains connector-specific configuration for the management group.
+ [DataSource ]: Reference to a data source for a given management group.
[DefaultTimeoutInSecond ]: Default response timeout for all actions that are part of the management group.
[DefaultTopic ]: Default MQTT topic path on which a client will receive the request for all actions that are part of the management group.
[TypeRef ]: URI or type definition ID.
@@ -260,10 +410,10 @@ param(
[Parameter(ParameterSetName='CreateExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent[]]
- # Array of events that are part of the asset.
- # Each event can have per-event configuration.
- ${Event},
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup[]]
+ # Array of event groups that are part of the asset.
+ # Each event group can have per-event group configuration.
+ ${EventGroup},
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDevice.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDevice.ps1
index 581c9bfac17d..98baca15159e 100644
--- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDevice.ps1
+++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDevice.ps1
@@ -29,20 +29,20 @@ $outboundAssigned = @{
$endpointsInbound = @{
"my-inbound-endpoint1" = @{
Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "Certificate"
X509CredentialsCertificateSecretName = "my-certificate"
}
"my-inbound-endpoint2" = @{
Address = "https://my-inbound-endpoint2.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "UsernamePassword"
UsernamePasswordCredentialsUsernameSecretName = "my-username"
UsernamePasswordCredentialsPasswordSecretName = "my-password"
}
}
-New-AzDeviceRegistryNamespaceDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DeviceName "my-device" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-2pnh4" -ExtendedLocationType "CustomLocation" -Manufacturer "Contoso" -Model "model123" -OperatingSystem "Linux" -OperatingSystemVersion "1000" -OutboundAssigned $outboundAssigned -EndpointsInbound $endpointsInbound -Enabled
+New-AzDeviceRegistryNamespaceDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DeviceName "my-device" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-mkzkq" -ExtendedLocationType "CustomLocation" -Manufacturer "Contoso" -Model "model123" -OperatingSystem "Linux" -OperatingSystemVersion "1000" -OutboundAssigned $outboundAssigned -EndpointsInbound $endpointsInbound -Enabled
.Example
New-AzDeviceRegistryNamespaceDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DeviceName "my-device" -JsonFilePath "C:\path\to\device.json"
.Example
diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredAsset.ps1
index c506691383ed..eb3d0c50899a 100644
--- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredAsset.ps1
+++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredAsset.ps1
@@ -20,7 +20,154 @@ Create a NamespaceDiscoveredAsset
.Description
Create a NamespaceDiscoveredAsset
.Example
-New-AzDeviceRegistryNamespaceDiscoveredAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredAssetName "my-discovered-asset" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-2pnh4" -ExtendedLocationType "CustomLocation" -DeviceRefDeviceName "my-device" -DeviceRefEndpointName "my-endpoint" -Manufacturer "Contoso123" -ManufacturerUri "https://www.contoso.com/manufacturerUri" -Model "ContosoModel" -ProductCode "SA34VDG" -SoftwareRevision "2.0" -SerialNumber "64-103816-519918-8" -DocumentationUri "https://www.example.com/manual/"
+$eventGroups = @(
+ @{
+ name = "eventGroup1"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/EventGroup1"
+ eventGroupConfiguration = '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
+ typeRef = "eventGroup1TypeRef"
+ events = @(
+ @{
+ name = "event1"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt5"
+ eventConfiguration = '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}'
+ destinations = @(
+ @{
+ target = "Mqtt"
+ configuration = @{
+ topic = "/contoso/testEvent1"
+ retain = "Keep"
+ qos = "Qos0"
+ ttl = 7200
+ }
+ }
+ )
+ typeRef = "event1Ref"
+ }
+ )
+ },
+ @{
+ name = "eventGroup2"
+ events = @(
+ @{
+ name = "event2"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt8"
+ eventConfiguration = '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}'
+ destinations = @(
+ @{
+ target = "Storage"
+ configuration = @{
+ path = "/tmp/event2"
+ }
+ }
+ )
+ typeRef = "event2Ref"
+ }
+ )
+ }
+)
+
+$managementGroups = @(
+ @{
+ name = "managementGroup1"
+ managementGroupConfiguration = '{"retryCount":10,"retryBackoffInterval":15}'
+ typeRef = "managementGroup1TypeRef"
+ defaultTopic = "/contoso/managementGroup1"
+ defaultTimeoutInSeconds = 100
+ actions = @(
+ @{
+ name = "action1"
+ actionConfiguration = '{"retryCount":5,"retryBackoffInterval":5}'
+ targetUri = "/onvif/device_service?ONVIFProfile=Profile1"
+ typeRef = "action1TypeRef"
+ topic = "/contoso/managementGroup1/action1"
+ actionType = "Call"
+ timeoutInSeconds = 60
+ },
+ @{
+ name = "action2"
+ actionConfiguration = '{"retryCount":5,"retryBackoffInterval":5}'
+ targetUri = "/onvif/device_service?ONVIFProfile=Profile2"
+ typeRef = "action2TypeRef"
+ topic = "/contoso/managementGroup1/action2"
+ actionType = "Call"
+ timeoutInSeconds = 60
+ }
+ )
+ }
+)
+
+$datasets = @(
+ @{
+ name = "dataset1"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc"
+ },
+ @{
+ name = "dataSet2"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/Oven;i=5"
+ typeRef = "dataset1TypeRef"
+ datasetConfiguration = '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
+ destinations = @(
+ @{
+ target = "Mqtt"
+ configuration = @{
+ topic = "/contoso/test2"
+ retain = "Keep"
+ qos = "Qos1"
+ ttl = 3600
+ }
+ }
+ )
+ dataPoints = @(
+ @{
+ name = "dataset1DataPoint1"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"
+ dataPointConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
+ typeRef = "dataset1DataPoint1TypeRef"
+ },
+ @{
+ name = "dataset1DataPoint2"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"
+ dataPointConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
+ typeRef = "dataset1DataPoint2TypeRef"
+ }
+ )
+ }
+)
+
+$streams = @(
+ @{
+ name = "stream1"
+ streamConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
+ typeRef = "stream1TypeRef"
+ destinations = @(
+ @{
+ target = "Storage"
+ configuration = @{
+ path = "/tmp/stream1"
+ }
+ }
+ )
+ },
+ @{
+ name = "stream2"
+ streamConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
+ typeRef = "stream2TypeRef"
+ destinations = @(
+ @{
+ target = "Mqtt"
+ configuration = @{
+ topic = "/contoso/testStream2"
+ retain = "Never"
+ qos = "Qos0"
+ ttl = 7200
+ }
+ }
+ )
+ }
+)
+
+New-AzDeviceRegistryNamespaceDiscoveredAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredAssetName "my-discovered-asset" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-mkzkq" -ExtendedLocationType "CustomLocation" -DeviceRefDeviceName "my-device" -DeviceRefEndpointName "my-endpoint" -Manufacturer "Contoso123" -ManufacturerUri "https://www.contoso.com/manufacturerUri" -Model "ContosoModel" -ProductCode "SA34VDG" -SoftwareRevision "2.0" -SerialNumber "64-103816-519918-8" -DocumentationUri "https://www.example.com/manual/" -EventGroup $eventGroups -ManagementGroup $managementGroups -Dataset $datasets -Stream $streams
.Example
New-AzDeviceRegistryNamespaceDiscoveredAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredAssetName "my-discovered-asset" -JsonFilePath "C:\path\to\discovered-asset.json"
.Example
@@ -58,18 +205,19 @@ DEFAULTEVENTSDESTINATION : Default destinations for an even
DEFAULTSTREAMSDESTINATION : Default destinations for a stream.
Target : Target destination.
-EVENT : Array of events that are part of the asset. Each event can have per-event configuration.
- EventNotifier : 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.
- Name : The name of the event.
- [DataPoint >]: Array of data points that are part of the event. Each data point can have a per-data point configuration.
- DataSource : 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.
- Name : The name of the data point.
- [DataPointConfiguration ]: Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- [LastUpdatedOn ]: UTC timestamp indicating when the data point was added or modified.
- [Destination >]: Destinations for an event.
+EVENTGROUP : Array of event groups that are part of the asset. Each event group can have per-event group configuration.
+ Name : The name of the event group.
+ [DataSource ]: The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset.
+ [DefaultDestination >]: Destinations for events. Default destinations when destinations is not defined at the event level.
Target : Target destination.
- [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- [LastUpdatedOn ]: UTC timestamp indicating when the event was added or modified.
+ [Event >]: Array of events that are part of the event group.
+ Name : The name of the event.
+ [DataSource ]: Reference to a data source for a given event.
+ [Destination >]: Destinations for an event.
+ [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
+ [LastUpdatedOn ]: UTC timestamp indicating when the event was added or modified.
+ [TypeRef ]: URI or type definition ID.
+ [EventGroupConfiguration ]: Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
[TypeRef ]: URI or type definition ID.
MANAGEMENTGROUP : Array of management groups that are part of the asset. Each management group can have a per-group configuration.
@@ -83,6 +231,7 @@ MANAGEMENTGROUP : Array of management gro
[TimeoutInSecond ]: Response timeout for the action.
[Topic ]: The MQTT topic path on which a client will receive the request for the action.
[TypeRef ]: URI or type definition ID.
+ [DataSource ]: Reference to a data source for a given management group.
[DefaultTimeoutInSecond ]: Default response timeout for all actions that are part of the management group.
[DefaultTopic ]: Default MQTT topic path on which a client will receive the request for all actions that are part of the management group.
[LastUpdatedOn ]: Timestamp (in UTC) indicating when the management group was added or modified.
@@ -219,6 +368,12 @@ param(
# Default destinations for a stream.
${DefaultStreamsDestination},
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
+ [System.String]
+ # Human-readable description of the asset.
+ ${Description},
+
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
[System.String]
@@ -237,6 +392,12 @@ param(
# Identifier used to detect changes in the asset.
${DiscoveryId},
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
+ [System.String]
+ # Human-readable display name.
+ ${DisplayName},
+
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
[System.String]
@@ -246,10 +407,16 @@ param(
[Parameter(ParameterSetName='CreateExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent[]]
- # Array of events that are part of the asset.
- # Each event can have per-event configuration.
- ${Event},
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup[]]
+ # Array of event groups that are part of the asset.
+ # Each event group can have per-event group configuration.
+ ${EventGroup},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
+ [System.String]
+ # Asset ID provided by the customer.
+ ${ExternalAssetId},
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredDevice.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredDevice.ps1
index a6c625a4323f..4ce129ecbae3 100644
--- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredDevice.ps1
+++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/New-AzDeviceRegistryNamespaceDiscoveredDevice.ps1
@@ -22,24 +22,24 @@ Create a NamespaceDiscoveredDevice
.Example
$outboundAssigned = @{
"myendpoint2" = @{
- Address = "https://myendpoint2.westeurope-1.edge.azure.net"
+ Address = "https://myendpoint2.westeurope-1.iothub.azure.net"
EndpointType = "Microsoft.Devices/IoTHubs"
}
}
$endpointInbound = @{
"endpoint1" = @{
Address = "https://myendpoint1.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
Version = "1.0"
}
"endpoint2" = @{
Address = "https://myendpoint2.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
Version = "2.0"
}
}
-New-AzDeviceRegistryNamespaceDiscoveredDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredDeviceName "my-discovered-device" -Location "East US" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-2pnh4" -ExtendedLocationType "CustomLocation" -DiscoveryId "discovery-123" -Version "1.0.0" -Manufacturer "Contoso" -Model "Device-X1" -OperatingSystem "Linux" -OperatingSystemVersion "Ubuntu 20.04" -OutboundAssigned $outboundAssigned -EndpointInbound $endpointInbound
+New-AzDeviceRegistryNamespaceDiscoveredDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredDeviceName "my-discovered-device" -Location "East US" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-mkzkq" -ExtendedLocationType "CustomLocation" -DiscoveryId "discovery-123" -Version "1.0.0" -Manufacturer "Contoso" -Model "Device-X1" -OperatingSystem "Linux" -OperatingSystemVersion "Ubuntu 20.04" -OutboundAssigned $outboundAssigned -EndpointInbound $endpointInbound
.Example
New-AzDeviceRegistryNamespaceDiscoveredDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredDeviceName "my-discovered-device" -JsonFilePath "C:\path\to\device-config.json"
.Example
diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/ProxyCmdletDefinitions.ps1
index a9f3db063d3a..03b8d0d8a6d3 100644
--- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -3864,7 +3864,154 @@ Create a NamespaceAsset
.Description
Create a NamespaceAsset
.Example
-New-AzDeviceRegistryNamespaceAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -AssetName "my-asset" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-2pnh4" -ExtendedLocationType "CustomLocation" -DeviceRefDeviceName "my-device" -DeviceRefEndpointName "my-endpoint" -ExternalAssetId "my-external-asset-id" -DisplayName "My Asset Display Name" -Manufacturer "Contoso" -ManufacturerUri "https://www.contoso.com/manufacturerUri" -Model "ContosoModel" -ProductCode "SA34VDG" -SoftwareRevision "2.0" -HardwareRevision "1.0" -SerialNumber "64-103816-519918-8" -DocumentationUri "https://www.example.com/manual/"
+$eventGroups = @(
+ @{
+ name = "eventGroup1"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/EventGroup1"
+ eventGroupConfiguration = '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
+ typeRef = "eventGroup1TypeRef"
+ events = @(
+ @{
+ name = "event1"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt5"
+ eventConfiguration = '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}'
+ destinations = @(
+ @{
+ target = "Mqtt"
+ configuration = @{
+ topic = "/contoso/testEvent1"
+ retain = "Keep"
+ qos = "Qos0"
+ ttl = 7200
+ }
+ }
+ )
+ typeRef = "event1Ref"
+ }
+ )
+ },
+ @{
+ name = "eventGroup2"
+ events = @(
+ @{
+ name = "event2"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt8"
+ eventConfiguration = '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}'
+ destinations = @(
+ @{
+ target = "Storage"
+ configuration = @{
+ path = "/tmp/event2"
+ }
+ }
+ )
+ typeRef = "event2Ref"
+ }
+ )
+ }
+)
+
+$managementGroups = @(
+ @{
+ name = "managementGroup1"
+ managementGroupConfiguration = '{"retryCount":10,"retryBackoffInterval":15}'
+ typeRef = "managementGroup1TypeRef"
+ defaultTopic = "/contoso/managementGroup1"
+ defaultTimeoutInSeconds = 100
+ actions = @(
+ @{
+ name = "action1"
+ actionConfiguration = '{"retryCount":5,"retryBackoffInterval":5}'
+ targetUri = "/onvif/device_service?ONVIFProfile=Profile1"
+ typeRef = "action1TypeRef"
+ topic = "/contoso/managementGroup1/action1"
+ actionType = "Call"
+ timeoutInSeconds = 60
+ },
+ @{
+ name = "action2"
+ actionConfiguration = '{"retryCount":5,"retryBackoffInterval":5}'
+ targetUri = "/onvif/device_service?ONVIFProfile=Profile2"
+ typeRef = "action2TypeRef"
+ topic = "/contoso/managementGroup1/action2"
+ actionType = "Call"
+ timeoutInSeconds = 60
+ }
+ )
+ }
+)
+
+$datasets = @(
+ @{
+ name = "dataset1"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc"
+ },
+ @{
+ name = "dataSet2"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/Oven;i=5"
+ typeRef = "dataset1TypeRef"
+ datasetConfiguration = '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
+ destinations = @(
+ @{
+ target = "Mqtt"
+ configuration = @{
+ topic = "/contoso/test2"
+ retain = "Keep"
+ qos = "Qos1"
+ ttl = 3600
+ }
+ }
+ )
+ dataPoints = @(
+ @{
+ name = "dataset1DataPoint1"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"
+ dataPointConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
+ typeRef = "dataset1DataPoint1TypeRef"
+ },
+ @{
+ name = "dataset1DataPoint2"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"
+ dataPointConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
+ typeRef = "dataset1DataPoint2TypeRef"
+ }
+ )
+ }
+)
+
+$streams = @(
+ @{
+ name = "stream1"
+ streamConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
+ typeRef = "stream1TypeRef"
+ destinations = @(
+ @{
+ target = "Storage"
+ configuration = @{
+ path = "/tmp/stream1"
+ }
+ }
+ )
+ },
+ @{
+ name = "stream2"
+ streamConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
+ typeRef = "stream2TypeRef"
+ destinations = @(
+ @{
+ target = "Mqtt"
+ configuration = @{
+ topic = "/contoso/testStream2"
+ retain = "Never"
+ qos = "Qos0"
+ ttl = 7200
+ }
+ }
+ )
+ }
+)
+
+New-AzDeviceRegistryNamespaceAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -AssetName "my-asset" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-mkzkq" -ExtendedLocationType "CustomLocation" -DeviceRefDeviceName "my-device" -DeviceRefEndpointName "my-endpoint" -ExternalAssetId "my-external-asset-id" -DisplayName "My Asset Display Name" -Manufacturer "Contoso" -ManufacturerUri "https://www.contoso.com/manufacturerUri" -Model "ContosoModel" -ProductCode "SA34VDG" -SoftwareRevision "2.0" -HardwareRevision "1.0" -SerialNumber "64-103816-519918-8" -DocumentationUri "https://www.example.com/manual/" -EventGroup $eventGroups -ManagementGroup $managementGroups -Dataset $datasets -Stream $streams
.Example
New-AzDeviceRegistryNamespaceAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -AssetName "my-asset" -JsonFilePath "C:\path\to\asset.json"
.Example
@@ -3900,16 +4047,18 @@ DEFAULTEVENTSDESTINATION : Default destinations for an even
DEFAULTSTREAMSDESTINATION : Default destinations for a stream.
Target : Target destination.
-EVENT : Array of events that are part of the asset. Each event can have per-event configuration.
- EventNotifier : 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.
- Name : The name of the event.
- [DataPoint >]: Array of data points that are part of the event. Each data point can have a per-data point configuration.
- DataSource : 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.
- Name : The name of the data point.
- [DataPointConfiguration ]: Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- [Destination >]: Destinations for an event.
+EVENTGROUP : Array of event groups that are part of the asset. Each event group can have per-event group configuration.
+ Name : The name of the event group.
+ [DataSource ]: The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset.
+ [DefaultDestination >]: Destinations for events. Default destinations when destinations is not defined at the event level.
Target : Target destination.
- [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
+ [Event >]: Array of events that are part of the event group.
+ Name : The name of the event.
+ [DataSource ]: Reference to a data source for a given event.
+ [Destination >]: Destinations for an event.
+ [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
+ [TypeRef ]: URI or type definition ID.
+ [EventGroupConfiguration ]: Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
[TypeRef ]: URI or type definition ID.
MANAGEMENTGROUP : Array of management groups that are part of the asset. Each management group can have a per-group configuration.
@@ -3923,6 +4072,7 @@ MANAGEMENTGROUP : Array of management groups that are part o
[Topic ]: The MQTT topic path on which a client will receive the request for the action.
[TypeRef ]: URI or type definition ID.
[Configuration ]: Stringified JSON that contains connector-specific configuration for the management group.
+ [DataSource ]: Reference to a data source for a given management group.
[DefaultTimeoutInSecond ]: Default response timeout for all actions that are part of the management group.
[DefaultTopic ]: Default MQTT topic path on which a client will receive the request for all actions that are part of the management group.
[TypeRef ]: URI or type definition ID.
@@ -4104,10 +4254,10 @@ param(
[Parameter(ParameterSetName='CreateExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent[]]
- # Array of events that are part of the asset.
- # Each event can have per-event configuration.
- ${Event},
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup[]]
+ # Array of event groups that are part of the asset.
+ # Each event group can have per-event group configuration.
+ ${EventGroup},
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
@@ -4367,20 +4517,20 @@ $outboundAssigned = @{
$endpointsInbound = @{
"my-inbound-endpoint1" = @{
Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "Certificate"
X509CredentialsCertificateSecretName = "my-certificate"
}
"my-inbound-endpoint2" = @{
Address = "https://my-inbound-endpoint2.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "UsernamePassword"
UsernamePasswordCredentialsUsernameSecretName = "my-username"
UsernamePasswordCredentialsPasswordSecretName = "my-password"
}
}
-New-AzDeviceRegistryNamespaceDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DeviceName "my-device" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-2pnh4" -ExtendedLocationType "CustomLocation" -Manufacturer "Contoso" -Model "model123" -OperatingSystem "Linux" -OperatingSystemVersion "1000" -OutboundAssigned $outboundAssigned -EndpointsInbound $endpointsInbound -Enabled
+New-AzDeviceRegistryNamespaceDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DeviceName "my-device" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-mkzkq" -ExtendedLocationType "CustomLocation" -Manufacturer "Contoso" -Model "model123" -OperatingSystem "Linux" -OperatingSystemVersion "1000" -OutboundAssigned $outboundAssigned -EndpointsInbound $endpointsInbound -Enabled
.Example
New-AzDeviceRegistryNamespaceDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DeviceName "my-device" -JsonFilePath "C:\path\to\device.json"
.Example
@@ -4698,7 +4848,154 @@ Create a NamespaceDiscoveredAsset
.Description
Create a NamespaceDiscoveredAsset
.Example
-New-AzDeviceRegistryNamespaceDiscoveredAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredAssetName "my-discovered-asset" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-2pnh4" -ExtendedLocationType "CustomLocation" -DeviceRefDeviceName "my-device" -DeviceRefEndpointName "my-endpoint" -Manufacturer "Contoso123" -ManufacturerUri "https://www.contoso.com/manufacturerUri" -Model "ContosoModel" -ProductCode "SA34VDG" -SoftwareRevision "2.0" -SerialNumber "64-103816-519918-8" -DocumentationUri "https://www.example.com/manual/"
+$eventGroups = @(
+ @{
+ name = "eventGroup1"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/EventGroup1"
+ eventGroupConfiguration = '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
+ typeRef = "eventGroup1TypeRef"
+ events = @(
+ @{
+ name = "event1"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt5"
+ eventConfiguration = '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}'
+ destinations = @(
+ @{
+ target = "Mqtt"
+ configuration = @{
+ topic = "/contoso/testEvent1"
+ retain = "Keep"
+ qos = "Qos0"
+ ttl = 7200
+ }
+ }
+ )
+ typeRef = "event1Ref"
+ }
+ )
+ },
+ @{
+ name = "eventGroup2"
+ events = @(
+ @{
+ name = "event2"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt8"
+ eventConfiguration = '{"publishingInterval":7,"samplingInterval":1,"queueSize":8}'
+ destinations = @(
+ @{
+ target = "Storage"
+ configuration = @{
+ path = "/tmp/event2"
+ }
+ }
+ )
+ typeRef = "event2Ref"
+ }
+ )
+ }
+)
+
+$managementGroups = @(
+ @{
+ name = "managementGroup1"
+ managementGroupConfiguration = '{"retryCount":10,"retryBackoffInterval":15}'
+ typeRef = "managementGroup1TypeRef"
+ defaultTopic = "/contoso/managementGroup1"
+ defaultTimeoutInSeconds = 100
+ actions = @(
+ @{
+ name = "action1"
+ actionConfiguration = '{"retryCount":5,"retryBackoffInterval":5}'
+ targetUri = "/onvif/device_service?ONVIFProfile=Profile1"
+ typeRef = "action1TypeRef"
+ topic = "/contoso/managementGroup1/action1"
+ actionType = "Call"
+ timeoutInSeconds = 60
+ },
+ @{
+ name = "action2"
+ actionConfiguration = '{"retryCount":5,"retryBackoffInterval":5}'
+ targetUri = "/onvif/device_service?ONVIFProfile=Profile2"
+ typeRef = "action2TypeRef"
+ topic = "/contoso/managementGroup1/action2"
+ actionType = "Call"
+ timeoutInSeconds = 60
+ }
+ )
+ }
+)
+
+$datasets = @(
+ @{
+ name = "dataset1"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc"
+ },
+ @{
+ name = "dataSet2"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/Oven;i=5"
+ typeRef = "dataset1TypeRef"
+ datasetConfiguration = '{"publishingInterval":10,"samplingInterval":15,"queueSize":20}'
+ destinations = @(
+ @{
+ target = "Mqtt"
+ configuration = @{
+ topic = "/contoso/test2"
+ retain = "Keep"
+ qos = "Qos1"
+ ttl = 3600
+ }
+ }
+ )
+ dataPoints = @(
+ @{
+ name = "dataset1DataPoint1"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt3"
+ dataPointConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
+ typeRef = "dataset1DataPoint1TypeRef"
+ },
+ @{
+ name = "dataset1DataPoint2"
+ dataSource = "nsu=http://microsoft.com/Opc/OpcPlc/;s=FastUInt4"
+ dataPointConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
+ typeRef = "dataset1DataPoint2TypeRef"
+ }
+ )
+ }
+)
+
+$streams = @(
+ @{
+ name = "stream1"
+ streamConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
+ typeRef = "stream1TypeRef"
+ destinations = @(
+ @{
+ target = "Storage"
+ configuration = @{
+ path = "/tmp/stream1"
+ }
+ }
+ )
+ },
+ @{
+ name = "stream2"
+ streamConfiguration = '{"publishingInterval":8,"samplingInterval":8,"queueSize":4}'
+ typeRef = "stream2TypeRef"
+ destinations = @(
+ @{
+ target = "Mqtt"
+ configuration = @{
+ topic = "/contoso/testStream2"
+ retain = "Never"
+ qos = "Qos0"
+ ttl = 7200
+ }
+ }
+ )
+ }
+)
+
+New-AzDeviceRegistryNamespaceDiscoveredAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredAssetName "my-discovered-asset" -Location "eastus" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-mkzkq" -ExtendedLocationType "CustomLocation" -DeviceRefDeviceName "my-device" -DeviceRefEndpointName "my-endpoint" -Manufacturer "Contoso123" -ManufacturerUri "https://www.contoso.com/manufacturerUri" -Model "ContosoModel" -ProductCode "SA34VDG" -SoftwareRevision "2.0" -SerialNumber "64-103816-519918-8" -DocumentationUri "https://www.example.com/manual/" -EventGroup $eventGroups -ManagementGroup $managementGroups -Dataset $datasets -Stream $streams
.Example
New-AzDeviceRegistryNamespaceDiscoveredAsset -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredAssetName "my-discovered-asset" -JsonFilePath "C:\path\to\discovered-asset.json"
.Example
@@ -4736,18 +5033,19 @@ DEFAULTEVENTSDESTINATION : Default destinations for an even
DEFAULTSTREAMSDESTINATION : Default destinations for a stream.
Target : Target destination.
-EVENT : Array of events that are part of the asset. Each event can have per-event configuration.
- EventNotifier : 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.
- Name : The name of the event.
- [DataPoint >]: Array of data points that are part of the event. Each data point can have a per-data point configuration.
- DataSource : 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.
- Name : The name of the data point.
- [DataPointConfiguration ]: Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- [LastUpdatedOn ]: UTC timestamp indicating when the data point was added or modified.
- [Destination >]: Destinations for an event.
+EVENTGROUP : Array of event groups that are part of the asset. Each event group can have per-event group configuration.
+ Name : The name of the event group.
+ [DataSource ]: The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset.
+ [DefaultDestination >]: Destinations for events. Default destinations when destinations is not defined at the event level.
Target : Target destination.
- [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- [LastUpdatedOn ]: UTC timestamp indicating when the event was added or modified.
+ [Event >]: Array of events that are part of the event group.
+ Name : The name of the event.
+ [DataSource ]: Reference to a data source for a given event.
+ [Destination >]: Destinations for an event.
+ [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
+ [LastUpdatedOn ]: UTC timestamp indicating when the event was added or modified.
+ [TypeRef ]: URI or type definition ID.
+ [EventGroupConfiguration ]: Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
[TypeRef ]: URI or type definition ID.
MANAGEMENTGROUP : Array of management groups that are part of the asset. Each management group can have a per-group configuration.
@@ -4761,6 +5059,7 @@ MANAGEMENTGROUP : Array of management gro
[TimeoutInSecond ]: Response timeout for the action.
[Topic ]: The MQTT topic path on which a client will receive the request for the action.
[TypeRef ]: URI or type definition ID.
+ [DataSource ]: Reference to a data source for a given management group.
[DefaultTimeoutInSecond ]: Default response timeout for all actions that are part of the management group.
[DefaultTopic ]: Default MQTT topic path on which a client will receive the request for all actions that are part of the management group.
[LastUpdatedOn ]: Timestamp (in UTC) indicating when the management group was added or modified.
@@ -4897,6 +5196,12 @@ param(
# Default destinations for a stream.
${DefaultStreamsDestination},
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
+ [System.String]
+ # Human-readable description of the asset.
+ ${Description},
+
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
[System.String]
@@ -4915,6 +5220,12 @@ param(
# Identifier used to detect changes in the asset.
${DiscoveryId},
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
+ [System.String]
+ # Human-readable display name.
+ ${DisplayName},
+
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
[System.String]
@@ -4924,10 +5235,16 @@ param(
[Parameter(ParameterSetName='CreateExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent[]]
- # Array of events that are part of the asset.
- # Each event can have per-event configuration.
- ${Event},
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup[]]
+ # Array of event groups that are part of the asset.
+ # Each event group can have per-event group configuration.
+ ${EventGroup},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
+ [System.String]
+ # Asset ID provided by the customer.
+ ${ExternalAssetId},
[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
@@ -5180,24 +5497,24 @@ Create a NamespaceDiscoveredDevice
.Example
$outboundAssigned = @{
"myendpoint2" = @{
- Address = "https://myendpoint2.westeurope-1.edge.azure.net"
+ Address = "https://myendpoint2.westeurope-1.iothub.azure.net"
EndpointType = "Microsoft.Devices/IoTHubs"
}
}
$endpointInbound = @{
"endpoint1" = @{
Address = "https://myendpoint1.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
Version = "1.0"
}
"endpoint2" = @{
Address = "https://myendpoint2.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
Version = "2.0"
}
}
-New-AzDeviceRegistryNamespaceDiscoveredDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredDeviceName "my-discovered-device" -Location "East US" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-2pnh4" -ExtendedLocationType "CustomLocation" -DiscoveryId "discovery-123" -Version "1.0.0" -Manufacturer "Contoso" -Model "Device-X1" -OperatingSystem "Linux" -OperatingSystemVersion "Ubuntu 20.04" -OutboundAssigned $outboundAssigned -EndpointInbound $endpointInbound
+New-AzDeviceRegistryNamespaceDiscoveredDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredDeviceName "my-discovered-device" -Location "East US" -ExtendedLocationName "/subscriptions/xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx/resourceGroups/adr-pwsh-test-rg/providers/Microsoft.ExtendedLocation/customLocations/location-mkzkq" -ExtendedLocationType "CustomLocation" -DiscoveryId "discovery-123" -Version "1.0.0" -Manufacturer "Contoso" -Model "Device-X1" -OperatingSystem "Linux" -OperatingSystemVersion "Ubuntu 20.04" -OutboundAssigned $outboundAssigned -EndpointInbound $endpointInbound
.Example
New-AzDeviceRegistryNamespaceDiscoveredDevice -ResourceGroupName "my-resource-group" -NamespaceName "my-namespace" -DiscoveredDeviceName "my-discovered-device" -JsonFilePath "C:\path\to\device-config.json"
.Example
@@ -8674,6 +8991,12 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -8694,6 +9017,12 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -8938,6 +9267,12 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -8958,6 +9293,12 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -9880,16 +10221,18 @@ DEFAULTEVENTSDESTINATION : Default destinations for an even
DEFAULTSTREAMSDESTINATION : Default destinations for a stream.
Target : Target destination.
-EVENT : Array of events that are part of the asset. Each event can have per-event configuration.
- EventNotifier : 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.
- Name : The name of the event.
- [DataPoint >]: Array of data points that are part of the event. Each data point can have a per-data point configuration.
- DataSource : 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.
- Name : The name of the data point.
- [DataPointConfiguration ]: Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- [Destination >]: Destinations for an event.
+EVENTGROUP : Array of event groups that are part of the asset. Each event group can have per-event group configuration.
+ Name : The name of the event group.
+ [DataSource ]: The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset.
+ [DefaultDestination >]: Destinations for events. Default destinations when destinations is not defined at the event level.
Target : Target destination.
- [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
+ [Event >]: Array of events that are part of the event group.
+ Name : The name of the event.
+ [DataSource ]: Reference to a data source for a given event.
+ [Destination >]: Destinations for an event.
+ [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
+ [TypeRef ]: URI or type definition ID.
+ [EventGroupConfiguration ]: Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
[TypeRef ]: URI or type definition ID.
INPUTOBJECT : Identity Parameter
@@ -9920,6 +10263,7 @@ MANAGEMENTGROUP : Array of management groups that are part o
[Topic ]: The MQTT topic path on which a client will receive the request for the action.
[TypeRef ]: URI or type definition ID.
[Configuration ]: Stringified JSON that contains connector-specific configuration for the management group.
+ [DataSource ]: Reference to a data source for a given management group.
[DefaultTimeoutInSecond ]: Default response timeout for all actions that are part of the management group.
[DefaultTopic ]: Default MQTT topic path on which a client will receive the request for all actions that are part of the management group.
[TypeRef ]: URI or type definition ID.
@@ -10130,10 +10474,10 @@ param(
[Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent[]]
- # Array of events that are part of the asset.
- # Each event can have per-event configuration.
- ${Event},
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup[]]
+ # Array of event groups that are part of the asset.
+ # Each event group can have per-event group configuration.
+ ${EventGroup},
[Parameter(ParameterSetName='UpdateExpanded')]
[Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
@@ -10403,13 +10747,13 @@ Update a NamespaceDevice
$endpointsInbound = @{
"endpoint1" = @{
Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "Certificate"
X509CredentialsCertificateSecretName = "my-certificate"
}
"endpoint2" = @{
Address = "https://myendpoint2.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "UsernamePassword"
UsernamePasswordCredentialsUsernameSecretName = "my-username-secret"
UsernamePasswordCredentialsPasswordSecretName = "my-password-secret"
@@ -10423,7 +10767,7 @@ $updateJson = '{
"endpointsInbound": {
"endpoint1": {
"address": "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net",
- "endpointType": "Microsoft.IotHub",
+ "endpointType": "Microsoft.Devices/IotHubs",
"authentication": {
"method": "Certificate",
"x509Credentials": {
@@ -10433,7 +10777,7 @@ $updateJson = '{
},
"endpoint2": {
"address": "https://my-inbound-endpoint2.westeurope-1.iothub.azure.net",
- "endpointType": "Microsoft.IotHub",
+ "endpointType": "Microsoft.Devices/IotHubs",
"authentication": {
"method": "UsernamePassword",
"usernamePasswordCredentials": {
@@ -10457,13 +10801,13 @@ $namespaceIdentity = @{
$endpointsInbound = @{
"endpoint1" = @{
Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "Certificate"
X509CredentialsCertificateSecretName = "my-certificate"
}
"endpoint2" = @{
Address = "https://myendpoint2.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "UsernamePassword"
UsernamePasswordCredentialsUsernameSecretName = "my-username-secret"
UsernamePasswordCredentialsPasswordSecretName = "my-password-secret"
@@ -10474,13 +10818,13 @@ Update-AzDeviceRegistryNamespaceDevice -NamespaceInputObject $namespaceIdentity
$endpointsInbound = @{
"endpoint1" = @{
Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "Certificate"
X509CredentialsCertificateSecretName = "my-certificate"
}
"endpoint2" = @{
Address = "https://myendpoint2.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "UsernamePassword"
UsernamePasswordCredentialsUsernameSecretName = "my-username-secret"
UsernamePasswordCredentialsPasswordSecretName = "my-password-secret"
@@ -10881,18 +11225,19 @@ DEFAULTEVENTSDESTINATION : Default destinations for an even
DEFAULTSTREAMSDESTINATION : Default destinations for a stream.
Target : Target destination.
-EVENT : Array of events that are part of the asset. Each event can have per-event configuration.
- EventNotifier : 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.
- Name : The name of the event.
- [DataPoint >]: Array of data points that are part of the event. Each data point can have a per-data point configuration.
- DataSource : 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.
- Name : The name of the data point.
- [DataPointConfiguration ]: Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- [LastUpdatedOn ]: UTC timestamp indicating when the data point was added or modified.
- [Destination >]: Destinations for an event.
+EVENTGROUP : Array of event groups that are part of the asset. Each event group can have per-event group configuration.
+ Name : The name of the event group.
+ [DataSource ]: The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset.
+ [DefaultDestination >]: Destinations for events. Default destinations when destinations is not defined at the event level.
Target : Target destination.
- [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- [LastUpdatedOn ]: UTC timestamp indicating when the event was added or modified.
+ [Event >]: Array of events that are part of the event group.
+ Name : The name of the event.
+ [DataSource ]: Reference to a data source for a given event.
+ [Destination >]: Destinations for an event.
+ [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
+ [LastUpdatedOn ]: UTC timestamp indicating when the event was added or modified.
+ [TypeRef ]: URI or type definition ID.
+ [EventGroupConfiguration ]: Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
[TypeRef ]: URI or type definition ID.
INPUTOBJECT : Identity Parameter
@@ -10923,6 +11268,7 @@ MANAGEMENTGROUP : Array of management gro
[TimeoutInSecond ]: Response timeout for the action.
[Topic ]: The MQTT topic path on which a client will receive the request for the action.
[TypeRef ]: URI or type definition ID.
+ [DataSource ]: Reference to a data source for a given management group.
[DefaultTimeoutInSecond ]: Default response timeout for all actions that are part of the management group.
[DefaultTopic ]: Default MQTT topic path on which a client will receive the request for all actions that are part of the management group.
[LastUpdatedOn ]: Timestamp (in UTC) indicating when the management group was added or modified.
@@ -11099,6 +11445,14 @@ param(
# Default destinations for a stream.
${DefaultStreamsDestination},
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
+ [System.String]
+ # Human-readable description of the asset.
+ ${Description},
+
[Parameter(ParameterSetName='UpdateExpanded')]
[Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')]
@@ -11123,6 +11477,14 @@ param(
# Identifier used to detect changes in the asset.
${DiscoveryId},
+ [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
+ [Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
+ [System.String]
+ # Human-readable display name.
+ ${DisplayName},
+
[Parameter(ParameterSetName='UpdateExpanded')]
[Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
[Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')]
@@ -11136,10 +11498,10 @@ param(
[Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEvent[]]
- # Array of events that are part of the asset.
- # Each event can have per-event configuration.
- ${Event},
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceDiscoveredEventGroup[]]
+ # Array of event groups that are part of the asset.
+ # Each event group can have per-event group configuration.
+ ${EventGroup},
[Parameter(ParameterSetName='UpdateExpanded')]
[Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
@@ -11417,13 +11779,13 @@ Update a NamespaceDiscoveredDevice
$endpointsInbound = @{
"endpoint1" = @{
Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "Certificate"
X509CredentialsCertificateSecretName = "my-certificate"
}
"endpoint2" = @{
Address = "https://myendpoint2.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "UsernamePassword"
UsernamePasswordCredentialsUsernameSecretName = "my-username-secret"
UsernamePasswordCredentialsPasswordSecretName = "my-password-secret"
@@ -11437,7 +11799,7 @@ $updateJson = '{
"endpointsInbound": {
"endpoint1": {
"address": "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net",
- "endpointType": "Microsoft.IotHub",
+ "endpointType": "Microsoft.Devices/IotHubs",
"authentication": {
"method": "Certificate",
"x509Credentials": {
@@ -11447,7 +11809,7 @@ $updateJson = '{
},
"endpoint2": {
"address": "https://my-inbound-endpoint2.westeurope-1.iothub.azure.net",
- "endpointType": "Microsoft.IotHub",
+ "endpointType": "Microsoft.Devices/IotHubs",
"authentication": {
"method": "UsernamePassword",
"usernamePasswordCredentials": {
@@ -11471,13 +11833,13 @@ $namespaceIdentity = @{
$endpointsInbound = @{
"endpoint1" = @{
Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "Certificate"
X509CredentialsCertificateSecretName = "my-certificate"
}
"endpoint2" = @{
Address = "https://myendpoint2.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "UsernamePassword"
UsernamePasswordCredentialsUsernameSecretName = "my-username-secret"
UsernamePasswordCredentialsPasswordSecretName = "my-password-secret"
@@ -11488,13 +11850,13 @@ Update-AzDeviceRegistryNamespaceDiscoveredDevice -NamespaceInputObject $namespac
$endpointsInbound = @{
"endpoint1" = @{
Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "Certificate"
X509CredentialsCertificateSecretName = "my-certificate"
}
"endpoint2" = @{
Address = "https://myendpoint2.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "UsernamePassword"
UsernamePasswordCredentialsUsernameSecretName = "my-username-secret"
UsernamePasswordCredentialsPasswordSecretName = "my-password-secret"
diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchema.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchema.ps1
index 7ac015e27855..162cbfe779ce 100644
--- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchema.ps1
+++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchema.ps1
@@ -132,6 +132,12 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -152,6 +158,12 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchemaVersion.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchemaVersion.ps1
index 141d453e1bfc..010c68f7ab84 100644
--- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchemaVersion.ps1
+++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Remove-AzDeviceRegistrySchemaVersion.ps1
@@ -161,6 +161,12 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -181,6 +187,12 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceAsset.ps1
index 6e8997cd1a47..19644dc133aa 100644
--- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceAsset.ps1
+++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceAsset.ps1
@@ -72,16 +72,18 @@ DEFAULTEVENTSDESTINATION : Default destinations for an even
DEFAULTSTREAMSDESTINATION : Default destinations for a stream.
Target : Target destination.
-EVENT : Array of events that are part of the asset. Each event can have per-event configuration.
- EventNotifier : 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.
- Name : The name of the event.
- [DataPoint >]: Array of data points that are part of the event. Each data point can have a per-data point configuration.
- DataSource : 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.
- Name : The name of the data point.
- [DataPointConfiguration ]: Stringified JSON that contains connector-specific configuration for the data point. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
- [Destination >]: Destinations for an event.
+EVENTGROUP : Array of event groups that are part of the asset. Each event group can have per-event group configuration.
+ Name : The name of the event group.
+ [DataSource ]: The address of the notifier of the event group in the asset (e.g. URL) so that a client can access the event group on the asset.
+ [DefaultDestination >]: Destinations for events. Default destinations when destinations is not defined at the event level.
Target : Target destination.
- [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
+ [Event >]: Array of events that are part of the event group.
+ Name : The name of the event.
+ [DataSource ]: Reference to a data source for a given event.
+ [Destination >]: Destinations for an event.
+ [EventConfiguration ]: Stringified JSON that contains connector-specific configuration for the event. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
+ [TypeRef ]: URI or type definition ID.
+ [EventGroupConfiguration ]: Stringified JSON that contains connector-specific configuration for the event group. For OPC UA, this could include configuration like, publishingInterval, samplingInterval, and queueSize.
[TypeRef ]: URI or type definition ID.
INPUTOBJECT : Identity Parameter
@@ -112,6 +114,7 @@ MANAGEMENTGROUP : Array of management groups that are part o
[Topic ]: The MQTT topic path on which a client will receive the request for the action.
[TypeRef ]: URI or type definition ID.
[Configuration ]: Stringified JSON that contains connector-specific configuration for the management group.
+ [DataSource ]: Reference to a data source for a given management group.
[DefaultTimeoutInSecond ]: Default response timeout for all actions that are part of the management group.
[DefaultTopic ]: Default MQTT topic path on which a client will receive the request for all actions that are part of the management group.
[TypeRef ]: URI or type definition ID.
@@ -322,10 +325,10 @@ param(
[Parameter(ParameterSetName='UpdateViaIdentityNamespaceExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEvent[]]
- # Array of events that are part of the asset.
- # Each event can have per-event configuration.
- ${Event},
+ [Microsoft.Azure.PowerShell.Cmdlets.DeviceRegistry.Models.INamespaceEventGroup[]]
+ # Array of event groups that are part of the asset.
+ # Each event group can have per-event group configuration.
+ ${EventGroup},
[Parameter(ParameterSetName='UpdateExpanded')]
[Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDevice.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDevice.ps1
index cbc5a1875502..19074aa0ee7a 100644
--- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDevice.ps1
+++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDevice.ps1
@@ -23,13 +23,13 @@ Update a NamespaceDevice
$endpointsInbound = @{
"endpoint1" = @{
Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "Certificate"
X509CredentialsCertificateSecretName = "my-certificate"
}
"endpoint2" = @{
Address = "https://myendpoint2.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "UsernamePassword"
UsernamePasswordCredentialsUsernameSecretName = "my-username-secret"
UsernamePasswordCredentialsPasswordSecretName = "my-password-secret"
@@ -43,7 +43,7 @@ $updateJson = '{
"endpointsInbound": {
"endpoint1": {
"address": "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net",
- "endpointType": "Microsoft.IotHub",
+ "endpointType": "Microsoft.Devices/IotHubs",
"authentication": {
"method": "Certificate",
"x509Credentials": {
@@ -53,7 +53,7 @@ $updateJson = '{
},
"endpoint2": {
"address": "https://my-inbound-endpoint2.westeurope-1.iothub.azure.net",
- "endpointType": "Microsoft.IotHub",
+ "endpointType": "Microsoft.Devices/IotHubs",
"authentication": {
"method": "UsernamePassword",
"usernamePasswordCredentials": {
@@ -77,13 +77,13 @@ $namespaceIdentity = @{
$endpointsInbound = @{
"endpoint1" = @{
Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "Certificate"
X509CredentialsCertificateSecretName = "my-certificate"
}
"endpoint2" = @{
Address = "https://myendpoint2.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "UsernamePassword"
UsernamePasswordCredentialsUsernameSecretName = "my-username-secret"
UsernamePasswordCredentialsPasswordSecretName = "my-password-secret"
@@ -94,13 +94,13 @@ Update-AzDeviceRegistryNamespaceDevice -NamespaceInputObject $namespaceIdentity
$endpointsInbound = @{
"endpoint1" = @{
Address = "https://my-inbound-endpoint1.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "Certificate"
X509CredentialsCertificateSecretName = "my-certificate"
}
"endpoint2" = @{
Address = "https://myendpoint2.westeurope-1.iothub.azure.net"
- EndpointType = "Microsoft.IotHub"
+ EndpointType = "Microsoft.Devices/IotHubs"
AuthenticationMethod = "UsernamePassword"
UsernamePasswordCredentialsUsernameSecretName = "my-username-secret"
UsernamePasswordCredentialsPasswordSecretName = "my-password-secret"
diff --git a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredAsset.ps1 b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredAsset.ps1
index 5c1a0ab3f7a1..587145b6936a 100644
--- a/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredAsset.ps1
+++ b/generated/DeviceRegistry/DeviceRegistry.Autorest/exports/Update-AzDeviceRegistryNamespaceDiscoveredAsset.ps1
@@ -74,18 +74,19 @@ DEFAULTEVENTSDESTINATION : Default destinations for an even
DEFAULTSTREAMSDESTINATION : Default destinations for a stream.
Target : Target destination.
-EVENT : Array of events that are part of the asset. Each event can have per-event configuration.
- EventNotifier : 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.
- Name