You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sure the team has their own ideas on how this could work, but I feel like adding an alias property to the output of the commands would be a good solution.
We are still waiting for the code generator (AutoREST.PowerShell) to support ValueFromPipelineByPropertyName for path parameters. This is being tracked in Azure/autorest.powershell#616
AutoREST uses -InputObject to support piping via ValueFrompipeline, which doesn't work for MS Graph as explained at Azure/autorest.powershell#616. Adding support for piping via ValueFromPipelineByPropertyName has the effect of breaking customers who've taken a dependency on the publicly documented InputObject parameter.
Activity
mabster commentedon Jun 14, 2022
I'm sure the team has their own ideas on how this could work, but I feel like adding an alias property to the output of the commands would be a good solution.
For example:
... so now the output has a
GroupIdproperty that's the same asId.Now all that's necessary is to add the
ValueFromPipelineByPropertyNameattribute to theGroupIdparameter onGet-MgGroupMember.I realise this is easier said than done, given that you're auto-generating the functions.
peombwa commentedon Oct 26, 2022
We are still waiting for the code generator (AutoREST.PowerShell) to support
ValueFromPipelineByPropertyNamefor path parameters. This is being tracked in Azure/autorest.powershell#616peombwa commentedon Aug 23, 2023
A breaking change will occur because we will need to drop support for
-InputObjectparameter set to support piping byValueFromPipelineByPropertyName- Get-MgUser (Microsoft.Graph.Users) | Microsoft Learn.AutoREST uses
-InputObjectto support piping viaValueFrompipeline, which doesn't work for MS Graph as explained at Azure/autorest.powershell#616. Adding support for piping viaValueFromPipelineByPropertyNamehas the effect of breaking customers who've taken a dependency on the publicly documentedInputObjectparameter.calebkiage commentedon Feb 28, 2024
Tim (@timayabi2020), is there a design for this feature put down anywhere?