Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When will v2.0.0 of Microsoft.Graph.DeviceManagement.Enrolment be available? #2154

Closed
mark3grahams opened this issue Jul 12, 2023 Discussed in #2152 · 8 comments
Closed

Comments

@mark3grahams
Copy link

Discussed in #2152

Originally posted by ztrhgf July 12, 2023
We want to migrate all graph modules to version 2.0.0, but Microsoft.Graph.DeviceManagement.Enrolment is still just 1.28.0. When the version 2.0.0 will be released?

I think it is moving to Microsoft.Graph.DeviceManagement.Enrollment fixing the spelling but many CMDlets are missing.

v1.28
(Get-Command -Module Microsoft.Graph.DeviceManagement.Enrolment).count
390

v2.0
(Get-Command -Module Microsoft.Graph.DeviceManagement.Enrollment).count
24

v2.0 Beta
(Get-Command -Module Microsoft.Graph.Beta.DeviceManagement.Enrollment).count
190

@ghost ghost added the ToTriage label Jul 12, 2023
@mark3grahams mark3grahams changed the title When will be ready 2.0.0 version of the module Microsoft.Graph.DeviceManagement.Enrolment? When will v2.0.0 of Microsoft.Graph.DeviceManagement.Enrolment be available? Jul 12, 2023
@mark3grahams
Copy link
Author

Also, in CMDlets you are now using Windows vs Window.

Microsoft.Graph.DeviceManagement.Enrolment
Get-MgDeviceManagementWindowAutopilotDeviceIdentity

Microsoft.Graph.DeviceManagement.Enrollment
Get-MgDeviceManagementWindowsAutopilotDeviceIdentity

@mark3grahams
Copy link
Author

mark3grahams commented Jul 12, 2023

Which makes this link and many others bad.

To view the beta release of this cmdlet, view Get-MgBetaDeviceManagementWindowAutopilotDeviceIdentity

@peombwa
Copy link
Member

peombwa commented Jul 17, 2023

Thanks for bringing this to our attention.

Please see the breaking change guidance for more details:

  • DeviceManagement.Enrolment module was renamed to DeviceManagement.Enrollment.
  • Pluralized product names, such as Windows, were wrongly named to their singular form in v1, and have since been corrected in v2.

As for:

Which makes this link and many others bad.
To view the beta release of this cmdlet, view Get-MgBetaDeviceManagementWindowAutopilotDeviceIdentity

This is due to stale reference docs - https://github.com/MicrosoftDocs/microsoftgraph-docs-powershell/issues/322. Cmdlet reference doc for the now renamed DeviceManagement.Enrolment module shouldn't be there. The reference docs will be addressed in the referenced issue. Please use the reference docs for DeviceManagement.Enrollment instead - v1.0 and beta.

@mark3grahams
Copy link
Author

What about the CMDlet count discrepancy?

@peombwa
Copy link
Member

peombwa commented Jul 17, 2023

The cmdlet count difference between SDK v1.x and v2.x is due to the change mentioned in the breaking change guide at https://github.com/microsoftgraph/msgraph-sdk-powershell/blob/dev/docs/upgrade-to-v2.md#directory-role-and-entitlement-management-commands:

Directory role and entitlement management commands that were in DeviceManagement.Enrollment module have been moved to Identity.Governance to align with the API reference.

Is there a command/API that you are missing in v2.x?

@ghost
Copy link

ghost commented Jul 21, 2023

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@mark3grahams
Copy link
Author

Thanks for the information

@peombwa
Copy link
Member

peombwa commented Jul 25, 2023

Closing as resolved. Stale docs will be removed by https://github.com/MicrosoftDocs/microsoftgraph-docs-powershell/issues/322.

@peombwa peombwa closed this as completed Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants