A cloud-based identity and access management service for securing user authentication and resource access
@Иван Бобров
Thank you for posting this in Microsoft Q&A.There are multiple reasons for the error that you are receiving.
This error is caused due to conditional access policy configured in your tenant. In the above error I see that you are trying to access Azure resources from Windows 10 device which is unregistered.
Looks like you have configured a conditional access policy which requires device to be registerd while access any Azure resources.
It might be possible that your device is registered with Azure AD. But still, you are getting device as unregistered.
This is due to the client that you are using to access Azure portal.
You can try to use different browsers and check if you are able to access Azure services.
Also, possibility of below reason can be true as well,
Usually, this error AADSTS500022 indicates that the tenant restriction feature is configured and that the user is trying to access a tenant that isn't in the list of allowed tenants specified in the header Restrict-Access-To-Tenant.Large organizations that emphasize security want to move to cloud services like Microsoft 365, but need to know that their users only can access approved resources. Traditionally, companies restrict domain names or IP addresses when they want to manage access. This approach fails in a world where software as a service (or SaaS) apps are hosted in a public cloud, running on shared domain names like outlook.office.com and login.microsoftonline.com. Blocking these addresses would keep users from accessing Outlook on the web entirely, instead of merely restricting them to approved identities and resources.
The Microsoft Entra solution to this challenge is a feature called tenant restrictions. With tenant restrictions, organizations can control access to SaaS cloud applications, based on the Microsoft Entra tenant the applications use for single sign-on.
Reference link: https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/tenant-restrictions#how-it-works
Let me know if you have any further questions.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.