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
The following commands attempt to invoke the restore action on various objects like directoryObject, user, group, etc. There's just one problem: they are being invoked on the entity set (e.g. directoryObjects, users, groups), and the action isn't supported on an object referenced from the entity set! restore is only supported on the directory/deletedObjects navigation property.
See these impacted commands -- they currently result in bad rquest:
�[32;1mCommandType Name Version Source�[0m
�[32;1m----------- ---- ------- ------�[0m
Function Restore-MgAdministrativeUnit 1.9.3 Microsoft.Graph.Identity.DirectoryManagem…
Function Restore-MgApplication 1.9.6 Microsoft.Graph.Applications
Function Restore-MgApplication 1.9.3 Microsoft.Graph.Applications
Function Restore-MgContact 1.9.3 Microsoft.Graph.Identity.DirectoryManagem…
Function Restore-MgContract 1.9.3 Microsoft.Graph.Identity.DirectoryManagem…
Function Restore-MgDevice 1.9.3 Microsoft.Graph.Identity.DirectoryManagem…
Function Restore-MgDirectoryObject 1.9.3 Microsoft.Graph.DirectoryObjects
Function Restore-MgDirectoryRole 1.9.3 Microsoft.Graph.Identity.DirectoryManagem…
Function Restore-MgDirectoryRoleTemplate 1.9.3 Microsoft.Graph.Identity.DirectoryManagem…
Function Restore-MgDirectorySettingTemplate 1.9.3 Microsoft.Graph.Identity.DirectoryManagem…
Function Restore-MgGroup 1.9.3 Microsoft.Graph.Groups
Function Restore-MgOrganization 1.9.3 Microsoft.Graph.Identity.DirectoryManagem…
Function Restore-MgServicePrincipal 1.9.6 Microsoft.Graph.Applications
Function Restore-MgServicePrincipal 1.9.3 Microsoft.Graph.Applications
Function Restore-MgUser 1.9.3 Microsoft.Graph.Users.Actions
Function Restore-MgUserManagedDeviceCloudPc 1.9.3 Microsoft.Graph.Users.Actions
Function Restore-MgUserManagedDevicePasscode 1.9.3 Microsoft.Graph.Users.Actions
The text was updated successfully, but these errors were encountered:
Restore-MgDirectoryDeletedItem - /directory/deleteditems/{id}/restore will be available as part of #1324.
As for the unsupported action bound on derived types of deletedObject, the long-term fix is to fix this in the metadata. I've opened an issue in the metadata repo to track this bug - microsoftgraph/msgraph-metadata#169. In the meantime, we will suppress the unsupported commands by applying a targeted remove directive on them.
The following commands attempt to invoke the
restore
action on various objects likedirectoryObject
,user
,group
, etc. There's just one problem: they are being invoked on the entity set (e.g.directoryObjects
,users
,groups
), and the action isn't supported on an object referenced from the entity set!restore
is only supported on thedirectory/deletedObjects
navigation property.See these impacted commands -- they currently result in bad rquest:
�[32;1mCommandType Name Version Source�[0m
�[32;1m----------- ---- ------- ------�[0m
Function Restore-MgAdministrativeUnit 1.9.3 Microsoft.Graph.Identity.DirectoryManagem…
Function Restore-MgApplication 1.9.6 Microsoft.Graph.Applications
Function Restore-MgApplication 1.9.3 Microsoft.Graph.Applications
Function Restore-MgContact 1.9.3 Microsoft.Graph.Identity.DirectoryManagem…
Function Restore-MgContract 1.9.3 Microsoft.Graph.Identity.DirectoryManagem…
Function Restore-MgDevice 1.9.3 Microsoft.Graph.Identity.DirectoryManagem…
Function Restore-MgDirectoryObject 1.9.3 Microsoft.Graph.DirectoryObjects
Function Restore-MgDirectoryRole 1.9.3 Microsoft.Graph.Identity.DirectoryManagem…
Function Restore-MgDirectoryRoleTemplate 1.9.3 Microsoft.Graph.Identity.DirectoryManagem…
Function Restore-MgDirectorySettingTemplate 1.9.3 Microsoft.Graph.Identity.DirectoryManagem…
Function Restore-MgGroup 1.9.3 Microsoft.Graph.Groups
Function Restore-MgOrganization 1.9.3 Microsoft.Graph.Identity.DirectoryManagem…
Function Restore-MgServicePrincipal 1.9.6 Microsoft.Graph.Applications
Function Restore-MgServicePrincipal 1.9.3 Microsoft.Graph.Applications
Function Restore-MgUser 1.9.3 Microsoft.Graph.Users.Actions
Function Restore-MgUserManagedDeviceCloudPc 1.9.3 Microsoft.Graph.Users.Actions
Function Restore-MgUserManagedDevicePasscode 1.9.3 Microsoft.Graph.Users.Actions
The text was updated successfully, but these errors were encountered: