You should have enabled Azure AD login when the VM was created.
It might be possible to get away with this by enabling System Managed Identity in the VM. You need to do that before you install the AAD extension.
https://learn.microsoft.com/en-us/azure/active-directory/devices/howto-vm-sign-in-azure-ad-windows
Hope this helps!