Hello, you can join to Azure AD any Azure Windows Server Datacenter 2019 or greater edition (Standard and Core are not supported) Virtual Machine enabling Azure AD login with a CLI command similar to this:
az vm extension set \
--publisher Microsoft.Azure.ActiveDirectory \
--name AADLoginForWindows \
--resource-group myResourceGroup \
--vm-name myVM
Let us know if you need additional assistance. If the answer was helpful, please accept it so that others can find a solution.