microsoftgraph / msgraph-sdk-powershell

Powershell SDK for Microsoft Graph
https://www.powershellgallery.com/packages/Microsoft.Graph
Other
701 stars 168 forks source link

Odd naming of various DeviceManagement cmdlets #867

Closed hstrang closed 2 years ago

hstrang commented 3 years ago

Various cmdlets under DeviceManagement are named according to the related platforms like Android and MacOS, but then there is a large set named "Window" instead of "Windows" although these are referring to the Windows operating system and the underlying Graph API calls and all related objects are named Windows. Maybe there is some higher logic behind this decision but it appears very odd and is very confusing.

peombwa commented 3 years ago

Thanks for surfacing this. Our code-gen singularizes all words that make up a command to be compliant with PowerShell's naming convention. This has the limitation of singularizing everything, including product names. We will fix this when we move to v2 of the SDK since renaming this now would result in a breaking change for customers who have taken a dependency on existing commands.

In the meantime, we will alias *-Mg*Window* commands to *-Mg*Windows* to address this.

peombwa commented 2 years ago

Fixed by #1573.