I trying to configure Azure AD connect and federation with AD FS, I'm logging into the VM Server(This server is not AD DC Server , This VM is Where IIS & Apps are hosted) using my Administrator Id& pass(this is how I generally login to VM)
But it throws error saying you must be logged in as a domain user to configure federation with AD FS
I switched & logged into the VM Server using my own AD Id(having global administrator access) & password rather than administrator id.
and while connecting to Azure AD & connecting Directories I use my own AD Id & password
As I enter my Ad Id and Password ,It says, User is not a member of domain admin group of domain
I'm not sure what credentials should I enter in the domain credentials area.
Note : I have only Azure Active Directory and I use Azure Active Directory domain services (I don't have any domain Controller on any windows sever)



I tried to reproduce the same in my environment like below:
Configured Azure AD connect and federation with ADFS
Logged into global admin account and clicked next
To add directory I created new AD account and Enter your "Enterprise Admin Credential" like
imran\AdmininstratorAfter you Configured Directories Select "Next"
Here enter your domin account
imran\Admininstratorto access ADFS services like below:This error may cause if the account you are using to set up Azure AD Connect does not have enough permissions.
Reference:
Setup Your Hybrid Environment Using Azure AD Connect (c-sharpcorner.com)