Are you trying to connect by logging into the machine through for example RDP? in Azure there are two different "layers" for security rights, the "control plane", easiest described as the things you se in your azure portal (simplified ofc :) ) and the "data plane", easiest described as the "inside" of your resources. For example the operating system of a VM. These two layers do not interchange automaticly and to use Entra ID with a VM you have to enable this "Login with azure AD"
To create a Windows Server 2019 Datacenter VM in Azure with Microsoft Entra login:
- Sign in to the Azure portal by using an account that has access to create VMs, and select + Create a resource.
- In the Search the Marketplace search bar, type Windows Server.
- Select Windows Server, and then choose Windows Server 2019 Datacenter from the Select a software plan dropdown list.
- Select Create.
- On the Management tab, select the Login with Microsoft Entra ID checkbox in the Microsoft Entra ID section.
- Make sure that System assigned managed identity in the Identity section is selected. This action should happen automatically after you enable login with Microsoft Entra ID.
- Go through the rest of the experience of creating a virtual machine. You have to create an administrator username and password for the VM.*
If you however just want access the the virtual machine without Entra ID you can go to the VM in Azure portal and select "reset password" in the left pane and update the password for a local user account.
Hope you find this helpful :)
---If the Answer is helpful, please click "Accept Answer" and upvote it as it helps others