diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/Az.DigitalTwins.csproj b/generated/DigitalTwins/DigitalTwins.Autorest/Az.DigitalTwins.csproj
index 76b63031f31d..ca04c1c76876 100644
--- a/generated/DigitalTwins/DigitalTwins.Autorest/Az.DigitalTwins.csproj
+++ b/generated/DigitalTwins/DigitalTwins.Autorest/Az.DigitalTwins.csproj
@@ -2,9 +2,9 @@
DigitalTwins
DigitalTwins
+ DigitalTwins.Autorest
-
diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/Az.DigitalTwins.format.ps1xml b/generated/DigitalTwins/DigitalTwins.Autorest/Az.DigitalTwins.format.ps1xml
index c43b7ff8419e..84f549ac6281 100644
--- a/generated/DigitalTwins/DigitalTwins.Autorest/Az.DigitalTwins.format.ps1xml
+++ b/generated/DigitalTwins/DigitalTwins.Autorest/Az.DigitalTwins.format.ps1xml
@@ -2,73 +2,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsIdentity
-
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsIdentity
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- EndpointName
-
-
- Location
-
-
- PrivateEndpointConnectionName
-
-
- ResourceGroupName
-
-
- ResourceId
-
-
- ResourceName
-
-
- SubscriptionId
-
-
- TimeSeriesDatabaseConnectionName
-
-
-
-
-
-
-
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.AzureDataExplorerConnectionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.AzureDataExplorerConnectionProperties
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.AzureDataExplorerConnectionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.AzureDataExplorerConnectionProperties#Multiple
@@ -142,9 +78,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.CheckNameRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.CheckNameRequest
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.CheckNameRequest
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.CheckNameRequest#Multiple
@@ -164,9 +100,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.CheckNameResult
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.CheckNameResult
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.CheckNameResult
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.CheckNameResult#Multiple
@@ -198,15 +134,12 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ConnectionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ConnectionProperties
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ConnectionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ConnectionProperties#Multiple
-
-
-
@@ -214,9 +147,6 @@
-
- GroupId
-
ProvisioningState
@@ -226,9 +156,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ConnectionPropertiesPrivateLinkServiceConnectionState
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ConnectionPropertiesPrivateLinkServiceConnectionState
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ConnectionPropertiesPrivateLinkServiceConnectionState
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ConnectionPropertiesPrivateLinkServiceConnectionState#Multiple
@@ -260,9 +190,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ConnectionState
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ConnectionState
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ConnectionState
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ConnectionState#Multiple
@@ -294,9 +224,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsDescription
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsDescription
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsDescription
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsDescription#Multiple
@@ -328,9 +258,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsDescriptionListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsDescriptionListResult
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsDescriptionListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsDescriptionListResult#Multiple
@@ -350,9 +280,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsEndpointResource
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsEndpointResource
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsEndpointResource
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsEndpointResource#Multiple
@@ -390,9 +320,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsEndpointResourceListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsEndpointResourceListResult
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsEndpointResourceListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsEndpointResourceListResult#Multiple
@@ -412,9 +342,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsEndpointResourceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsEndpointResourceProperties
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsEndpointResourceProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsEndpointResourceProperties#Multiple
@@ -464,9 +394,73 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsIdentity
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsIdentity#Multiple
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ EndpointName
+
+
+ Location
+
+
+ PrivateEndpointConnectionName
+
+
+ ResourceGroupName
+
+
+ ResourceId
+
+
+ ResourceName
+
+
+ SubscriptionId
+
+
+ TimeSeriesDatabaseConnectionName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsIdentity1
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsIdentity
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsIdentity1#Multiple
@@ -492,9 +486,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsPatchDescriptionTags
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsPatchDescriptionTags
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsPatchDescriptionTags
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsPatchDescriptionTags#Multiple
@@ -514,9 +508,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsPatchProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsPatchProperties
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsPatchProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsPatchProperties#Multiple
@@ -536,9 +530,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsProperties
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsProperties#Multiple
@@ -582,9 +576,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsResource
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsResource
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsResource
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsResource#Multiple
@@ -610,9 +604,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsResourceTags
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.DigitalTwinsResourceTags
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.DigitalTwinsResourceTags#Multiple
@@ -632,9 +626,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ErrorDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ErrorDefinition
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ErrorDefinition
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ErrorDefinition#Multiple
@@ -660,9 +654,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.EventGrid
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.EventGrid
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.EventGrid
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.EventGrid#Multiple
@@ -730,9 +724,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.EventHub
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.EventHub
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.EventHub
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.EventHub#Multiple
@@ -806,9 +800,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ExternalResource
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ExternalResource
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ExternalResource
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ExternalResource#Multiple
@@ -828,15 +822,12 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.GroupIdInformation
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.GroupIdInformation
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.GroupIdInformation
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.GroupIdInformation#Multiple
-
-
-
@@ -847,9 +838,6 @@
-
- GroupId
-
Name
@@ -862,21 +850,15 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.GroupIdInformationProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.GroupIdInformationProperties
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.GroupIdInformationProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.GroupIdInformationProperties#Multiple
-
-
-
-
-
-
@@ -884,21 +866,15 @@
GroupId
-
- RequiredMember
-
-
- RequiredZoneName
-
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.Operation
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Operation
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.Operation
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Operation#Multiple
@@ -930,9 +906,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.OperationDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.OperationDisplay
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.OperationDisplay
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.OperationDisplay#Multiple
@@ -970,9 +946,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.OperationListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.OperationListResult
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.OperationListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.OperationListResult#Multiple
@@ -992,21 +968,15 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.PrivateEndpointConnection
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.PrivateEndpointConnection
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.PrivateEndpointConnection
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.PrivateEndpointConnection#Multiple
-
-
-
-
-
-
@@ -1017,12 +987,6 @@
Name
-
- GroupId
-
-
- PrivateLinkServiceConnectionStateStatus
-
ResourceGroupName
@@ -1032,9 +996,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ServiceBus
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ServiceBus
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ServiceBus
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ServiceBus#Multiple
@@ -1108,9 +1072,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.SystemData
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.SystemData
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.SystemData#Multiple
@@ -1160,9 +1124,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.TimeSeriesDatabaseConnection
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.TimeSeriesDatabaseConnection
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.TimeSeriesDatabaseConnection
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.TimeSeriesDatabaseConnection#Multiple
@@ -1200,9 +1164,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.TimeSeriesDatabaseConnectionListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.TimeSeriesDatabaseConnectionListResult
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.TimeSeriesDatabaseConnectionListResult
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.TimeSeriesDatabaseConnectionListResult#Multiple
@@ -1222,9 +1186,9 @@
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.TimeSeriesDatabaseConnectionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.TimeSeriesDatabaseConnectionProperties
- Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.TimeSeriesDatabaseConnectionProperties
+ Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.TimeSeriesDatabaseConnectionProperties#Multiple
diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/Az.DigitalTwins.psd1 b/generated/DigitalTwins/DigitalTwins.Autorest/Az.DigitalTwins.psd1
index 9762864297a1..625bc78360a6 100644
--- a/generated/DigitalTwins/DigitalTwins.Autorest/Az.DigitalTwins.psd1
+++ b/generated/DigitalTwins/DigitalTwins.Autorest/Az.DigitalTwins.psd1
@@ -11,8 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.DigitalTwins.private.dll'
FormatsToProcess = './Az.DigitalTwins.format.ps1xml'
- FunctionsToExport = 'Get-AzDigitalTwinsEndpoint', 'Get-AzDigitalTwinsInstance', 'Get-AzDigitalTwinsPrivateEndpointConnection', 'Get-AzDigitalTwinsPrivateLinkResource', 'Get-AzDigitalTwinsTimeSeriesDatabaseConnection', 'New-AzDigitalTwinsEndpoint', 'New-AzDigitalTwinsInstance', 'New-AzDigitalTwinsPrivateEndpointConnection', 'New-AzDigitalTwinsTimeSeriesDatabaseConnection', 'Remove-AzDigitalTwinsEndpoint', 'Remove-AzDigitalTwinsInstance', 'Remove-AzDigitalTwinsPrivateEndpointConnection', 'Remove-AzDigitalTwinsTimeSeriesDatabaseConnection', 'Test-AzDigitalTwinsInstanceNameAvailability', 'Update-AzDigitalTwinsInstance', '*'
- AliasesToExport = '*'
+ FunctionsToExport = 'Get-AzDigitalTwinsEndpoint', 'Get-AzDigitalTwinsInstance', 'Get-AzDigitalTwinsTimeSeriesDatabaseConnection', 'New-AzDigitalTwinsEndpoint', 'New-AzDigitalTwinsInstance', 'New-AzDigitalTwinsTimeSeriesDatabaseConnection', 'Remove-AzDigitalTwinsEndpoint', 'Remove-AzDigitalTwinsInstance', 'Remove-AzDigitalTwinsTimeSeriesDatabaseConnection', 'Test-AzDigitalTwinsInstanceNameAvailability', 'Update-AzDigitalTwinsEndpoint', 'Update-AzDigitalTwinsInstance', 'Update-AzDigitalTwinsTimeSeriesDatabaseConnection'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'DigitalTwins'
diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/Properties/AssemblyInfo.cs b/generated/DigitalTwins/DigitalTwins.Autorest/Properties/AssemblyInfo.cs
index d8264f24e864..01149b18451f 100644
--- a/generated/DigitalTwins/DigitalTwins.Autorest/Properties/AssemblyInfo.cs
+++ b/generated/DigitalTwins/DigitalTwins.Autorest/Properties/AssemblyInfo.cs
@@ -1,28 +1,27 @@
-// ----------------------------------------------------------------------------------
-//
-// Copyright Microsoft Corporation
-// Licensed under the Apache License, Version 2.0 (the "License");
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
+// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
-// ----------------------------------------------------------------------------------
+// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+// is regenerated.
using System;
using System.Reflection;
+using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-[assembly: AssemblyTitle("Microsoft Azure Powershell - DigitalTwins")]
-[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
-[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
-[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
+[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
+[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
+[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
+[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DigitalTwins")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.2")]
+[assembly: System.Reflection.AssemblyVersionAttribute("0.2.2")]
+[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
+[assembly: System.CLSCompliantAttribute(false)]
-[assembly: ComVisible(false)]
-[assembly: CLSCompliant(false)]
-[assembly: Guid("24e7bc71-0ecd-4a8d-ba0f-463ac5c2fc26")]
-[assembly: AssemblyVersion("0.2.2")]
-[assembly: AssemblyFileVersion("0.2.2")]
diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/check-dependencies.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/check-dependencies.ps1
index c29591c7bfe1..90ca9867ae40 100644
--- a/generated/DigitalTwins/DigitalTwins.Autorest/check-dependencies.ps1
+++ b/generated/DigitalTwins/DigitalTwins.Autorest/check-dependencies.ps1
@@ -12,13 +12,13 @@
# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
# is regenerated.
# ----------------------------------------------------------------------------------
-param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
+param([switch]$NotIsolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
$ErrorActionPreference = 'Stop'
-if(-not $Isolated) {
+if(-not $NotIsolated) {
Write-Host -ForegroundColor Green 'Creating isolated process...'
$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
- & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+ & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -NotIsolated
return
}
diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsEndpoint.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsEndpoint.ps1
index e5ec1a75c3cd..f154e9005e20 100644
--- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsEndpoint.ps1
+++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsEndpoint.ps1
@@ -27,12 +27,23 @@ Get-AzDigitalTwinsEndpoint -ResourceGroupName azps_test_group -ResourceName azps
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsEndpointResource
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+DIGITALTWINSINSTANCEINPUTOBJECT : Identity Parameter
+ [EndpointName ]: Name of Endpoint Resource.
+ [Id ]: Resource identity path
+ [Location ]: Location of DigitalTwinsInstance.
+ [PrivateEndpointConnectionName ]: The name of the private endpoint connection.
+ [ResourceGroupName ]: The name of the resource group that contains the DigitalTwinsInstance.
+ [ResourceId ]: The name of the private link resource.
+ [ResourceName ]: The name of the DigitalTwinsInstance.
+ [SubscriptionId ]: The subscription identifier.
+ [TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
+
INPUTOBJECT : Identity Parameter
[EndpointName ]: Name of Endpoint Resource.
[Id ]: Resource identity path
@@ -47,10 +58,11 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.digitaltwins/get-azdigitaltwinsendpoint
#>
function Get-AzDigitalTwinsEndpoint {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsEndpointResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityDigitalTwinsInstance', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# Name of Endpoint Resource.
@@ -82,9 +94,14 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='GetViaIdentityDigitalTwinsInstance', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
+ # Identity Parameter
+ ${DigitalTwinsInstanceInputObject},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -141,6 +158,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -162,11 +188,10 @@ begin {
$mapping = @{
Get = 'Az.DigitalTwins.private\Get-AzDigitalTwinsEndpoint_Get';
GetViaIdentity = 'Az.DigitalTwins.private\Get-AzDigitalTwinsEndpoint_GetViaIdentity';
+ GetViaIdentityDigitalTwinsInstance = 'Az.DigitalTwins.private\Get-AzDigitalTwinsEndpoint_GetViaIdentityDigitalTwinsInstance';
List = 'Az.DigitalTwins.private\Get-AzDigitalTwinsEndpoint_List';
}
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -180,6 +205,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsInstance.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsInstance.ps1
index 3c6fee4596d3..372f6035de5a 100644
--- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsInstance.ps1
+++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsInstance.ps1
@@ -29,7 +29,7 @@ Get-AzDigitalTwinsInstance -ResourceGroupName azps_test_group -ResourceName azps
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsDescription
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -49,7 +49,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.digitaltwins/get-azdigitaltwinsinstance
#>
function Get-AzDigitalTwinsInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsDescription])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -78,7 +78,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -137,6 +136,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -161,9 +169,7 @@ begin {
List = 'Az.DigitalTwins.private\Get-AzDigitalTwinsInstance_List';
List1 = 'Az.DigitalTwins.private\Get-AzDigitalTwinsInstance_List1';
}
- if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -177,6 +183,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsPrivateLinkResource.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsPrivateLinkResource.ps1
deleted file mode 100644
index adb9e4319435..000000000000
--- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsPrivateLinkResource.ps1
+++ /dev/null
@@ -1,224 +0,0 @@
-
-# ----------------------------------------------------------------------------------
-# Copyright (c) Microsoft Corporation. All rights reserved.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-# http://www.apache.org/licenses/LICENSE-2.0
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
-# is regenerated.
-# ----------------------------------------------------------------------------------
-
-<#
-.Synopsis
-Get the specified private link resource for the given Digital Twin.
-.Description
-Get the specified private link resource for the given Digital Twin.
-.Example
-Get-AzDigitalTwinsPrivateLinkResource -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance
-.Example
-Get-AzDigitalTwinsPrivateLinkResource -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -ResourceId API
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IGroupIdInformation
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-INPUTOBJECT : Identity Parameter
- [EndpointName ]: Name of Endpoint Resource.
- [Id ]: Resource identity path
- [Location ]: Location of DigitalTwinsInstance.
- [PrivateEndpointConnectionName ]: The name of the private endpoint connection.
- [ResourceGroupName ]: The name of the resource group that contains the DigitalTwinsInstance.
- [ResourceId ]: The name of the private link resource.
- [ResourceName ]: The name of the DigitalTwinsInstance.
- [SubscriptionId ]: The subscription identifier.
- [TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
-.Link
-https://learn.microsoft.com/powershell/module/az.digitaltwins/get-azdigitaltwinsprivatelinkresource
-#>
-function Get-AzDigitalTwinsPrivateLinkResource {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IGroupIdInformation])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
-param(
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [System.String]
- # The name of the resource group that contains the DigitalTwinsInstance.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [System.String]
- # The name of the private link resource.
- ${ResourceId},
-
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [System.String]
- # The name of the DigitalTwinsInstance.
- ${ResourceName},
-
- [Parameter(ParameterSetName='Get')]
- [Parameter(ParameterSetName='List')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String[]]
- # The subscription identifier.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The DefaultProfile parameter is not functional.
- # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
- ${DefaultProfile},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
-)
-
-begin {
- try {
- $outBuffer = $null
- if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
- $PSBoundParameters['OutBuffer'] = 1
- }
- $parameterSet = $PSCmdlet.ParameterSetName
-
- if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
- }
- $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- if ($preTelemetryId -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
- } else {
- $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- if ($internalCalledCmdlets -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
- } else {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
- }
-
- $mapping = @{
- Get = 'Az.DigitalTwins.private\Get-AzDigitalTwinsPrivateLinkResource_Get';
- GetViaIdentity = 'Az.DigitalTwins.private\Get-AzDigitalTwinsPrivateLinkResource_GetViaIdentity';
- List = 'Az.DigitalTwins.private\Get-AzDigitalTwinsPrivateLinkResource_List';
- }
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
- if ($testPlayback) {
- $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
- } else {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
- }
- }
- $cmdInfo = Get-Command -Name $mapping[$parameterSet]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
- }
- $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
- $scriptCmd = {& $wrappedCmd @PSBoundParameters}
- $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
- $steppablePipeline.Begin($PSCmdlet)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-
-process {
- try {
- $steppablePipeline.Process($_)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-
- finally {
- $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
-
-}
-end {
- try {
- $steppablePipeline.End()
-
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
- if ($preTelemetryId -eq '') {
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
-
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-}
diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1
index 463c01f71dd8..2c7678d3a455 100644
--- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1
+++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/Get-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1
@@ -27,12 +27,23 @@ Get-AzDigitalTwinsTimeSeriesDatabaseConnection -ResourceGroupName azps_test_grou
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ITimeSeriesDatabaseConnection
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+DIGITALTWINSINSTANCEINPUTOBJECT : Identity Parameter
+ [EndpointName ]: Name of Endpoint Resource.
+ [Id ]: Resource identity path
+ [Location ]: Location of DigitalTwinsInstance.
+ [PrivateEndpointConnectionName ]: The name of the private endpoint connection.
+ [ResourceGroupName ]: The name of the resource group that contains the DigitalTwinsInstance.
+ [ResourceId ]: The name of the private link resource.
+ [ResourceName ]: The name of the DigitalTwinsInstance.
+ [SubscriptionId ]: The subscription identifier.
+ [TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
+
INPUTOBJECT : Identity Parameter
[EndpointName ]: Name of Endpoint Resource.
[Id ]: Resource identity path
@@ -47,10 +58,11 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.digitaltwins/get-azdigitaltwinstimeseriesdatabaseconnection
#>
function Get-AzDigitalTwinsTimeSeriesDatabaseConnection {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ITimeSeriesDatabaseConnection])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityDigitalTwinsInstance', Mandatory)]
[Alias('TimeSeriesDatabaseConnectionName')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
@@ -83,9 +95,14 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='GetViaIdentityDigitalTwinsInstance', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
+ # Identity Parameter
+ ${DigitalTwinsInstanceInputObject},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -142,6 +159,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -163,11 +189,10 @@ begin {
$mapping = @{
Get = 'Az.DigitalTwins.private\Get-AzDigitalTwinsTimeSeriesDatabaseConnection_Get';
GetViaIdentity = 'Az.DigitalTwins.private\Get-AzDigitalTwinsTimeSeriesDatabaseConnection_GetViaIdentity';
+ GetViaIdentityDigitalTwinsInstance = 'Az.DigitalTwins.private\Get-AzDigitalTwinsTimeSeriesDatabaseConnection_GetViaIdentityDigitalTwinsInstance';
List = 'Az.DigitalTwins.private\Get-AzDigitalTwinsTimeSeriesDatabaseConnection_List';
}
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -181,6 +206,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsEndpoint.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsEndpoint.ps1
index a78a8b7686bc..8e4d404bfa62 100644
--- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsEndpoint.ps1
+++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsEndpoint.ps1
@@ -16,72 +16,76 @@
<#
.Synopsis
-Create or update DigitalTwinsInstance endpoint.
+Create DigitalTwinsInstance endpoint.
.Description
-Create or update DigitalTwinsInstance endpoint.
+Create DigitalTwinsInstance endpoint.
.Example
-New-AzDigitalTwinsEndpoint -EndpointName azps-dt-eh -EndpointType EventHub -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -connectionStringPrimaryKey 'Endpoint=sb://azps-eventhubs.servicebus.windows.net/;SharedAccessKeyName=abc123;SharedAccessKey=******;EntityPath=azps-eh' -AuthenticationType 'KeyBased'
+New-AzDigitalTwinsEndpoint -EndpointName azps-dt-eh -EndpointType EventHub -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -ConnectionStringPrimaryKey 'Endpoint=sb://azps-eventhubs.servicebus.windows.net/;SharedAccessKeyName=abc123;SharedAccessKey=******;EntityPath=azps-eh' -AuthenticationType 'KeyBased'
.Example
New-AzDigitalTwinsEndpoint -EndpointName azps-dt-eg -EndpointType EventGrid -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -TopicEndpoint 'https://azps-eventgrid.eastus-1.eventgrid.azure.net/api/events' -AccessKey1 '******=' -AuthenticationType 'KeyBased'
.Example
New-AzDigitalTwinsEndpoint -EndpointName azps-dt-sb -EndpointType ServiceBus -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -PrimaryConnectionString "Endpoint=sb://azps-servicebus.servicebus.windows.net/;SharedAccessKeyName=abc123;SharedAccessKey=******;EntityPath=azps-sb" -AuthenticationType 'KeyBased'
.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsEndpointResource
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsEndpointResource
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-ENDPOINTDESCRIPTION : DigitalTwinsInstance endpoint resource.
- EndpointType : The type of Digital Twins endpoint
- [SystemDataCreatedAt ]: The timestamp of resource creation (UTC).
- [SystemDataCreatedBy ]: The identity that created the resource.
- [SystemDataCreatedByType ]: The type of identity that created the resource.
- [SystemDataLastModifiedAt ]: The timestamp of resource last modification (UTC)
- [SystemDataLastModifiedBy ]: The identity that last modified the resource.
- [SystemDataLastModifiedByType ]: The type of identity that last modified the resource.
- [AuthenticationType ]: Specifies the authentication type being used for connecting to the endpoint. Defaults to 'KeyBased'. If 'KeyBased' is selected, a connection string must be specified (at least the primary connection string). If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified.
+ENDPOINTDESCRIPTION : DigitalTwinsInstance endpoint resource. To construct, see NOTES section for ENDPOINTDESCRIPTION properties and create a hash table.
+ EndpointType : The type of Digital Twins endpoint
+ [AuthenticationType ]: Specifies the authentication type being used for connecting to the endpoint. Defaults to 'KeyBased'. If 'KeyBased' is selected, a connection string must be specified (at least the primary connection string). If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified.
[DeadLetterSecret ]: Dead letter storage secret for key-based authentication. Will be obfuscated during read.
[DeadLetterUri ]: Dead letter storage URL for identity-based authentication.
.Link
https://learn.microsoft.com/powershell/module/az.digitaltwins/new-azdigitaltwinsendpoint
#>
function New-AzDigitalTwinsEndpoint {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsEndpointResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource])]
[CmdletBinding(DefaultParameterSetName='EventHub', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='EventHub', Mandatory)]
+ [Parameter(ParameterSetName='ServiceBus', Mandatory)]
+ [Parameter(ParameterSetName='EventGrid', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# Name of Endpoint Resource.
${EndpointName},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='EventHub', Mandatory)]
+ [Parameter(ParameterSetName='ServiceBus', Mandatory)]
+ [Parameter(ParameterSetName='EventGrid', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# The name of the resource group that contains the DigitalTwinsInstance.
${ResourceGroupName},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='EventHub', Mandatory)]
+ [Parameter(ParameterSetName='ServiceBus', Mandatory)]
+ [Parameter(ParameterSetName='EventGrid', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# The name of the DigitalTwinsInstance.
${ResourceName},
- [Parameter()]
+ [Parameter(ParameterSetName='EventHub')]
+ [Parameter(ParameterSetName='ServiceBus')]
+ [Parameter(ParameterSetName='EventGrid')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The subscription identifier.
${SubscriptionId},
- [Parameter(Mandatory)]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.EndpointType])]
+ [Parameter(ParameterSetName='EventHub', Mandatory)]
+ [Parameter(ParameterSetName='ServiceBus', Mandatory)]
+ [Parameter(ParameterSetName='EventGrid', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.PSArgumentCompleterAttribute("EventHub", "EventGrid", "ServiceBus")]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.EndpointType]
+ [System.String]
# The type of Digital Twins endpoint
${EndpointType},
@@ -91,17 +95,21 @@ param(
# The subscription identifier.
${ConnectionStringPrimaryKey},
- [Parameter(ValueFromPipeline)]
+ [Parameter(ParameterSetName='EventHub', ValueFromPipeline)]
+ [Parameter(ParameterSetName='ServiceBus', ValueFromPipeline)]
+ [Parameter(ParameterSetName='EventGrid', ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsEndpointResource]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource]
# DigitalTwinsInstance endpoint resource.
# To construct, see NOTES section for ENDPOINTDESCRIPTION properties and create a hash table.
${EndpointDescription},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.AuthenticationType])]
+ [Parameter(ParameterSetName='EventHub')]
+ [Parameter(ParameterSetName='ServiceBus')]
+ [Parameter(ParameterSetName='EventGrid')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.PSArgumentCompleterAttribute("KeyBased", "IdentityBased")]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.AuthenticationType]
+ [System.String]
# Specifies the authentication type being used for connecting to the endpoint.
# Defaults to 'KeyBased'.
# If 'KeyBased' is selected, a connection string must be specified (at least the primary connection string).
@@ -114,14 +122,16 @@ param(
# The subscription identifier.
${ConnectionStringSecondaryKey},
- [Parameter()]
+ [Parameter(ParameterSetName='EventHub')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
[System.String]
# Dead letter storage secret for key-based authentication.
# Will be obfuscated during read.
${DeadLetterSecret},
- [Parameter()]
+ [Parameter(ParameterSetName='EventHub')]
+ [Parameter(ParameterSetName='ServiceBus')]
+ [Parameter(ParameterSetName='EventGrid')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
[System.String]
# Dead letter storage URL for identity-based authentication.
@@ -145,12 +155,25 @@ param(
# The subscription identifier.
${AccessKey1},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter()]
@@ -212,6 +235,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -234,10 +266,10 @@ begin {
EventHub = 'Az.DigitalTwins.custom\New-AzDigitalTwinsEndpoint';
ServiceBus = 'Az.DigitalTwins.custom\New-AzDigitalTwinsEndpoint';
EventGrid = 'Az.DigitalTwins.custom\New-AzDigitalTwinsEndpoint';
+ CreateViaJsonFilePath = 'Az.DigitalTwins.custom\New-AzDigitalTwinsEndpoint';
+ CreateViaJsonString = 'Az.DigitalTwins.custom\New-AzDigitalTwinsEndpoint';
}
- if (('EventHub', 'ServiceBus', 'EventGrid') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('EventHub', 'ServiceBus', 'EventGrid') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -251,6 +283,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsInstance.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsInstance.ps1
index fe973358cf94..9f68dd9a5550 100644
--- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsInstance.ps1
+++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsInstance.ps1
@@ -16,114 +16,97 @@
<#
.Synopsis
-Create or update the metadata of a DigitalTwinsInstance.
-The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance.
+Create the metadata of a DigitalTwinsInstance.
+The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to create the DigitalTwinsInstance.
.Description
-Create or update the metadata of a DigitalTwinsInstance.
-The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance.
+Create the metadata of a DigitalTwinsInstance.
+The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to create the DigitalTwinsInstance.
.Example
-New-AzDigitalTwinsInstance -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -Location eastus -IdentityType 'SystemAssigned' -PublicNetworkAccess 'Enabled'
+New-AzDigitalTwinsInstance -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -Location eastus -EnableSystemAssignedIdentity:$true -PublicNetworkAccess 'Enabled'
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsDescription
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
- [EndpointName ]: Name of Endpoint Resource.
- [Id ]: Resource identity path
- [Location ]: Location of DigitalTwinsInstance.
- [PrivateEndpointConnectionName ]: The name of the private endpoint connection.
- [ResourceGroupName ]: The name of the resource group that contains the DigitalTwinsInstance.
- [ResourceId ]: The name of the private link resource.
- [ResourceName ]: The name of the DigitalTwinsInstance.
- [SubscriptionId ]: The subscription identifier.
- [TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
-
PRIVATEENDPOINTCONNECTION : The private endpoint connections.
- [GroupId ]: The list of group ids for the private endpoint connection.
+ [GroupId >]: The list of group ids for the private endpoint connection.
[PrivateLinkServiceConnectionStateActionsRequired ]: Actions required for a private endpoint connection.
[PrivateLinkServiceConnectionStateDescription ]: The description for the current state of a private endpoint connection.
- [PrivateLinkServiceConnectionStateStatus ]: The status of a private endpoint connection.
- [SystemDataCreatedAt ]: The timestamp of resource creation (UTC).
- [SystemDataCreatedBy ]: The identity that created the resource.
- [SystemDataCreatedByType ]: The type of identity that created the resource.
- [SystemDataLastModifiedAt ]: The timestamp of resource last modification (UTC)
- [SystemDataLastModifiedBy ]: The identity that last modified the resource.
- [SystemDataLastModifiedByType ]: The type of identity that last modified the resource.
+ [PrivateLinkServiceConnectionStateStatus ]: The status of a private endpoint connection.
.Link
https://learn.microsoft.com/powershell/module/az.digitaltwins/new-azdigitaltwinsinstance
#>
function New-AzDigitalTwinsInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsDescription])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# The name of the resource group that contains the DigitalTwinsInstance.
${ResourceGroupName},
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# The name of the DigitalTwinsInstance.
${ResourceName},
- [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The subscription identifier.
${SubscriptionId},
- [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
-
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
[System.String]
# The resource location.
${Location},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.DigitalTwinsIdentityType])]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.DigitalTwinsIdentityType]
- # The type of Managed Identity used by the DigitalTwinsInstance.
- # Only SystemAssigned is supported.
- ${IdentityType},
+ [System.Management.Automation.SwitchParameter]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[AllowEmptyCollection()]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IPrivateEndpointConnection[]]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IPrivateEndpointConnection[]]
# The private endpoint connections.
- # To construct, see NOTES section for PRIVATEENDPOINTCONNECTION properties and create a hash table.
${PrivateEndpointConnection},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.PublicNetworkAccess])]
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.PSArgumentCompleterAttribute("Enabled", "Disabled")]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.PublicNetworkAccess]
+ [System.String]
# Public network access for the DigitalTwinsInstance.
${PublicNetworkAccess},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsResourceTags]))]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsResourceTags]))]
[System.Collections.Hashtable]
# The resource tags.
${Tag},
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -192,6 +175,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -212,11 +204,10 @@ begin {
$mapping = @{
CreateExpanded = 'Az.DigitalTwins.private\New-AzDigitalTwinsInstance_CreateExpanded';
- CreateViaIdentityExpanded = 'Az.DigitalTwins.private\New-AzDigitalTwinsInstance_CreateViaIdentityExpanded';
+ CreateViaJsonFilePath = 'Az.DigitalTwins.private\New-AzDigitalTwinsInstance_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.DigitalTwins.private\New-AzDigitalTwinsInstance_CreateViaJsonString';
}
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -230,6 +221,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1
index 86fe70d7bcfa..bd063ab6c254 100644
--- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1
+++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/New-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1
@@ -16,138 +16,114 @@
<#
.Synopsis
-Create or update a time series database connection.
+Create a time series database connection.
.Description
-Create or update a time series database connection.
+Create a time series database connection.
.Example
-New-AzDigitalTwinsTimeSeriesDatabaseConnection -Name azps-tsdc -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -AdxDatabaseName "azpsadec1database" -AdxEndpointUri "https://azpsdataexplorer.eastus.kusto.windows.net" -AdxResourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azps_test_group/providers/Microsoft.Kusto/clusters/azpsdataexplorer" -AdxTableName "azpsadec1database-table" -EventHubEndpointUri "sb://azps-eventhubs.servicebus.windows.net/" -EventHubEntityPath "azps-eventhubs" -EventHubNamespaceResourceId "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azps_test_group/providers/Microsoft.EventHub/namespaces/azps-eventhubs"
+New-AzDigitalTwinsTimeSeriesDatabaseConnection -Name azps-tsdc -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -AdxDatabaseName "azpsadec1database" -AdxEndpointUri "https://azpsdataexplorer.eastus.kusto.windows.net" -AdxResourceId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.Kusto/clusters/azpsdataexplorer" -AdxTableName "azpsadec1database-table" -EventHubEndpointUri "sb://azps-eventhubs.servicebus.windows.net/" -EventHubEntityPath "azps-eventhubs" -EventHubNamespaceResourceId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.EventHub/namespaces/azps-eventhubs"
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ITimeSeriesDatabaseConnection
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ITimeSeriesDatabaseConnection
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-INPUTOBJECT : Identity Parameter
- [EndpointName ]: Name of Endpoint Resource.
- [Id ]: Resource identity path
- [Location ]: Location of DigitalTwinsInstance.
- [PrivateEndpointConnectionName ]: The name of the private endpoint connection.
- [ResourceGroupName ]: The name of the resource group that contains the DigitalTwinsInstance.
- [ResourceId ]: The name of the private link resource.
- [ResourceName ]: The name of the DigitalTwinsInstance.
- [SubscriptionId ]: The subscription identifier.
- [TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
-
-TIMESERIESDATABASECONNECTIONDESCRIPTION : Describes a time series database connection resource.
- [SystemDataCreatedAt ]: The timestamp of resource creation (UTC).
- [SystemDataCreatedBy ]: The identity that created the resource.
- [SystemDataCreatedByType ]: The type of identity that created the resource.
- [SystemDataLastModifiedAt ]: The timestamp of resource last modification (UTC)
- [SystemDataLastModifiedBy ]: The identity that last modified the resource.
- [SystemDataLastModifiedByType ]: The type of identity that last modified the resource.
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection
.Link
https://learn.microsoft.com/powershell/module/az.digitaltwins/new-azdigitaltwinstimeseriesdatabaseconnection
#>
function New-AzDigitalTwinsTimeSeriesDatabaseConnection {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ITimeSeriesDatabaseConnection])]
-[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Create', Mandatory)]
+ [Parameter(Mandatory)]
[Alias('TimeSeriesDatabaseConnectionName')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# Name of time series database connection.
${Name},
- [Parameter(ParameterSetName='Create', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# The name of the resource group that contains the DigitalTwinsInstance.
${ResourceGroupName},
- [Parameter(ParameterSetName='Create', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# The name of the DigitalTwinsInstance.
${ResourceName},
- [Parameter(ParameterSetName='Create')]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The subscription identifier.
${SubscriptionId},
- [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
-
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
[System.String]
# The name of the Azure Data Explorer database.
${AdxDatabaseName},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
[System.String]
# The URI of the Azure Data Explorer endpoint.
${AdxEndpointUri},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
[System.String]
# The resource ID of the Azure Data Explorer cluster.
${AdxResourceId},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
[System.String]
# The name of the Azure Data Explorer table.
# Defaults to AdtPropertyEvents.
${AdxTableName},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
[System.String]
# The URL of the EventHub namespace for identity-based authentication.
# It must include the protocol sb://
${EventHubEndpointUri},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
[System.String]
# The EventHub name in the EventHub namespace for identity-based authentication.
${EventHubEntityPath},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
[System.String]
# The resource ID of the EventHub namespace.
${EventHubNamespaceResourceId},
- [Parameter(ValueFromPipeline)]
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ITimeSeriesDatabaseConnection]
- # Describes a time series database connection resource.
- # To construct, see NOTES section for TIMESERIESDATABASECONNECTIONDESCRIPTION properties and create a hash table.
- ${TimeSeriesDatabaseConnectionDescription},
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Azure')]
[System.Management.Automation.PSObject]
- # The credentials, account, tenant, and subscription used for communication with Azure.
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
[Parameter()]
@@ -209,6 +185,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -228,12 +213,11 @@ begin {
}
$mapping = @{
- Create = 'Az.DigitalTwins.custom\New-AzDigitalTwinsTimeSeriesDatabaseConnection';
- CreateViaIdentity = 'Az.DigitalTwins.custom\New-AzDigitalTwinsTimeSeriesDatabaseConnection';
+ CreateExpanded = 'Az.DigitalTwins.custom\New-AzDigitalTwinsTimeSeriesDatabaseConnection';
+ CreateViaJsonString = 'Az.DigitalTwins.custom\New-AzDigitalTwinsTimeSeriesDatabaseConnection';
+ CreateViaJsonFilePath = 'Az.DigitalTwins.custom\New-AzDigitalTwinsTimeSeriesDatabaseConnection';
}
- if (('Create') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded', 'CreateViaJsonString', 'CreateViaJsonFilePath') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -247,6 +231,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
diff --git a/generated/DigitalTwins/DigitalTwins.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/DigitalTwins/DigitalTwins.Autorest/exports/ProxyCmdletDefinitions.ps1
index 47c0e23ccc76..13a7f7eceef9 100644
--- a/generated/DigitalTwins/DigitalTwins.Autorest/exports/ProxyCmdletDefinitions.ps1
+++ b/generated/DigitalTwins/DigitalTwins.Autorest/exports/ProxyCmdletDefinitions.ps1
@@ -27,12 +27,23 @@ Get-AzDigitalTwinsEndpoint -ResourceGroupName azps_test_group -ResourceName azps
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsEndpointResource
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+DIGITALTWINSINSTANCEINPUTOBJECT : Identity Parameter
+ [EndpointName ]: Name of Endpoint Resource.
+ [Id ]: Resource identity path
+ [Location ]: Location of DigitalTwinsInstance.
+ [PrivateEndpointConnectionName ]: The name of the private endpoint connection.
+ [ResourceGroupName ]: The name of the resource group that contains the DigitalTwinsInstance.
+ [ResourceId ]: The name of the private link resource.
+ [ResourceName ]: The name of the DigitalTwinsInstance.
+ [SubscriptionId ]: The subscription identifier.
+ [TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
+
INPUTOBJECT : Identity Parameter
[EndpointName ]: Name of Endpoint Resource.
[Id ]: Resource identity path
@@ -47,10 +58,11 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.digitaltwins/get-azdigitaltwinsendpoint
#>
function Get-AzDigitalTwinsEndpoint {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsEndpointResource])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='GetViaIdentityDigitalTwinsInstance', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# Name of Endpoint Resource.
@@ -82,9 +94,14 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='GetViaIdentityDigitalTwinsInstance', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
+ # Identity Parameter
+ ${DigitalTwinsInstanceInputObject},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -141,6 +158,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -162,11 +188,10 @@ begin {
$mapping = @{
Get = 'Az.DigitalTwins.private\Get-AzDigitalTwinsEndpoint_Get';
GetViaIdentity = 'Az.DigitalTwins.private\Get-AzDigitalTwinsEndpoint_GetViaIdentity';
+ GetViaIdentityDigitalTwinsInstance = 'Az.DigitalTwins.private\Get-AzDigitalTwinsEndpoint_GetViaIdentityDigitalTwinsInstance';
List = 'Az.DigitalTwins.private\Get-AzDigitalTwinsEndpoint_List';
}
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -180,6 +205,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -238,7 +266,7 @@ Get-AzDigitalTwinsInstance -ResourceGroupName azps_test_group -ResourceName azps
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsDescription
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -258,7 +286,7 @@ INPUTOBJECT : Identity Parameter
https://learn.microsoft.com/powershell/module/az.digitaltwins/get-azdigitaltwinsinstance
#>
function Get-AzDigitalTwinsInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsDescription])]
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -287,7 +315,6 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
[Parameter()]
@@ -346,6 +373,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -370,9 +406,7 @@ begin {
List = 'Az.DigitalTwins.private\Get-AzDigitalTwinsInstance_List';
List1 = 'Az.DigitalTwins.private\Get-AzDigitalTwinsInstance_List1';
}
- if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -386,6 +420,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -431,23 +468,34 @@ end {
<#
.Synopsis
-Get private endpoint connection properties for the given private endpoint.
+Get the description of an existing time series database connection.
.Description
-Get private endpoint connection properties for the given private endpoint.
+Get the description of an existing time series database connection.
.Example
-Get-AzDigitalTwinsPrivateEndpointConnection -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance
+Get-AzDigitalTwinsTimeSeriesDatabaseConnection -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance
.Example
-Get-AzDigitalTwinsPrivateEndpointConnection -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -Name "11c903a5-7b8a-4b86-812d-03f007dca6df"
+Get-AzDigitalTwinsTimeSeriesDatabaseConnection -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -Name azps-tsdc
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IPrivateEndpointConnection
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+DIGITALTWINSINSTANCEINPUTOBJECT : Identity Parameter
+ [EndpointName ]: Name of Endpoint Resource.
+ [Id ]: Resource identity path
+ [Location ]: Location of DigitalTwinsInstance.
+ [PrivateEndpointConnectionName ]: The name of the private endpoint connection.
+ [ResourceGroupName ]: The name of the resource group that contains the DigitalTwinsInstance.
+ [ResourceId ]: The name of the private link resource.
+ [ResourceName ]: The name of the DigitalTwinsInstance.
+ [SubscriptionId ]: The subscription identifier.
+ [TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
+
INPUTOBJECT : Identity Parameter
[EndpointName ]: Name of Endpoint Resource.
[Id ]: Resource identity path
@@ -459,17 +507,18 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The subscription identifier.
[TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
.Link
-https://learn.microsoft.com/powershell/module/az.digitaltwins/get-azdigitaltwinsprivateendpointconnection
+https://learn.microsoft.com/powershell/module/az.digitaltwins/get-azdigitaltwinstimeseriesdatabaseconnection
#>
-function Get-AzDigitalTwinsPrivateEndpointConnection {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IPrivateEndpointConnection])]
+function Get-AzDigitalTwinsTimeSeriesDatabaseConnection {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection])]
[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
param(
[Parameter(ParameterSetName='Get', Mandatory)]
- [Alias('PrivateEndpointConnectionName')]
+ [Parameter(ParameterSetName='GetViaIdentityDigitalTwinsInstance', Mandatory)]
+ [Alias('TimeSeriesDatabaseConnectionName')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
- # The name of the private endpoint connection.
+ # Name of time series database connection.
${Name},
[Parameter(ParameterSetName='Get', Mandatory)]
@@ -498,9 +547,14 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='GetViaIdentityDigitalTwinsInstance', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
+ # Identity Parameter
+ ${DigitalTwinsInstanceInputObject},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -557,6 +611,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -576,13 +639,12 @@ begin {
}
$mapping = @{
- Get = 'Az.DigitalTwins.private\Get-AzDigitalTwinsPrivateEndpointConnection_Get';
- GetViaIdentity = 'Az.DigitalTwins.private\Get-AzDigitalTwinsPrivateEndpointConnection_GetViaIdentity';
- List = 'Az.DigitalTwins.private\Get-AzDigitalTwinsPrivateEndpointConnection_List';
+ Get = 'Az.DigitalTwins.private\Get-AzDigitalTwinsTimeSeriesDatabaseConnection_Get';
+ GetViaIdentity = 'Az.DigitalTwins.private\Get-AzDigitalTwinsTimeSeriesDatabaseConnection_GetViaIdentity';
+ GetViaIdentityDigitalTwinsInstance = 'Az.DigitalTwins.private\Get-AzDigitalTwinsTimeSeriesDatabaseConnection_GetViaIdentityDigitalTwinsInstance';
+ List = 'Az.DigitalTwins.private\Get-AzDigitalTwinsTimeSeriesDatabaseConnection_List';
}
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -596,6 +658,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -641,74 +706,96 @@ end {
<#
.Synopsis
-Get the specified private link resource for the given Digital Twin.
+Create the metadata of a DigitalTwinsInstance.
+The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to create the DigitalTwinsInstance.
.Description
-Get the specified private link resource for the given Digital Twin.
+Create the metadata of a DigitalTwinsInstance.
+The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to create the DigitalTwinsInstance.
.Example
-Get-AzDigitalTwinsPrivateLinkResource -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance
-.Example
-Get-AzDigitalTwinsPrivateLinkResource -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -ResourceId API
+New-AzDigitalTwinsInstance -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -Location eastus -EnableSystemAssignedIdentity:$true -PublicNetworkAccess 'Enabled'
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IGroupIdInformation
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
- [EndpointName ]: Name of Endpoint Resource.
- [Id ]: Resource identity path
- [Location ]: Location of DigitalTwinsInstance.
- [PrivateEndpointConnectionName ]: The name of the private endpoint connection.
- [ResourceGroupName ]: The name of the resource group that contains the DigitalTwinsInstance.
- [ResourceId ]: The name of the private link resource.
- [ResourceName ]: The name of the DigitalTwinsInstance.
- [SubscriptionId ]: The subscription identifier.
- [TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
+PRIVATEENDPOINTCONNECTION : The private endpoint connections.
+ [GroupId >]: The list of group ids for the private endpoint connection.
+ [PrivateLinkServiceConnectionStateActionsRequired ]: Actions required for a private endpoint connection.
+ [PrivateLinkServiceConnectionStateDescription ]: The description for the current state of a private endpoint connection.
+ [PrivateLinkServiceConnectionStateStatus ]: The status of a private endpoint connection.
.Link
-https://learn.microsoft.com/powershell/module/az.digitaltwins/get-azdigitaltwinsprivatelinkresource
+https://learn.microsoft.com/powershell/module/az.digitaltwins/new-azdigitaltwinsinstance
#>
-function Get-AzDigitalTwinsPrivateLinkResource {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IGroupIdInformation])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+function New-AzDigitalTwinsInstance {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# The name of the resource group that contains the DigitalTwinsInstance.
${ResourceGroupName},
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [System.String]
- # The name of the private link resource.
- ${ResourceId},
-
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# The name of the DigitalTwinsInstance.
${ResourceName},
- [Parameter(ParameterSetName='Get')]
- [Parameter(ParameterSetName='List')]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String[]]
+ [System.String]
# The subscription identifier.
${SubscriptionId},
- [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # The resource location.
+ ${Location},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IPrivateEndpointConnection[]]
+ # The private endpoint connections.
+ ${PrivateEndpointConnection},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.PSArgumentCompleterAttribute("Enabled", "Disabled")]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Public network access for the DigitalTwinsInstance.
+ ${PublicNetworkAccess},
+
+ [Parameter(ParameterSetName='CreateExpanded')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsResourceTags]))]
+ [System.Collections.Hashtable]
+ # The resource tags.
+ ${Tag},
+
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -719,6 +806,12 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -739,6 +832,12 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
[System.Uri]
@@ -766,6 +865,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -785,13 +893,11 @@ begin {
}
$mapping = @{
- Get = 'Az.DigitalTwins.private\Get-AzDigitalTwinsPrivateLinkResource_Get';
- GetViaIdentity = 'Az.DigitalTwins.private\Get-AzDigitalTwinsPrivateLinkResource_GetViaIdentity';
- List = 'Az.DigitalTwins.private\Get-AzDigitalTwinsPrivateLinkResource_List';
+ CreateExpanded = 'Az.DigitalTwins.private\New-AzDigitalTwinsInstance_CreateExpanded';
+ CreateViaJsonFilePath = 'Az.DigitalTwins.private\New-AzDigitalTwinsInstance_CreateViaJsonFilePath';
+ CreateViaJsonString = 'Az.DigitalTwins.private\New-AzDigitalTwinsInstance_CreateViaJsonString';
}
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded', 'CreateViaJsonFilePath', 'CreateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -805,6 +911,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -850,23 +959,32 @@ end {
<#
.Synopsis
-Get the description of an existing time series database connection.
+Delete a DigitalTwinsInstance endpoint.
.Description
-Get the description of an existing time series database connection.
-.Example
-Get-AzDigitalTwinsTimeSeriesDatabaseConnection -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance
+Delete a DigitalTwinsInstance endpoint.
.Example
-Get-AzDigitalTwinsTimeSeriesDatabaseConnection -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -Name azps-tsdc
+Remove-AzDigitalTwinsEndpoint -EndpointName azps-dt-eg -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ITimeSeriesDatabaseConnection
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+DIGITALTWINSINSTANCEINPUTOBJECT : Identity Parameter
+ [EndpointName ]: Name of Endpoint Resource.
+ [Id ]: Resource identity path
+ [Location ]: Location of DigitalTwinsInstance.
+ [PrivateEndpointConnectionName ]: The name of the private endpoint connection.
+ [ResourceGroupName ]: The name of the resource group that contains the DigitalTwinsInstance.
+ [ResourceId ]: The name of the private link resource.
+ [ResourceName ]: The name of the DigitalTwinsInstance.
+ [SubscriptionId ]: The subscription identifier.
+ [TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
+
INPUTOBJECT : Identity Parameter
[EndpointName ]: Name of Endpoint Resource.
[Id ]: Resource identity path
@@ -878,48 +996,50 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The subscription identifier.
[TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
.Link
-https://learn.microsoft.com/powershell/module/az.digitaltwins/get-azdigitaltwinstimeseriesdatabaseconnection
+https://learn.microsoft.com/powershell/module/az.digitaltwins/remove-azdigitaltwinsendpoint
#>
-function Get-AzDigitalTwinsTimeSeriesDatabaseConnection {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ITimeSeriesDatabaseConnection])]
-[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+function Remove-AzDigitalTwinsEndpoint {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Alias('TimeSeriesDatabaseConnectionName')]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Parameter(ParameterSetName='DeleteViaIdentityDigitalTwinsInstance', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
- # Name of time series database connection.
- ${Name},
+ # Name of Endpoint Resource.
+ ${EndpointName},
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# The name of the resource group that contains the DigitalTwinsInstance.
${ResourceGroupName},
- [Parameter(ParameterSetName='Get', Mandatory)]
- [Parameter(ParameterSetName='List', Mandatory)]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# The name of the DigitalTwinsInstance.
${ResourceName},
- [Parameter(ParameterSetName='Get')]
- [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='Delete')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String[]]
+ [System.String]
# The subscription identifier.
${SubscriptionId},
- [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='DeleteViaIdentityDigitalTwinsInstance', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
+ # Identity Parameter
+ ${DigitalTwinsInstanceInputObject},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -929,6 +1049,12 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -949,6 +1075,18 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Returns true when the command succeeds
+ ${PassThru},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
[System.Uri]
@@ -976,6 +1114,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -995,13 +1142,11 @@ begin {
}
$mapping = @{
- Get = 'Az.DigitalTwins.private\Get-AzDigitalTwinsTimeSeriesDatabaseConnection_Get';
- GetViaIdentity = 'Az.DigitalTwins.private\Get-AzDigitalTwinsTimeSeriesDatabaseConnection_GetViaIdentity';
- List = 'Az.DigitalTwins.private\Get-AzDigitalTwinsTimeSeriesDatabaseConnection_List';
+ Delete = 'Az.DigitalTwins.private\Remove-AzDigitalTwinsEndpoint_Delete';
+ DeleteViaIdentity = 'Az.DigitalTwins.private\Remove-AzDigitalTwinsEndpoint_DeleteViaIdentity';
+ DeleteViaIdentityDigitalTwinsInstance = 'Az.DigitalTwins.private\Remove-AzDigitalTwinsEndpoint_DeleteViaIdentityDigitalTwinsInstance';
}
- if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1015,6 +1160,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1060,18 +1208,16 @@ end {
<#
.Synopsis
-Create or update the metadata of a DigitalTwinsInstance.
-The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance.
+Delete a DigitalTwinsInstance.
.Description
-Create or update the metadata of a DigitalTwinsInstance.
-The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance.
+Delete a DigitalTwinsInstance.
.Example
-New-AzDigitalTwinsInstance -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -Location eastus -IdentityType 'SystemAssigned' -PublicNetworkAccess 'Enabled'
+Remove-AzDigitalTwinsInstance -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsDescription
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -1087,558 +1233,52 @@ INPUTOBJECT : Identity Parameter
[ResourceName ]: The name of the DigitalTwinsInstance.
[SubscriptionId ]: The subscription identifier.
[TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
-
-PRIVATEENDPOINTCONNECTION : The private endpoint connections.
- [GroupId ]: The list of group ids for the private endpoint connection.
- [PrivateLinkServiceConnectionStateActionsRequired ]: Actions required for a private endpoint connection.
- [PrivateLinkServiceConnectionStateDescription ]: The description for the current state of a private endpoint connection.
- [PrivateLinkServiceConnectionStateStatus ]: The status of a private endpoint connection.
- [SystemDataCreatedAt ]: The timestamp of resource creation (UTC).
- [SystemDataCreatedBy ]: The identity that created the resource.
- [SystemDataCreatedByType ]: The type of identity that created the resource.
- [SystemDataLastModifiedAt ]: The timestamp of resource last modification (UTC)
- [SystemDataLastModifiedBy ]: The identity that last modified the resource.
- [SystemDataLastModifiedByType ]: The type of identity that last modified the resource.
.Link
-https://learn.microsoft.com/powershell/module/az.digitaltwins/new-azdigitaltwinsinstance
+https://learn.microsoft.com/powershell/module/az.digitaltwins/remove-azdigitaltwinsinstance
#>
-function New-AzDigitalTwinsInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsDescription])]
-[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Remove-AzDigitalTwinsInstance {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription])]
+[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# The name of the resource group that contains the DigitalTwinsInstance.
${ResourceGroupName},
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Parameter(ParameterSetName='Delete', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# The name of the DigitalTwinsInstance.
${ResourceName},
- [Parameter(ParameterSetName='CreateExpanded')]
+ [Parameter(ParameterSetName='Delete')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The subscription identifier.
${SubscriptionId},
- [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
- [Parameter(Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [System.String]
- # The resource location.
- ${Location},
-
[Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.DigitalTwinsIdentityType])]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.DigitalTwinsIdentityType]
- # The type of Managed Identity used by the DigitalTwinsInstance.
- # Only SystemAssigned is supported.
- ${IdentityType},
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The DefaultProfile parameter is not functional.
+ # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
+ ${DefaultProfile},
[Parameter()]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IPrivateEndpointConnection[]]
- # The private endpoint connections.
- # To construct, see NOTES section for PRIVATEENDPOINTCONNECTION properties and create a hash table.
- ${PrivateEndpointConnection},
-
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.PublicNetworkAccess])]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.PublicNetworkAccess]
- # Public network access for the DigitalTwinsInstance.
- ${PublicNetworkAccess},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsResourceTags]))]
- [System.Collections.Hashtable]
- # The resource tags.
- ${Tag},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The DefaultProfile parameter is not functional.
- # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
- ${DefaultProfile},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
-)
-
-begin {
- try {
- $outBuffer = $null
- if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
- $PSBoundParameters['OutBuffer'] = 1
- }
- $parameterSet = $PSCmdlet.ParameterSetName
-
- if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
- }
- $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- if ($preTelemetryId -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
- } else {
- $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- if ($internalCalledCmdlets -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
- } else {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
- }
-
- $mapping = @{
- CreateExpanded = 'Az.DigitalTwins.private\New-AzDigitalTwinsInstance_CreateExpanded';
- CreateViaIdentityExpanded = 'Az.DigitalTwins.private\New-AzDigitalTwinsInstance_CreateViaIdentityExpanded';
- }
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
- if ($testPlayback) {
- $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
- } else {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
- }
- }
- $cmdInfo = Get-Command -Name $mapping[$parameterSet]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
- }
- $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
- $scriptCmd = {& $wrappedCmd @PSBoundParameters}
- $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
- $steppablePipeline.Begin($PSCmdlet)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-
-process {
- try {
- $steppablePipeline.Process($_)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-
- finally {
- $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
-
-}
-end {
- try {
- $steppablePipeline.End()
-
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
- if ($preTelemetryId -eq '') {
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
-
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-}
-
-<#
-.Synopsis
-Update the status of a private endpoint connection with the given name.
-.Description
-Update the status of a private endpoint connection with the given name.
-.Example
-New-AzDigitalTwinsPrivateEndpointConnection -Name "11c903a5-7b8a-4b86-812d-03f007dca6df" -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -PrivateLinkServiceConnectionStateStatus 'Approved' -PrivateLinkServiceConnectionStateDescription "Approved by johndoe@company.com."
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IPrivateEndpointConnection
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-INPUTOBJECT : Identity Parameter
- [EndpointName ]: Name of Endpoint Resource.
- [Id ]: Resource identity path
- [Location ]: Location of DigitalTwinsInstance.
- [PrivateEndpointConnectionName ]: The name of the private endpoint connection.
- [ResourceGroupName ]: The name of the resource group that contains the DigitalTwinsInstance.
- [ResourceId ]: The name of the private link resource.
- [ResourceName ]: The name of the DigitalTwinsInstance.
- [SubscriptionId ]: The subscription identifier.
- [TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
-.Link
-https://learn.microsoft.com/powershell/module/az.digitaltwins/new-azdigitaltwinsprivateendpointconnection
-#>
-function New-AzDigitalTwinsPrivateEndpointConnection {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IPrivateEndpointConnection])]
-[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Alias('PrivateEndpointConnectionName')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [System.String]
- # The name of the private endpoint connection.
- ${Name},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [System.String]
- # The name of the resource group that contains the DigitalTwinsInstance.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [System.String]
- # The name of the DigitalTwinsInstance.
- ${ResourceName},
-
- [Parameter(ParameterSetName='CreateExpanded')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The subscription identifier.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='CreateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
-
- [Parameter()]
- [AllowEmptyCollection()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [System.String[]]
- # The list of group ids for the private endpoint connection.
- ${GroupId},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [System.String]
- # Actions required for a private endpoint connection.
- ${PrivateLinkServiceConnectionStateActionsRequired},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [System.String]
- # The description for the current state of a private endpoint connection.
- ${PrivateLinkServiceConnectionStateDescription},
-
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.PrivateLinkServiceConnectionStatus])]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.PrivateLinkServiceConnectionStatus]
- # The status of a private endpoint connection.
- ${PrivateLinkServiceConnectionStateStatus},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The DefaultProfile parameter is not functional.
- # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
- ${DefaultProfile},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Wait for .NET debugger to attach
- ${Break},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be appended to the front of the pipeline
- ${HttpPipelineAppend},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.SendAsyncStep[]]
- # SendAsync Pipeline Steps to be prepended to the front of the pipeline
- ${HttpPipelinePrepend},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Uri]
- # The URI for the proxy server to use
- ${Proxy},
-
- [Parameter(DontShow)]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.PSCredential]
- # Credentials for a proxy server to use for the remote call
- ${ProxyCredential},
-
- [Parameter(DontShow)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Use the default credentials for the proxy
- ${ProxyUseDefaultCredentials}
-)
-
-begin {
- try {
- $outBuffer = $null
- if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
- $PSBoundParameters['OutBuffer'] = 1
- }
- $parameterSet = $PSCmdlet.ParameterSetName
-
- if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
- }
- $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- if ($preTelemetryId -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
- } else {
- $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- if ($internalCalledCmdlets -eq '') {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
- } else {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
- }
-
- $mapping = @{
- CreateExpanded = 'Az.DigitalTwins.private\New-AzDigitalTwinsPrivateEndpointConnection_CreateExpanded';
- CreateViaIdentityExpanded = 'Az.DigitalTwins.private\New-AzDigitalTwinsPrivateEndpointConnection_CreateViaIdentityExpanded';
- }
- if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
- if ($testPlayback) {
- $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
- } else {
- $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
- }
- }
- $cmdInfo = Get-Command -Name $mapping[$parameterSet]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- if ($null -ne $MyInvocation.MyCommand -and [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets -notcontains $MyInvocation.MyCommand.Name -and [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.MessageAttributeHelper]::ContainsPreviewAttribute($cmdInfo, $MyInvocation)){
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
- }
- $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
- $scriptCmd = {& $wrappedCmd @PSBoundParameters}
- $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
- $steppablePipeline.Begin($PSCmdlet)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-
-process {
- try {
- $steppablePipeline.Process($_)
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-
- finally {
- $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
- $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
-
-}
-end {
- try {
- $steppablePipeline.End()
-
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
- if ($preTelemetryId -eq '') {
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- }
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
-
- } catch {
- [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
- throw
- }
-}
-}
-
-<#
-.Synopsis
-Delete a DigitalTwinsInstance endpoint.
-.Description
-Delete a DigitalTwinsInstance endpoint.
-.Example
-Remove-AzDigitalTwinsEndpoint -EndpointName azps-dt-eg -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance
-
-.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
-.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsEndpointResource
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-INPUTOBJECT : Identity Parameter
- [EndpointName ]: Name of Endpoint Resource.
- [Id ]: Resource identity path
- [Location ]: Location of DigitalTwinsInstance.
- [PrivateEndpointConnectionName ]: The name of the private endpoint connection.
- [ResourceGroupName ]: The name of the resource group that contains the DigitalTwinsInstance.
- [ResourceId ]: The name of the private link resource.
- [ResourceName ]: The name of the DigitalTwinsInstance.
- [SubscriptionId ]: The subscription identifier.
- [TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
-.Link
-https://learn.microsoft.com/powershell/module/az.digitaltwins/remove-azdigitaltwinsendpoint
-#>
-function Remove-AzDigitalTwinsEndpoint {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsEndpointResource])]
-[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
-param(
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [System.String]
- # Name of Endpoint Resource.
- ${EndpointName},
-
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [System.String]
- # The name of the resource group that contains the DigitalTwinsInstance.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [System.String]
- # The name of the DigitalTwinsInstance.
- ${ResourceName},
-
- [Parameter(ParameterSetName='Delete')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
- [System.String]
- # The subscription identifier.
- ${SubscriptionId},
-
- [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
-
- [Parameter()]
- [Alias('AzureRMContext', 'AzureCredential')]
- [ValidateNotNull()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Azure')]
- [System.Management.Automation.PSObject]
- # The DefaultProfile parameter is not functional.
- # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
- ${DefaultProfile},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
@@ -1699,6 +1339,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -1718,12 +1367,10 @@ begin {
}
$mapping = @{
- Delete = 'Az.DigitalTwins.private\Remove-AzDigitalTwinsEndpoint_Delete';
- DeleteViaIdentity = 'Az.DigitalTwins.private\Remove-AzDigitalTwinsEndpoint_DeleteViaIdentity';
+ Delete = 'Az.DigitalTwins.private\Remove-AzDigitalTwinsInstance_Delete';
+ DeleteViaIdentity = 'Az.DigitalTwins.private\Remove-AzDigitalTwinsInstance_DeleteViaIdentity';
}
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1737,6 +1384,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1782,21 +1432,32 @@ end {
<#
.Synopsis
-Delete a DigitalTwinsInstance.
+Delete a time series database connection.
.Description
-Delete a DigitalTwinsInstance.
+Delete a time series database connection.
.Example
-Remove-AzDigitalTwinsInstance -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance
+Remove-AzDigitalTwinsTimeSeriesDatabaseConnection -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -Name azps-tsdc
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsDescription
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+DIGITALTWINSINSTANCEINPUTOBJECT : Identity Parameter
+ [EndpointName ]: Name of Endpoint Resource.
+ [Id ]: Resource identity path
+ [Location ]: Location of DigitalTwinsInstance.
+ [PrivateEndpointConnectionName ]: The name of the private endpoint connection.
+ [ResourceGroupName ]: The name of the resource group that contains the DigitalTwinsInstance.
+ [ResourceId ]: The name of the private link resource.
+ [ResourceName ]: The name of the DigitalTwinsInstance.
+ [SubscriptionId ]: The subscription identifier.
+ [TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
+
INPUTOBJECT : Identity Parameter
[EndpointName ]: Name of Endpoint Resource.
[Id ]: Resource identity path
@@ -1808,12 +1469,20 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The subscription identifier.
[TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
.Link
-https://learn.microsoft.com/powershell/module/az.digitaltwins/remove-azdigitaltwinsinstance
+https://learn.microsoft.com/powershell/module/az.digitaltwins/remove-azdigitaltwinstimeseriesdatabaseconnection
#>
-function Remove-AzDigitalTwinsInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsDescription])]
+function Remove-AzDigitalTwinsTimeSeriesDatabaseConnection {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection])]
[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
+ [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Parameter(ParameterSetName='DeleteViaIdentityDigitalTwinsInstance', Mandatory)]
+ [Alias('TimeSeriesDatabaseConnectionName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
+ [System.String]
+ # Name of time series database connection.
+ ${Name},
+
[Parameter(ParameterSetName='Delete', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
@@ -1837,9 +1506,14 @@ param(
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='DeleteViaIdentityDigitalTwinsInstance', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
+ # Identity Parameter
+ ${DigitalTwinsInstanceInputObject},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -1914,6 +1588,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -1933,12 +1616,11 @@ begin {
}
$mapping = @{
- Delete = 'Az.DigitalTwins.private\Remove-AzDigitalTwinsInstance_Delete';
- DeleteViaIdentity = 'Az.DigitalTwins.private\Remove-AzDigitalTwinsInstance_DeleteViaIdentity';
+ Delete = 'Az.DigitalTwins.private\Remove-AzDigitalTwinsTimeSeriesDatabaseConnection_Delete';
+ DeleteViaIdentity = 'Az.DigitalTwins.private\Remove-AzDigitalTwinsTimeSeriesDatabaseConnection_DeleteViaIdentity';
+ DeleteViaIdentityDigitalTwinsInstance = 'Az.DigitalTwins.private\Remove-AzDigitalTwinsTimeSeriesDatabaseConnection_DeleteViaIdentityDigitalTwinsInstance';
}
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -1952,6 +1634,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -1997,16 +1682,18 @@ end {
<#
.Synopsis
-Delete private endpoint connection with the specified name.
+Check if a DigitalTwinsInstance name is available.
.Description
-Delete private endpoint connection with the specified name.
+Check if a DigitalTwinsInstance name is available.
.Example
-Remove-AzDigitalTwinsPrivateEndpointConnection -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -Name "11c903a5-7b8a-4b86-812d-03f007dca6df"
+Test-AzDigitalTwinsInstanceNameAvailability -Location westus2 -Name testName
+.Example
+Test-AzDigitalTwinsInstanceNameAvailability -Location westus2 -Name !testName
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
.Outputs
-System.Boolean
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ICheckNameResult
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -2023,45 +1710,54 @@ INPUTOBJECT : Identity Parameter
[SubscriptionId ]: The subscription identifier.
[TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
.Link
-https://learn.microsoft.com/powershell/module/az.digitaltwins/remove-azdigitaltwinsprivateendpointconnection
+https://learn.microsoft.com/powershell/module/az.digitaltwins/test-azdigitaltwinsinstancenameavailability
#>
-function Remove-AzDigitalTwinsPrivateEndpointConnection {
-[OutputType([System.Boolean])]
-[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Test-AzDigitalTwinsInstanceNameAvailability {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ICheckNameResult])]
+[CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Alias('PrivateEndpointConnectionName')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [System.String]
- # The name of the private endpoint connection.
- ${Name},
-
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [System.String]
- # The name of the resource group that contains the DigitalTwinsInstance.
- ${ResourceGroupName},
-
- [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Parameter(ParameterSetName='CheckExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CheckViaJsonFilePath', Mandatory)]
+ [Parameter(ParameterSetName='CheckViaJsonString', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
- # The name of the DigitalTwinsInstance.
- ${ResourceName},
+ # Location of DigitalTwinsInstance.
+ ${Location},
- [Parameter(ParameterSetName='Delete')]
+ [Parameter(ParameterSetName='CheckExpanded')]
+ [Parameter(ParameterSetName='CheckViaJsonFilePath')]
+ [Parameter(ParameterSetName='CheckViaJsonString')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The subscription identifier.
${SubscriptionId},
- [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='CheckViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter(ParameterSetName='CheckExpanded', Mandatory)]
+ [Parameter(ParameterSetName='CheckViaIdentityExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Resource name.
+ ${Name},
+
+ [Parameter(ParameterSetName='CheckViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Check operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CheckViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Json string supplied to the Check operation
+ ${JsonString},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -2071,12 +1767,6 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command as a job
- ${AsJob},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -2097,18 +1787,6 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Run the command asynchronously
- ${NoWait},
-
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Returns true when the command succeeds
- ${PassThru},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
[System.Uri]
@@ -2136,6 +1814,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -2155,12 +1842,12 @@ begin {
}
$mapping = @{
- Delete = 'Az.DigitalTwins.private\Remove-AzDigitalTwinsPrivateEndpointConnection_Delete';
- DeleteViaIdentity = 'Az.DigitalTwins.private\Remove-AzDigitalTwinsPrivateEndpointConnection_DeleteViaIdentity';
+ CheckExpanded = 'Az.DigitalTwins.private\Test-AzDigitalTwinsInstanceNameAvailability_CheckExpanded';
+ CheckViaIdentityExpanded = 'Az.DigitalTwins.private\Test-AzDigitalTwinsInstanceNameAvailability_CheckViaIdentityExpanded';
+ CheckViaJsonFilePath = 'Az.DigitalTwins.private\Test-AzDigitalTwinsInstanceNameAvailability_CheckViaJsonFilePath';
+ CheckViaJsonString = 'Az.DigitalTwins.private\Test-AzDigitalTwinsInstanceNameAvailability_CheckViaJsonString';
}
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2174,6 +1861,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2219,16 +1909,20 @@ end {
<#
.Synopsis
-Delete a time series database connection.
+Update the metadata of a DigitalTwinsInstance.
+The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance.
.Description
-Delete a time series database connection.
+Update the metadata of a DigitalTwinsInstance.
+The usual pattern to modify a property is to retrieve the DigitalTwinsInstance and security metadata, and then combine them with the modified values in a new body to update the DigitalTwinsInstance.
.Example
-Remove-AzDigitalTwinsTimeSeriesDatabaseConnection -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -Name azps-tsdc
+Update-AzDigitalTwinsInstance -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -Tag @{"abc"="123"}
+.Example
+Get-AzDigitalTwinsInstance -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance | Update-AzDigitalTwinsInstance -Tag @{"1234"="abcd"}
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ITimeSeriesDatabaseConnection
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription
.Notes
COMPLEX PARAMETER PROPERTIES
@@ -2244,46 +1938,71 @@ INPUTOBJECT : Identity Parameter
[ResourceName ]: The name of the DigitalTwinsInstance.
[SubscriptionId ]: The subscription identifier.
[TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
+
+PRIVATEENDPOINTCONNECTION : The private endpoint connections.
+ [GroupId >]: The list of group ids for the private endpoint connection.
+ [PrivateLinkServiceConnectionStateActionsRequired ]: Actions required for a private endpoint connection.
+ [PrivateLinkServiceConnectionStateDescription ]: The description for the current state of a private endpoint connection.
+ [PrivateLinkServiceConnectionStateStatus ]: The status of a private endpoint connection.
.Link
-https://learn.microsoft.com/powershell/module/az.digitaltwins/remove-azdigitaltwinstimeseriesdatabaseconnection
+https://learn.microsoft.com/powershell/module/az.digitaltwins/update-azdigitaltwinsinstance
#>
-function Remove-AzDigitalTwinsTimeSeriesDatabaseConnection {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ITimeSeriesDatabaseConnection])]
-[CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function Update-AzDigitalTwinsInstance {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsDescription])]
+[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='Delete', Mandatory)]
- [Alias('TimeSeriesDatabaseConnectionName')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [System.String]
- # Name of time series database connection.
- ${Name},
-
- [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# The name of the resource group that contains the DigitalTwinsInstance.
${ResourceGroupName},
- [Parameter(ParameterSetName='Delete', Mandatory)]
+ [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# The name of the DigitalTwinsInstance.
${ResourceName},
- [Parameter(ParameterSetName='Delete')]
+ [Parameter(ParameterSetName='UpdateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The subscription identifier.
${SubscriptionId},
- [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)]
+ [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
# Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
${InputObject},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.Nullable[System.Boolean]]
+ # Determines whether to enable a system-assigned identity for the resource.
+ ${EnableSystemAssignedIdentity},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IPrivateEndpointConnection[]]
+ # The private endpoint connections.
+ ${PrivateEndpointConnection},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.PSArgumentCompleterAttribute("Enabled", "Disabled")]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Public network access for the DigitalTwinsInstance.
+ ${PublicNetworkAccess},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsResourceTags]))]
+ [System.Collections.Hashtable]
+ # The resource tags.
+ ${Tag},
+
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
@@ -2325,12 +2044,6 @@ param(
# Run the command asynchronously
${NoWait},
- [Parameter()]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
- [System.Management.Automation.SwitchParameter]
- # Returns true when the command succeeds
- ${PassThru},
-
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
[System.Uri]
@@ -2358,6 +2071,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -2377,12 +2099,10 @@ begin {
}
$mapping = @{
- Delete = 'Az.DigitalTwins.private\Remove-AzDigitalTwinsTimeSeriesDatabaseConnection_Delete';
- DeleteViaIdentity = 'Az.DigitalTwins.private\Remove-AzDigitalTwinsTimeSeriesDatabaseConnection_DeleteViaIdentity';
+ UpdateExpanded = 'Az.DigitalTwins.private\Update-AzDigitalTwinsInstance_UpdateExpanded';
+ UpdateViaIdentityExpanded = 'Az.DigitalTwins.private\Update-AzDigitalTwinsInstance_UpdateViaIdentityExpanded';
}
- if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2396,6 +2116,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2441,65 +2164,156 @@ end {
<#
.Synopsis
-Check if a DigitalTwinsInstance name is available.
+Create DigitalTwinsInstance endpoint.
.Description
-Check if a DigitalTwinsInstance name is available.
+Create DigitalTwinsInstance endpoint.
.Example
-Test-AzDigitalTwinsInstanceNameAvailability -Location westus2 -Name testName
+New-AzDigitalTwinsEndpoint -EndpointName azps-dt-eh -EndpointType EventHub -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -ConnectionStringPrimaryKey 'Endpoint=sb://azps-eventhubs.servicebus.windows.net/;SharedAccessKeyName=abc123;SharedAccessKey=******;EntityPath=azps-eh' -AuthenticationType 'KeyBased'
.Example
-Test-AzDigitalTwinsInstanceNameAvailability -Location westus2 -Name !testName
+New-AzDigitalTwinsEndpoint -EndpointName azps-dt-eg -EndpointType EventGrid -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -TopicEndpoint 'https://azps-eventgrid.eastus-1.eventgrid.azure.net/api/events' -AccessKey1 '******=' -AuthenticationType 'KeyBased'
+.Example
+New-AzDigitalTwinsEndpoint -EndpointName azps-dt-sb -EndpointType ServiceBus -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -PrimaryConnectionString "Endpoint=sb://azps-servicebus.servicebus.windows.net/;SharedAccessKeyName=abc123;SharedAccessKey=******;EntityPath=azps-sb" -AuthenticationType 'KeyBased'
.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ICheckNameResult
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-INPUTOBJECT : Identity Parameter
- [EndpointName ]: Name of Endpoint Resource.
- [Id ]: Resource identity path
- [Location ]: Location of DigitalTwinsInstance.
- [PrivateEndpointConnectionName ]: The name of the private endpoint connection.
- [ResourceGroupName ]: The name of the resource group that contains the DigitalTwinsInstance.
- [ResourceId ]: The name of the private link resource.
- [ResourceName ]: The name of the DigitalTwinsInstance.
- [SubscriptionId ]: The subscription identifier.
- [TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
+ENDPOINTDESCRIPTION : DigitalTwinsInstance endpoint resource. To construct, see NOTES section for ENDPOINTDESCRIPTION properties and create a hash table.
+ EndpointType : The type of Digital Twins endpoint
+ [AuthenticationType ]: Specifies the authentication type being used for connecting to the endpoint. Defaults to 'KeyBased'. If 'KeyBased' is selected, a connection string must be specified (at least the primary connection string). If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified.
+ [DeadLetterSecret ]: Dead letter storage secret for key-based authentication. Will be obfuscated during read.
+ [DeadLetterUri ]: Dead letter storage URL for identity-based authentication.
.Link
-https://learn.microsoft.com/powershell/module/az.digitaltwins/test-azdigitaltwinsinstancenameavailability
+https://learn.microsoft.com/powershell/module/az.digitaltwins/new-azdigitaltwinsendpoint
#>
-function Test-AzDigitalTwinsInstanceNameAvailability {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ICheckNameResult])]
-[CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function New-AzDigitalTwinsEndpoint {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource])]
+[CmdletBinding(DefaultParameterSetName='EventHub', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='CheckExpanded', Mandatory)]
+ [Parameter(ParameterSetName='EventHub', Mandatory)]
+ [Parameter(ParameterSetName='ServiceBus', Mandatory)]
+ [Parameter(ParameterSetName='EventGrid', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
+ [System.String]
+ # Name of Endpoint Resource.
+ ${EndpointName},
+
+ [Parameter(ParameterSetName='EventHub', Mandatory)]
+ [Parameter(ParameterSetName='ServiceBus', Mandatory)]
+ [Parameter(ParameterSetName='EventGrid', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
+ [System.String]
+ # The name of the resource group that contains the DigitalTwinsInstance.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='EventHub', Mandatory)]
+ [Parameter(ParameterSetName='ServiceBus', Mandatory)]
+ [Parameter(ParameterSetName='EventGrid', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
- # Location of DigitalTwinsInstance.
- ${Location},
+ # The name of the DigitalTwinsInstance.
+ ${ResourceName},
- [Parameter(ParameterSetName='CheckExpanded')]
+ [Parameter(ParameterSetName='EventHub')]
+ [Parameter(ParameterSetName='ServiceBus')]
+ [Parameter(ParameterSetName='EventGrid')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The subscription identifier.
${SubscriptionId},
- [Parameter(ParameterSetName='CheckViaIdentityExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
+ [Parameter(ParameterSetName='EventHub', Mandatory)]
+ [Parameter(ParameterSetName='ServiceBus', Mandatory)]
+ [Parameter(ParameterSetName='EventGrid', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.PSArgumentCompleterAttribute("EventHub", "EventGrid", "ServiceBus")]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # The type of Digital Twins endpoint
+ ${EndpointType},
- [Parameter(Mandatory)]
+ [Parameter(ParameterSetName='EventHub', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
[System.String]
- # Resource name.
- ${Name},
+ # The subscription identifier.
+ ${ConnectionStringPrimaryKey},
+
+ [Parameter(ParameterSetName='EventHub', ValueFromPipeline)]
+ [Parameter(ParameterSetName='ServiceBus', ValueFromPipeline)]
+ [Parameter(ParameterSetName='EventGrid', ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource]
+ # DigitalTwinsInstance endpoint resource.
+ # To construct, see NOTES section for ENDPOINTDESCRIPTION properties and create a hash table.
+ ${EndpointDescription},
+
+ [Parameter(ParameterSetName='EventHub')]
+ [Parameter(ParameterSetName='ServiceBus')]
+ [Parameter(ParameterSetName='EventGrid')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.PSArgumentCompleterAttribute("KeyBased", "IdentityBased")]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Specifies the authentication type being used for connecting to the endpoint.
+ # Defaults to 'KeyBased'.
+ # If 'KeyBased' is selected, a connection string must be specified (at least the primary connection string).
+ # If 'IdentityBased' is select, the endpointUri and entityPath properties must be specified.
+ ${AuthenticationType},
+
+ [Parameter(ParameterSetName='EventHub')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # The subscription identifier.
+ ${ConnectionStringSecondaryKey},
+
+ [Parameter(ParameterSetName='EventHub')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Dead letter storage secret for key-based authentication.
+ # Will be obfuscated during read.
+ ${DeadLetterSecret},
+
+ [Parameter(ParameterSetName='EventHub')]
+ [Parameter(ParameterSetName='ServiceBus')]
+ [Parameter(ParameterSetName='EventGrid')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Dead letter storage URL for identity-based authentication.
+ ${DeadLetterUri},
+
+ [Parameter(ParameterSetName='ServiceBus', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # The subscription identifier.
+ ${PrimaryConnectionString},
+
+ [Parameter(ParameterSetName='EventGrid', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # The subscription identifier.
+ ${TopicEndpoint},
+
+ [Parameter(ParameterSetName='EventGrid', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # The subscription identifier.
+ ${AccessKey1},
+
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -2510,6 +2324,12 @@ param(
# Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
${DefaultProfile},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
[System.Management.Automation.SwitchParameter]
@@ -2530,6 +2350,12 @@ param(
# SendAsync Pipeline Steps to be prepended to the front of the pipeline
${HttpPipelinePrepend},
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
[Parameter(DontShow)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Runtime')]
[System.Uri]
@@ -2557,6 +2383,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -2576,12 +2411,13 @@ begin {
}
$mapping = @{
- CheckExpanded = 'Az.DigitalTwins.private\Test-AzDigitalTwinsInstanceNameAvailability_CheckExpanded';
- CheckViaIdentityExpanded = 'Az.DigitalTwins.private\Test-AzDigitalTwinsInstanceNameAvailability_CheckViaIdentityExpanded';
+ EventHub = 'Az.DigitalTwins.custom\New-AzDigitalTwinsEndpoint';
+ ServiceBus = 'Az.DigitalTwins.custom\New-AzDigitalTwinsEndpoint';
+ EventGrid = 'Az.DigitalTwins.custom\New-AzDigitalTwinsEndpoint';
+ CreateViaJsonFilePath = 'Az.DigitalTwins.custom\New-AzDigitalTwinsEndpoint';
+ CreateViaJsonString = 'Az.DigitalTwins.custom\New-AzDigitalTwinsEndpoint';
}
- if (('CheckExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('EventHub', 'ServiceBus', 'EventGrid') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2595,6 +2431,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2640,87 +2479,106 @@ end {
<#
.Synopsis
-Update metadata of DigitalTwinsInstance.
+Create a time series database connection.
.Description
-Update metadata of DigitalTwinsInstance.
-.Example
-Update-AzDigitalTwinsInstance -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -Tag @{"abc"="123"}
+Create a time series database connection.
.Example
-Get-AzDigitalTwinsInstance -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance | Update-AzDigitalTwinsInstance -Tag @{"1234"="abcd"}
+New-AzDigitalTwinsTimeSeriesDatabaseConnection -Name azps-tsdc -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -AdxDatabaseName "azpsadec1database" -AdxEndpointUri "https://azpsdataexplorer.eastus.kusto.windows.net" -AdxResourceId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.Kusto/clusters/azpsdataexplorer" -AdxTableName "azpsadec1database-table" -EventHubEndpointUri "sb://azps-eventhubs.servicebus.windows.net/" -EventHubEntityPath "azps-eventhubs" -EventHubNamespaceResourceId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.EventHub/namespaces/azps-eventhubs"
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.ITimeSeriesDatabaseConnection
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsDescription
-.Notes
-COMPLEX PARAMETER PROPERTIES
-
-To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-
-INPUTOBJECT : Identity Parameter
- [EndpointName ]: Name of Endpoint Resource.
- [Id ]: Resource identity path
- [Location ]: Location of DigitalTwinsInstance.
- [PrivateEndpointConnectionName ]: The name of the private endpoint connection.
- [ResourceGroupName ]: The name of the resource group that contains the DigitalTwinsInstance.
- [ResourceId ]: The name of the private link resource.
- [ResourceName ]: The name of the DigitalTwinsInstance.
- [SubscriptionId ]: The subscription identifier.
- [TimeSeriesDatabaseConnectionName ]: Name of time series database connection.
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection
.Link
-https://learn.microsoft.com/powershell/module/az.digitaltwins/update-azdigitaltwinsinstance
+https://learn.microsoft.com/powershell/module/az.digitaltwins/new-azdigitaltwinstimeseriesdatabaseconnection
#>
-function Update-AzDigitalTwinsInstance {
-[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsDescription])]
-[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+function New-AzDigitalTwinsTimeSeriesDatabaseConnection {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.ITimeSeriesDatabaseConnection])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(Mandatory)]
+ [Alias('TimeSeriesDatabaseConnectionName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
+ [System.String]
+ # Name of time series database connection.
+ ${Name},
+
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# The name of the resource group that contains the DigitalTwinsInstance.
${ResourceGroupName},
- [Parameter(ParameterSetName='UpdateExpanded', Mandatory)]
+ [Parameter(Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[System.String]
# The name of the DigitalTwinsInstance.
${ResourceName},
- [Parameter(ParameterSetName='UpdateExpanded')]
+ [Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
[System.String]
# The subscription identifier.
${SubscriptionId},
- [Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, ValueFromPipeline)]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Path')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsIdentity]
- # Identity Parameter
- # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
- ${InputObject},
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # The name of the Azure Data Explorer database.
+ ${AdxDatabaseName},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.DigitalTwinsIdentityType])]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.DigitalTwinsIdentityType]
- # The type of Managed Identity used by the DigitalTwinsInstance.
- # Only SystemAssigned is supported.
- ${IdentityType},
+ [System.String]
+ # The URI of the Azure Data Explorer endpoint.
+ ${AdxEndpointUri},
- [Parameter()]
- [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.PublicNetworkAccess])]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Support.PublicNetworkAccess]
- # Public network access for the DigitalTwinsInstance.
- ${PublicNetworkAccess},
+ [System.String]
+ # The resource ID of the Azure Data Explorer cluster.
+ ${AdxResourceId},
- [Parameter()]
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
- [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsPatchDescriptionTags]))]
- [System.Collections.Hashtable]
- # Instance patch properties
- ${Tag},
+ [System.String]
+ # The name of the Azure Data Explorer table.
+ # Defaults to AdtPropertyEvents.
+ ${AdxTableName},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # The URL of the EventHub namespace for identity-based authentication.
+ # It must include the protocol sb://
+ ${EventHubEndpointUri},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # The EventHub name in the EventHub namespace for identity-based authentication.
+ ${EventHubEntityPath},
+
+ [Parameter(ParameterSetName='CreateExpanded', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # The resource ID of the EventHub namespace.
+ ${EventHubNamespaceResourceId},
+
+ [Parameter(ParameterSetName='CreateViaJsonString', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Json string supplied to the Create operation
+ ${JsonString},
+
+ [Parameter(ParameterSetName='CreateViaJsonFilePath', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Category('Body')]
+ [System.String]
+ # Path of Json file supplied to the Create operation
+ ${JsonFilePath},
[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
@@ -2790,6 +2648,15 @@ begin {
$PSBoundParameters['OutBuffer'] = 1
}
$parameterSet = $PSCmdlet.ParameterSetName
+
+ $testPlayback = $false
+ $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+
+ $context = Get-AzContext
+ if (-not $context -and -not $testPlayback) {
+ Write-Error "No Azure login detected. Please run 'Connect-AzAccount' to log in."
+ exit
+ }
if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString()
@@ -2809,12 +2676,11 @@ begin {
}
$mapping = @{
- UpdateExpanded = 'Az.DigitalTwins.private\Update-AzDigitalTwinsInstance_UpdateExpanded';
- UpdateViaIdentityExpanded = 'Az.DigitalTwins.private\Update-AzDigitalTwinsInstance_UpdateViaIdentityExpanded';
+ CreateExpanded = 'Az.DigitalTwins.custom\New-AzDigitalTwinsTimeSeriesDatabaseConnection';
+ CreateViaJsonString = 'Az.DigitalTwins.custom\New-AzDigitalTwinsTimeSeriesDatabaseConnection';
+ CreateViaJsonFilePath = 'Az.DigitalTwins.custom\New-AzDigitalTwinsTimeSeriesDatabaseConnection';
}
- if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
- $testPlayback = $false
- $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } }
+ if (('CreateExpanded', 'CreateViaJsonString', 'CreateViaJsonFilePath') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) {
if ($testPlayback) {
$PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1')
} else {
@@ -2828,6 +2694,9 @@ begin {
[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PromptedPreviewMessageCmdlets.Enqueue($MyInvocation.MyCommand.Name)
}
$wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ if ($wrappedCmd -eq $null) {
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function)
+ }
$scriptCmd = {& $wrappedCmd @PSBoundParameters}
$steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
$steppablePipeline.Begin($PSCmdlet)
@@ -2873,41 +2742,35 @@ end {
<#
.Synopsis
-Create or update DigitalTwinsInstance endpoint.
+Update DigitalTwinsInstance endpoint.
.Description
-Create or update DigitalTwinsInstance endpoint.
+Update DigitalTwinsInstance endpoint.
.Example
-New-AzDigitalTwinsEndpoint -EndpointName azps-dt-eh -EndpointType EventHub -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -connectionStringPrimaryKey 'Endpoint=sb://azps-eventhubs.servicebus.windows.net/;SharedAccessKeyName=abc123;SharedAccessKey=******;EntityPath=azps-eh' -AuthenticationType 'KeyBased'
+Update-AzDigitalTwinsEndpoint -EndpointName azps-dt-eh -EndpointType EventHub -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -ConnectionStringPrimaryKey 'Endpoint=sb://azps-eventhubs.servicebus.windows.net/;SharedAccessKeyName=abc123;SharedAccessKey=******;EntityPath=azps-eh' -AuthenticationType 'KeyBased'
.Example
-New-AzDigitalTwinsEndpoint -EndpointName azps-dt-eg -EndpointType EventGrid -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -TopicEndpoint 'https://azps-eventgrid.eastus-1.eventgrid.azure.net/api/events' -AccessKey1 '******=' -AuthenticationType 'KeyBased'
+Update-AzDigitalTwinsEndpoint -EndpointName azps-dt-eg -EndpointType EventGrid -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -TopicEndpoint 'https://azps-eventgrid.eastus-1.eventgrid.azure.net/api/events' -AccessKey1 '******=' -AuthenticationType 'KeyBased'
.Example
-New-AzDigitalTwinsEndpoint -EndpointName azps-dt-sb -EndpointType ServiceBus -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -PrimaryConnectionString "Endpoint=sb://azps-servicebus.servicebus.windows.net/;SharedAccessKeyName=abc123;SharedAccessKey=******;EntityPath=azps-sb" -AuthenticationType 'KeyBased'
+Update-AzDigitalTwinsEndpoint -EndpointName azps-dt-sb -EndpointType ServiceBus -ResourceGroupName azps_test_group -ResourceName azps-digitaltwins-instance -PrimaryConnectionString "Endpoint=sb://azps-servicebus.servicebus.windows.net/;SharedAccessKeyName=abc123;SharedAccessKey=******;EntityPath=azps-sb" -AuthenticationType 'KeyBased'
.Inputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsEndpointResource
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource
.Outputs
-Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.Api20220531.IDigitalTwinsEndpointResource
+Microsoft.Azure.PowerShell.Cmdlets.DigitalTwins.Models.IDigitalTwinsEndpointResource
.Notes
COMPLEX PARAMETER PROPERTIES
To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
-ENDPOINTDESCRIPTION : DigitalTwinsInstance endpoint resource.
- EndpointType : The type of Digital Twins endpoint
- [SystemDataCreatedAt ]: The timestamp of resource creation (UTC).
- [SystemDataCreatedBy ]: The identity that created the resource.
- [SystemDataCreatedByType ]: The type of identity that created the resource.
- [SystemDataLastModifiedAt ]: The timestamp of resource last modification (UTC)
- [SystemDataLastModifiedBy