Repository navigation
Remove-MgContact missing in 2.30 #3397
Description
Activity
- addedstatus:waiting-for-triageAn issue that is yet to be reviewed or assignedAn issue that is yet to be reviewed or assignedtype:bugA broken experienceA broken experience
on Sep 17, 2025 Which sort of contact are you looking to delete? I ask as there are quite a few in Microsoft Graph.
In v2.26.0, which is now unpublished due to it having many problems, many cmdlets were moved to different locations, a choice which I wish had been managed as a breaking change, but This is what my team have inherited.
We have a
Remove-MgPersonalContactcmdlet in theMicrosoft.Graph.PersonalContactsmodule.Ok, looking closer at this I see that in v2.29.0 the delete verb was removed from the OpenAPI spec used to generate the PowerShell SDK.
We'll need to back track this to see why that (and the other verbs) were removed in that version.
We have identified an issue with the metadata being used to generate our SDKs and this is currently being worked on.
- added and removedstatus:waiting-for-triageAn issue that is yet to be reviewed or assignedAn issue that is yet to be reviewed or assigned
on Oct 20, 2025 This has been resolved
gavinbarron install-module Microsoft.Graph.Identity.DirectoryManagement -RequiredVersion 2.34.0 gavinbarron import-module Microsoft.Graph.Identity.DirectoryManagement -RequiredVersion 2.34.0 gavinbarron Get-Command -Module Microsoft.Graph.Identity.DirectoryManagement -Name "remove-mgcontact" CommandType Name Version Source ----------- ---- ------- ------ Function Remove-MgContact 2.34.0 Microsoft.Graph.Identity.DirectoryManagement
Describe the bug
In version 2.30 of the module Microsoft.Graph.Identity.DirectoryManagement the function Remove-MgContact is missing. Further MgContact functions are still included, so I don't think that these functions moved to a different module.
Name
Confirm-MgContactMemberGroup
Confirm-MgContactMemberObject
Get-MgContact
Get-MgContactById
Get-MgContactCount
Get-MgContactDelta
Get-MgContactDirectReport
Get-MgContactDirectReportAsOrgContact
Get-MgContactDirectReportAsUser
Get-MgContactDirectReportCount
Get-MgContactDirectReportCountAsOrgContact
Get-MgContactDirectReportCountAsUser
Get-MgContactManager
Get-MgContactMemberGroup
Get-MgContactMemberObject
Get-MgContactMemberOf
Get-MgContactMemberOfAsAdministrativeUnit
Get-MgContactMemberOfAsGroup
Get-MgContactMemberOfCount
Get-MgContactMemberOfCountAsAdministrativeUnit
Get-MgContactMemberOfCountAsGroup
Get-MgContactServiceProvisioningError
Get-MgContactServiceProvisioningErrorCount
Get-MgContactTransitiveMemberOf
Get-MgContactTransitiveMemberOfAsAdministrativeUnit
Get-MgContactTransitiveMemberOfAsGroup
Get-MgContactTransitiveMemberOfCount
Get-MgContactTransitiveMemberOfCountAsAdministrativeUnit
Get-MgContactTransitiveMemberOfCountAsGroup
Test-MgContactProperty
I tested this on different machines and I could recognize that Remove-MgContact is available in Version 2.25
Expected behavior
The function Remove-MgContact should be available.
How to reproduce
Get-Command -Module Microsoft.Graph.Identity.DirectoryManagement -Name "remove-mgcontact"
SDK Version
2.30
Latest version known to work for scenario above?
2.25
Known Workarounds
No response
Debug output
Click to expand log
```