Resolving dependencies before the domain is deleted
Hi, community.
I'm migrating domains to another tenant. I'm trying to remove domains before adding them to another tenant. I understand that there may be dependencies for mail users (clearing ProxyAddress), I understand that some depend on WindowsLiveID. In general, having already transferred 9 domains, I understand what you can encounter.
However, there was a last domain left, in which there were a lot of users and only 4 users, whom I cannot move in any way. As you understand, all dependencies are cleared, I choose to change the domain and everything looks good. But as soon as I refresh the page, it again shows me that I cannot delete the domain and shows these 4 users.
I found only one parameter that contains the domain name that I want to delete.
Get-AzureADUser -ObjectId 'e94f708a-e96b-4ccb-aea7-e11c9512cd69' | fl
This is SipProxyAddress. I suspect that this parameter most likely migrated from on-prem ADDS. Most likely, this domain was previously synchronized with on-prem where Lync was deployed.
Okay, I'm trying to clear this attribute.
Set-AzureADUser -ObjectId 'e94f708a-e96b-4ccb-aea7-e11c9512cd69' –replace @{SipProxyAddress='******@contoso.onmicrosoft.com'}
replace with any other address. But this parameter is read only, I get an error. This is how it should be if this parameter is from an on-prem environment.
But the question is how do I clear it, because this is the only parameter that refers to contoso.com, which I want to delete.
Perhaps you have other ideas. Perhaps this is not the cause or there is a way to clear it without deleting users.
Thank you.