The first step you will need to do is convert your domain to federated.
Make sure you meet the below requirements before proceeding:
Import-Module cmdlet (Import-Module -name <name of module>) for both MSOnline and Microsoft Entra ID. If either commands fail, visit the Microsoft PowerShell Gallery for more information.
To figure out if your domain is already federated, you can open PowerShell and run the following commands:
Connect-msolservicePS C****> Get-MsolDomainThese commands will list out all your domain names, their status, and authentication type (federated).