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
New-MgBetaDirectoryAdministrativeUnit (and probably Update- remains broken in the beta graph. Its been already more than one year. I understand the issue is in the PowerShell graph, not in DSC. but after waiting another year, it would be nice to see some progress, hence I hope DSC can implement one of the two workarounds.
(It seems the workaround was implemented for Delete-)
Description of the issue
New-MgBetaDirectoryAdministrativeUnit (and probably Update- remains broken in the beta graph. Its been already more than one year. I understand the issue is in the PowerShell graph, not in DSC. but after waiting another year, it would be nice to see some progress, hence I hope DSC can implement one of the two workarounds.
(It seems the workaround was implemented for Delete-)
Microsoft365DSC/Modules/Microsoft365DSC/DSCResources/MSFT_AADAdministrativeUnit/MSFT_AADAdministrativeUnit.psm1
Lines 784 to 788 in dc91e11
microsoftgraph/msgraph-sdk-powershell#2529
Is it possible to switch to the v1.0 or use the invoke-mgGraphRequest workaround for New and Update as well?
DSC error:
If taken out the code from the DSC module to manually reproduce the issue:
The code works properly when using the v1.0 command New-MgBetaDirectoryAdministrative or when using the direct endpoint https://graph.microsoft.com/beta/administrativeUnits via Invoke-MgRestMethod
Microsoft 365 DSC Version
1.25.219.1
Which workloads are affected
Azure Active Directory (Entra ID)
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: