InvalidOperation,Microsoft.Rtc.Management.AD.Cmdlets.AssignCSTeamsUpgradePolicyCmdlet: The tenant cannot switch to Teams Only mode
Microsoft shows this PowerShell error identifier when Grant-CsTeamsUpgradePolicy rejects a tenant upgrade because a public DNS record still points to a Skype for Business Server deployment.
What to check
- Read the detailed PowerShell message and note the domains whose
lyncdiscoverrecords are flagged. - Check which SIP domains are in use. Coordinate any required user migration and hybrid changes before pointing their DNS records to Microsoft 365. Follow Microsoft's procedure for any SIP domains that are no longer used.