Thank you for posting this in Microsoft Q&A.
As I understand you had created a conditional access policy due to which your account is blocked to access Azure portal.
When it comes to all of your Admins being locked out due to an incorrect setting in a Conditional Access policy, you'll have to:
- Check if there are other administrators in your organization that aren't blocked yet. An administrator with access to the Azure portal can disable the policy that is impacting your sign-in.
- If none of the administrators in your organization can update the policy, submit a support request. Microsoft support can review and upon confirmation update the Conditional Access policies that are preventing access.
- If you're unable to access your tenant with any users, you'll have to reach out to our Global Customer Service phone number(s) so their team can look into your issue and potentially give you access to your tenant. Optionally, you can try reaching out to our Azure Data Protection team for further assistance - (866-807-5850).
Note: For future reference, I'd also recommend creating and managing an emergency access account in Azure AD, this will help prevent being accidentally locked out of your Azure Active Directory (Azure AD) organization because you can't sign in or activate another user's account as an administrator.
Additional Links: What to do if you're locked out of the Azure portal? Troubleshooting sign-in problems with Conditional Access
If you have any other questions, please let me know.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.