As we know that Microsoft have deprecated skype for business online, so we have to connect Microsoft Teams for migration of skype for business on premise users.
We have to user Skype for business Power shell on the FE server having internet access.
First save the credentials in a variable $cred.
$cred=Get-Credential
then connect to teams:
Type Connect-MicrosoftTeams and enter the credentials
Place
the skype HostedMigrationOverrideUrl in a variable $url
$url=https://admin1e.online.lync.com/HostedMigration/hostedmigrationService.svc
Then use
the following command
Move-CsUser
-Identity nawaz@domain.com -Target sipfed.online.lync.com -Credential $cred -HostedMigrationOverrideUrl
$url
then you should get the prompt for confirmation, after entering "Y" the command should be successful and the user should be migrated.
Note: in the skype HostedMigrationOverrideUrl the two yellow highlighted characters (1e) will be different for each organization.
$url=https://admin1e.online.lync.com/HostedMigration/hostedmigrationService.svc