And Microsoft offers a Microsoft 365 Developer Program which gives you 25 accounts with the maximum license (so Azure AD Premium/Conditional Access/etc) as long as you promise not to use them for prod (and they wipe the tenant every 90 days).
https://developer.microsoft.com/en-us/microsoft-365/dev-prog...
Both Microsoft Azure AD and JumpCloud have free plans you can use for testing.