Ensure that the account you're using is an Active Directory account synchronized to Entra ID
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin