I am trying to connect an Azure 2019 Datacentre VM that we currently have to either an AAD in another subscription. I have setup a peering between the AADVnet and the VM VNet.
I can now attempt to connect to the server with that AAD. However the server comes back with the error whilst attempting to connect to the domain
' This device is joined to Azure AD...and choose to disconnect your device from your work or school'
I did not ask for the VM to be connected to an Azure domain. AADloginFor Windows extension was installed when I first created the VM. I cannot seem to disconnect it from the Azure domain although it is in its own workgroup. If I go into Settings and About there is no option to remove it from the existing Azure AD (even though it is not setup in this subscription) . I have even renamed the computer back to it's orginal name.
How do I remove the VM from the Azure domain?