Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.26k stars 3.86k forks source link

Add-AzIotHubDevice not set ParentDeviceId #19040

Closed rcampos-knowmadmood closed 9 months ago

rcampos-knowmadmood commented 2 years ago

Description

All adding an edge device with its parent device using the Add-AzIothubDevice, performs the operation but does not put it as parent. There is also no other SetParentDevice method for Edge devices.

Issue script & Debug output

Add-AzIotHubDevice -ResourceGroupName $ResourceGroupName -IotHubName $IotHubName -DeviceId $DeviceName -AuthMethod "x509_thumbprint" -EdgeEnabled -PrimaryThumbprint $PrimaryThumbprint -SecondaryThumbprint $SecundaryThumbprint -ParentDeviceId $ParentDeviceName -Force

Environment data

Name                           Value
----                           -----
PSVersion                      7.2.5
PSEdition                      Core
GitCommitId                    7.2.5
OS                             Microsoft Windows 10.0.19044
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Module versions

Name                      Version
----                      -------
Az                        8.1.0
Az.Accounts               2.9.0
Az.Advisor                1.1.2
Az.Aks                    4.2.0
Az.AnalysisServices       1.1.4
Az.ApiManagement          3.0.0
Az.AppConfiguration       1.1.0
Az.ApplicationInsights    2.1.0
Az.Attestation            1.0.0
Az.Automation             1.7.3
Az.Batch                  3.2.0
Az.Billing                2.0.0
Az.Cdn                    2.1.0
Az.CloudService           1.1.0
Az.CognitiveServices      1.11.0
Az.Compute                4.29.0
Az.ContainerInstance      3.1.0
Az.ContainerRegistry      3.0.0
Az.CosmosDB               1.8.2
Az.DataBoxEdge            1.1.0
Az.Databricks             1.2.0
Az.DataFactory            1.16.8
Az.DataLakeAnalytics      1.0.2
Az.DataLakeStore          1.3.0
Az.DataShare              1.0.1
Az.DeploymentManager      1.1.0
Az.DesktopVirtualization  3.1.0
Az.DevTestLabs            1.0.2
Az.Dns                    1.1.2
Az.EventGrid              1.3.0
Az.EventHub               2.1.0
Az.FrontDoor              1.9.0
Az.Functions              4.0.3
Az.HDInsight              5.0.1
Az.HealthcareApis         2.0.0
Az.IotHub                 2.7.4
Az.KeyVault               4.6.0
Az.Kusto                  2.1.0
Az.LogicApp               1.5.0
Az.MachineLearning        1.1.3
Az.Maintenance            1.2.0
Az.ManagedServiceIdentity 1.0.0
Az.ManagedServices        3.0.0
Az.MarketplaceOrdering    1.0.2
Az.Media                  1.1.1
Az.Migrate                1.1.2
Az.Monitor                3.0.1
Az.MySql                  1.0.0
Az.Network                4.18.0
Az.NotificationHubs       1.1.1
Az.OperationalInsights    3.1.0
Az.PolicyInsights         1.5.0
Az.PostgreSql             1.1.0
Az.PowerBIEmbedded        1.2.0
Az.PrivateDns             1.0.3
Az.RecoveryServices       5.4.1
Az.RedisCache             1.6.0
Az.RedisEnterpriseCache   1.0.0
Az.Relay                  1.0.3
Az.ResourceMover          1.1.0
Az.Resources              6.0.1
Az.Security               1.3.0
Az.SecurityInsights       1.1.0
Az.ServiceBus             1.10.0
Az.ServiceFabric          3.1.0
Az.SignalR                1.4.1
Az.Sql                    3.10.0
Az.SqlVirtualMachine      1.1.0
Az.StackHCI               1.3.0
Az.Storage                4.7.0
Az.StorageSync            1.7.0
Az.StreamAnalytics        2.0.0
Az.Support                1.0.0
Az.Synapse                1.4.0
Az.Tools.Migration        1.1.3
Az.TrafficManager         1.1.0
Az.Websites               2.11.2
Azure                     5.1.2

Error output

WARNING: Upcoming breaking changes in the cmdlet 'Resolve-AzError' :
The `Resolve-Error` alias will be removed in a future release.  Please change any scripts that use this alias to use `Resolve-AzError` instead.
Note : Go to https://aka.ms/azps-changewarnings for steps to suppress this breaking change warning, and other information on breaking changes in Azure PowerShell.

The Azure PowerShell team is listening, please let us know how we are doing: https://aka.ms/azpssurvey?Q_CHL=ERROR.
ghost commented 2 years ago

Thank you for your feedback. This has been routed to the support team for assistance.

microsoft-github-policy-service[bot] commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @rkmanda, @chieftn.