msgraph-sdk-powershell
msgraph-sdk-powershell copied to clipboard
Get-MgApplication's -ApplicationId parameter should be called -ObjectId
Attached images explain the problem.
The following image compares the Get-MgApplication to the correct implementation in Get-AzAdApplication:
The second image gives a short analysis of the problem:
This is a super misleading parameter name. It seems to be the same case with Update-MgApplication's parameter "ApplicationId", in module v. 2.18.0 Microsoft.Graph.Applications.
Please fix this and change the -ApplicationId parameter name to "-Id" or "-ObjectId".
Agree this should be changed. The Azure portal shows "Application ID" and "Object ID". The cmdlet parameter -ApplicationId actually expects an "Object ID", not "Application ID".
@Ndiritu We need to keep it backward-compatible to prevent a breaking change here, OK?
@petrhollayms
It's easy to fix wrongly named parameters and maintain backward compatibility.
Rename the -ApplicationId parameter to -ObjectId and create a parameter alias -ApplicationId.