From 4dc7fd5241104716c0eb7bbb4b7bf5c8f542fccb Mon Sep 17 00:00:00 2001
From: azure-powershell-bot
<65331932+azure-powershell-bot@users.noreply.github.com>
Date: Tue, 21 Oct 2025 01:01:19 +0000
Subject: [PATCH] [skip ci] Archive 8c91a890762bac880a210d3e329b98c6e40ba81b
---
.../Az.DeviceRegistry.format.ps1xml | 186 ++++-
.../Properties/AssemblyInfo.cs | 5 +-
.../New-AzDeviceRegistryNamespaceAsset.ps1 | 178 ++++-
.../New-AzDeviceRegistryNamespaceDevice.ps1 | 6 +-
...DeviceRegistryNamespaceDiscoveredAsset.ps1 | 199 ++++-
...eviceRegistryNamespaceDiscoveredDevice.ps1 | 8 +-
.../exports/ProxyCmdletDefinitions.ps1 | 524 +++++++++++--
.../exports/Remove-AzDeviceRegistrySchema.ps1 | 12 +
.../Remove-AzDeviceRegistrySchemaVersion.ps1 | 12 +
.../Update-AzDeviceRegistryNamespaceAsset.ps1 | 29 +-
...Update-AzDeviceRegistryNamespaceDevice.ps1 | 16 +-
...DeviceRegistryNamespaceDiscoveredAsset.ps1 | 48 +-
...eviceRegistryNamespaceDiscoveredDevice.ps1 | 16 +-
.../generate-info.json | 2 +-
.../generated/api/DeviceRegistry.cs | 710 +++++++++++-------
.../Models/HostAuthentication.PowerShell.cs | 20 +-
.../api/Models/HostAuthentication.cs | 56 +-
.../api/Models/HostAuthentication.json.cs | 2 +-
.../HostAuthenticationUpdate.PowerShell.cs | 20 +-
.../api/Models/HostAuthenticationUpdate.cs | 56 +-
.../Models/HostAuthenticationUpdate.json.cs | 2 +-
.../api/Models/InboundEndpoints.PowerShell.cs | 32 +-
.../generated/api/Models/InboundEndpoints.cs | 50 +-
.../InboundEndpointsUpdate.PowerShell.cs | 20 +-
.../api/Models/InboundEndpointsUpdate.cs | 50 +-
.../api/Models/ManagementGroup.PowerShell.cs | 8 +
.../generated/api/Models/ManagementGroup.cs | 20 +
.../api/Models/ManagementGroup.json.cs | 2 +
.../api/Models/NamespaceAsset.PowerShell.cs | 16 +-
.../generated/api/Models/NamespaceAsset.cs | 40 +-
.../NamespaceAssetProperties.PowerShell.cs | 16 +-
.../api/Models/NamespaceAssetProperties.cs | 44 +-
.../Models/NamespaceAssetProperties.json.cs | 8 +-
.../Models/NamespaceAssetStatus.PowerShell.cs | 8 +-
.../api/Models/NamespaceAssetStatus.cs | 26 +-
.../api/Models/NamespaceAssetStatus.json.cs | 8 +-
...espaceAssetStatusEventGroup.PowerShell.cs} | 62 +-
...paceAssetStatusEventGroup.TypeConverter.cs | 148 ++++
.../Models/NamespaceAssetStatusEventGroup.cs | 95 +++
...=> NamespaceAssetStatusEventGroup.json.cs} | 42 +-
.../Models/NamespaceAssetUpdate.PowerShell.cs | 8 +-
.../api/Models/NamespaceAssetUpdate.cs | 18 +-
...mespaceAssetUpdateProperties.PowerShell.cs | 8 +-
.../Models/NamespaceAssetUpdateProperties.cs | 22 +-
.../NamespaceAssetUpdateProperties.json.cs | 8 +-
.../NamespaceDiscoveredAsset.PowerShell.cs | 32 +-
.../api/Models/NamespaceDiscoveredAsset.cs | 69 +-
...aceDiscoveredAssetProperties.PowerShell.cs | 32 +-
.../NamespaceDiscoveredAssetProperties.cs | 82 +-
...NamespaceDiscoveredAssetProperties.json.cs | 17 +-
...mespaceDiscoveredAssetUpdate.PowerShell.cs | 24 +-
.../Models/NamespaceDiscoveredAssetUpdate.cs | 52 +-
...coveredAssetUpdateProperties.PowerShell.cs | 24 +-
...amespaceDiscoveredAssetUpdateProperties.cs | 62 +-
...aceDiscoveredAssetUpdateProperties.json.cs | 12 +-
.../NamespaceDiscoveredEvent.PowerShell.cs | 16 +-
.../api/Models/NamespaceDiscoveredEvent.cs | 54 +-
.../Models/NamespaceDiscoveredEvent.json.cs | 14 +-
.../NamespaceDiscoveredEventDataPoint.cs | 129 ----
...amespaceDiscoveredEventGroup.PowerShell.cs | 204 +++++
...paceDiscoveredEventGroup.TypeConverter.cs} | 29 +-
.../Models/NamespaceDiscoveredEventGroup.cs | 178 +++++
... => NamespaceDiscoveredEventGroup.json.cs} | 48 +-
...aceDiscoveredManagementGroup.PowerShell.cs | 8 +
.../NamespaceDiscoveredManagementGroup.cs | 20 +
...NamespaceDiscoveredManagementGroup.json.cs | 2 +
.../api/Models/NamespaceEvent.PowerShell.cs | 16 +-
.../generated/api/Models/NamespaceEvent.cs | 54 +-
.../api/Models/NamespaceEvent.json.cs | 14 +-
.../api/Models/NamespaceEventDataPoint.cs | 109 ---
.../Models/NamespaceEventGroup.PowerShell.cs | 204 +++++
...s => NamespaceEventGroup.TypeConverter.cs} | 28 +-
.../api/Models/NamespaceEventGroup.cs | 178 +++++
.../api/Models/NamespaceEventGroup.json.cs | 134 ++++
.../X509CertificateCredentials.PowerShell.cs | 180 +++++
...509CertificateCredentials.TypeConverter.cs | 147 ++++
.../api/Models/X509CertificateCredentials.cs | 112 +++
.../Models/X509CertificateCredentials.json.cs | 112 +++
...ertificateCredentialsUpdate.PowerShell.cs} | 110 ++-
...tificateCredentialsUpdate.TypeConverter.cs | 148 ++++
.../X509CertificateCredentialsUpdate.cs | 112 +++
.../X509CertificateCredentialsUpdate.json.cs | 112 +++
...zDeviceRegistryAssetEndpointProfile_Get.cs | 2 +-
...stryAssetEndpointProfile_GetViaIdentity.cs | 2 +-
...DeviceRegistryAssetEndpointProfile_List.cs | 2 +-
...eviceRegistryAssetEndpointProfile_List1.cs | 2 +-
.../cmdlets/GetAzDeviceRegistryAsset_Get.cs | 2 +-
...GetAzDeviceRegistryAsset_GetViaIdentity.cs | 2 +-
.../cmdlets/GetAzDeviceRegistryAsset_List.cs | 2 +-
.../cmdlets/GetAzDeviceRegistryAsset_List1.cs | 2 +-
...GetAzDeviceRegistryBillingContainer_Get.cs | 2 +-
...RegistryBillingContainer_GetViaIdentity.cs | 2 +-
...etAzDeviceRegistryBillingContainer_List.cs | 2 +-
.../GetAzDeviceRegistryNamespaceAsset_Get.cs | 2 +-
...ceRegistryNamespaceAsset_GetViaIdentity.cs | 2 +-
...yNamespaceAsset_GetViaIdentityNamespace.cs | 2 +-
.../GetAzDeviceRegistryNamespaceAsset_List.cs | 2 +-
.../GetAzDeviceRegistryNamespaceDevice_Get.cs | 2 +-
...eRegistryNamespaceDevice_GetViaIdentity.cs | 2 +-
...NamespaceDevice_GetViaIdentityNamespace.cs | 2 +-
...GetAzDeviceRegistryNamespaceDevice_List.cs | 2 +-
...iceRegistryNamespaceDiscoveredAsset_Get.cs | 2 +-
...NamespaceDiscoveredAsset_GetViaIdentity.cs | 2 +-
...DiscoveredAsset_GetViaIdentityNamespace.cs | 2 +-
...ceRegistryNamespaceDiscoveredAsset_List.cs | 2 +-
...ceRegistryNamespaceDiscoveredDevice_Get.cs | 2 +-
...amespaceDiscoveredDevice_GetViaIdentity.cs | 2 +-
...iscoveredDevice_GetViaIdentityNamespace.cs | 2 +-
...eRegistryNamespaceDiscoveredDevice_List.cs | 2 +-
.../GetAzDeviceRegistryNamespace_Get.cs | 2 +-
...zDeviceRegistryNamespace_GetViaIdentity.cs | 2 +-
.../GetAzDeviceRegistryNamespace_List.cs | 2 +-
.../GetAzDeviceRegistryNamespace_List1.cs | 2 +-
.../GetAzDeviceRegistryOperation_List.cs | 2 +-
.../GetAzDeviceRegistrySchemaRegistry_Get.cs | 2 +-
...ceRegistrySchemaRegistry_GetViaIdentity.cs | 2 +-
.../GetAzDeviceRegistrySchemaRegistry_List.cs | 2 +-
...GetAzDeviceRegistrySchemaRegistry_List1.cs | 2 +-
.../GetAzDeviceRegistrySchemaVersion_Get.cs | 2 +-
...iceRegistrySchemaVersion_GetViaIdentity.cs | 2 +-
...istrySchemaVersion_GetViaIdentitySchema.cs | 2 +-
...emaVersion_GetViaIdentitySchemaRegistry.cs | 2 +-
.../GetAzDeviceRegistrySchemaVersion_List.cs | 2 +-
.../cmdlets/GetAzDeviceRegistrySchema_Get.cs | 2 +-
...etAzDeviceRegistrySchema_GetViaIdentity.cs | 2 +-
...strySchema_GetViaIdentitySchemaRegistry.cs | 2 +-
.../cmdlets/GetAzDeviceRegistrySchema_List.cs | 2 +-
.../MoveAzDeviceRegistryNamespace_Migrate.cs | 2 +-
...DeviceRegistryNamespace_MigrateExpanded.cs | 2 +-
...iceRegistryNamespace_MigrateViaIdentity.cs | 2 +-
...tryNamespace_MigrateViaIdentityExpanded.cs | 2 +-
...egistryNamespace_MigrateViaJsonFilePath.cs | 2 +-
...eRegistryNamespace_MigrateViaJsonString.cs | 2 +-
...stryAssetEndpointProfile_CreateExpanded.cs | 2 +-
...etEndpointProfile_CreateViaJsonFilePath.cs | 2 +-
...ssetEndpointProfile_CreateViaJsonString.cs | 2 +-
...NewAzDeviceRegistryAsset_CreateExpanded.cs | 2 +-
...viceRegistryAsset_CreateViaJsonFilePath.cs | 2 +-
...DeviceRegistryAsset_CreateViaJsonString.cs | 2 +-
...ceRegistryNamespaceAsset_CreateExpanded.cs | 14 +-
...tryNamespaceAsset_CreateViaJsonFilePath.cs | 2 +-
...istryNamespaceAsset_CreateViaJsonString.cs | 2 +-
...eRegistryNamespaceDevice_CreateExpanded.cs | 2 +-
...ryNamespaceDevice_CreateViaJsonFilePath.cs | 2 +-
...stryNamespaceDevice_CreateViaJsonString.cs | 2 +-
...NamespaceDiscoveredAsset_CreateExpanded.cs | 47 +-
...ceDiscoveredAsset_CreateViaJsonFilePath.cs | 2 +-
...paceDiscoveredAsset_CreateViaJsonString.cs | 2 +-
...amespaceDiscoveredDevice_CreateExpanded.cs | 2 +-
...eDiscoveredDevice_CreateViaJsonFilePath.cs | 2 +-
...aceDiscoveredDevice_CreateViaJsonString.cs | 2 +-
...zDeviceRegistryNamespace_CreateExpanded.cs | 2 +-
...RegistryNamespace_CreateViaJsonFilePath.cs | 2 +-
...ceRegistryNamespace_CreateViaJsonString.cs | 2 +-
...ceRegistrySchemaRegistry_CreateExpanded.cs | 2 +-
...trySchemaRegistry_CreateViaJsonFilePath.cs | 2 +-
...istrySchemaRegistry_CreateViaJsonString.cs | 2 +-
...iceRegistrySchemaVersion_CreateExpanded.cs | 2 +-
...strySchemaVersion_CreateViaJsonFilePath.cs | 2 +-
...gistrySchemaVersion_CreateViaJsonString.cs | 2 +-
...ewAzDeviceRegistrySchema_CreateExpanded.cs | 2 +-
...iceRegistrySchema_CreateViaJsonFilePath.cs | 2 +-
...eviceRegistrySchema_CreateViaJsonString.cs | 2 +-
...viceRegistryAssetEndpointProfile_Delete.cs | 6 +-
...yAssetEndpointProfile_DeleteViaIdentity.cs | 6 +-
.../RemoveAzDeviceRegistryAsset_Delete.cs | 6 +-
...AzDeviceRegistryAsset_DeleteViaIdentity.cs | 6 +-
...veAzDeviceRegistryNamespaceAsset_Delete.cs | 6 +-
...egistryNamespaceAsset_DeleteViaIdentity.cs | 6 +-
...mespaceAsset_DeleteViaIdentityNamespace.cs | 6 +-
...eAzDeviceRegistryNamespaceDevice_Delete.cs | 6 +-
...gistryNamespaceDevice_DeleteViaIdentity.cs | 6 +-
...espaceDevice_DeleteViaIdentityNamespace.cs | 6 +-
...RegistryNamespaceDiscoveredAsset_Delete.cs | 6 +-
...espaceDiscoveredAsset_DeleteViaIdentity.cs | 6 +-
...coveredAsset_DeleteViaIdentityNamespace.cs | 6 +-
...egistryNamespaceDiscoveredDevice_Delete.cs | 6 +-
...spaceDiscoveredDevice_DeleteViaIdentity.cs | 6 +-
...overedDevice_DeleteViaIdentityNamespace.cs | 6 +-
.../RemoveAzDeviceRegistryNamespace_Delete.cs | 6 +-
...viceRegistryNamespace_DeleteViaIdentity.cs | 6 +-
...veAzDeviceRegistrySchemaRegistry_Delete.cs | 6 +-
...egistrySchemaRegistry_DeleteViaIdentity.cs | 6 +-
...oveAzDeviceRegistrySchemaVersion_Delete.cs | 112 ++-
...RegistrySchemaVersion_DeleteViaIdentity.cs | 109 ++-
...rySchemaVersion_DeleteViaIdentitySchema.cs | 112 ++-
...Version_DeleteViaIdentitySchemaRegistry.cs | 113 ++-
.../RemoveAzDeviceRegistrySchema_Delete.cs | 111 ++-
...zDeviceRegistrySchema_DeleteViaIdentity.cs | 109 ++-
...ySchema_DeleteViaIdentitySchemaRegistry.cs | 112 ++-
...stryAssetEndpointProfile_UpdateExpanded.cs | 2 +-
...dpointProfile_UpdateViaIdentityExpanded.cs | 2 +-
...etEndpointProfile_UpdateViaJsonFilePath.cs | 2 +-
...ssetEndpointProfile_UpdateViaJsonString.cs | 2 +-
...ateAzDeviceRegistryAsset_UpdateExpanded.cs | 2 +-
...RegistryAsset_UpdateViaIdentityExpanded.cs | 2 +-
...viceRegistryAsset_UpdateViaJsonFilePath.cs | 2 +-
...DeviceRegistryAsset_UpdateViaJsonString.cs | 2 +-
...ceRegistryNamespaceAsset_UpdateExpanded.cs | 14 +-
...amespaceAsset_UpdateViaIdentityExpanded.cs | 14 +-
...sset_UpdateViaIdentityNamespaceExpanded.cs | 14 +-
...tryNamespaceAsset_UpdateViaJsonFilePath.cs | 2 +-
...istryNamespaceAsset_UpdateViaJsonString.cs | 2 +-
...eRegistryNamespaceDevice_UpdateExpanded.cs | 2 +-
...mespaceDevice_UpdateViaIdentityExpanded.cs | 2 +-
...vice_UpdateViaIdentityNamespaceExpanded.cs | 2 +-
...ryNamespaceDevice_UpdateViaJsonFilePath.cs | 2 +-
...stryNamespaceDevice_UpdateViaJsonString.cs | 2 +-
...NamespaceDiscoveredAsset_UpdateExpanded.cs | 36 +-
...scoveredAsset_UpdateViaIdentityExpanded.cs | 36 +-
...sset_UpdateViaIdentityNamespaceExpanded.cs | 36 +-
...ceDiscoveredAsset_UpdateViaJsonFilePath.cs | 2 +-
...paceDiscoveredAsset_UpdateViaJsonString.cs | 2 +-
...amespaceDiscoveredDevice_UpdateExpanded.cs | 2 +-
...coveredDevice_UpdateViaIdentityExpanded.cs | 2 +-
...vice_UpdateViaIdentityNamespaceExpanded.cs | 2 +-
...eDiscoveredDevice_UpdateViaJsonFilePath.cs | 2 +-
...aceDiscoveredDevice_UpdateViaJsonString.cs | 2 +-
.../generated/runtime/Context.cs | 2 +-
219 files changed, 5501 insertions(+), 1556 deletions(-)
rename generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/{NamespaceEventDataPoint.PowerShell.cs => NamespaceAssetStatusEventGroup.PowerShell.cs} (66%)
create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatusEventGroup.TypeConverter.cs
create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceAssetStatusEventGroup.cs
rename generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/{NamespaceEventDataPoint.json.cs => NamespaceAssetStatusEventGroup.json.cs} (68%)
delete mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventDataPoint.cs
create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventGroup.PowerShell.cs
rename generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/{NamespaceDiscoveredEventDataPoint.TypeConverter.cs => NamespaceDiscoveredEventGroup.TypeConverter.cs} (83%)
create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceDiscoveredEventGroup.cs
rename generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/{NamespaceDiscoveredEventDataPoint.json.cs => NamespaceDiscoveredEventGroup.json.cs} (62%)
delete mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventDataPoint.cs
create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.PowerShell.cs
rename generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/{NamespaceEventDataPoint.TypeConverter.cs => NamespaceEventGroup.TypeConverter.cs} (85%)
create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.cs
create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/NamespaceEventGroup.json.cs
create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.PowerShell.cs
create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.TypeConverter.cs
create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.cs
create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentials.json.cs
rename generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/{NamespaceDiscoveredEventDataPoint.PowerShell.cs => X509CertificateCredentialsUpdate.PowerShell.cs} (59%)
create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.TypeConverter.cs
create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.cs
create mode 100644 generated/DeviceRegistry/DeviceRegistry.Autorest/generated/api/Models/X509CertificateCredentialsUpdate.json.cs
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