The answer and comments from Sam are quite right, you need to separate users with different login names; and you are violating the license by running Windows 10 Pro on Azure.
One current, supported, and validly licensed method for doing this is to deploy Azure Virtual Desktop. AVD provides a managed Azure service that combines remote desktop gateway and remote desktop host services with a Windows 10 edition built and licensed for concurrent use by multiple users. If you are familiar with Remote Desktop Serivces or Citrix on servers, this is a similar offering based on Windows 10.
In an AVD scenario both users (and many more) can login to the same Windows 10 machine at the same time without getting kicked out by other users or otherwise prompted during login. In general AVD users are unaware that another user is concurrently using the same machine. AVD requires a license per-user generally from a Microsoft 365 E3/E5 monthly license subscription.
Azure Virtual Desktop documentation
- Create a full desktop virtualization environment in your Azure subscription without running any gateway servers.
- Publish as many host pools as you need to accommodate your diverse workloads.
- Bring your own image for production workloads or test from the Azure Gallery.
- Reduce costs with pooled, multi-session resources. With the new Windows 10 Enterprise multi-session capability, exclusive to Azure Virtual Desktop and Remote Desktop Session Host (RDSH) role on Windows Server, you can greatly reduce the number of virtual machines and operating system (OS) overhead while still providing the same resources to your users.
- Provide individual ownership through personal (persistent) desktops.