#rndm

1 messages · Page 1 of 1 (latest)

remote skiff
remote skiff
#

Do you have one of the roles assigned to the account you are trying to get the token with Global Administrator Cloud Device Administrator Intune Administrator Password Administrator. And do you get any error?

remote skiff
#

I would reach out to Microsoft Support to check all the settings.

remote skiff
#

Yes it looks like using the AADInternals powershell module it looks it's also possible with PowerShell. I wasn't aware of that yet

remote skiff
#

I have created a PowerShell script to verify your aad device join settings.

remote skiff
#

Please run the script and provide me with the output

#

That's weird I have never heard that resetting a password allows an user to RDP. If the user is added to the local security group of Remote Desktop Users he should be able to RDP to the vm. If you need to reset the password you have other issues which needs to troubleshooted

#

After enrollment I would reboot a couple of times to make sure all the computer policies are on the VM

remote skiff
#

That's clear try to enable device registration.

#

I would like to suggest another approach, because this is not the way

#

Use Microsoft Endpoint Manager with Windows autopilot during Windows deployment to join devices to Azure ad and let Microsoft endpoint manager deploy and configure the device, including join to azure ad

remote skiff
#

Damm I get confused, initially i thought you wanted to join users endpoint devices to add and now it's VMs. Autopilot is not possible using an azure vm because you need access to the console to be able to initiate the autopilot process

#

See here howto join a azure vm to aad
{ "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "resources": [ { "type": "Microsoft.Compute/virtualMachines", "name": "yourVMName", "apiVersion": "2019-07-01", "location": "yourLocation", "properties": { "osProfile": { "computerName": "yourVMName", "adminUsername": "yourAdminUsername", "adminPassword": "yourAdminPassword" }, "hardwareProfile": { "vmSize": "Standard_DS2_v2" }, "storageProfile": { "imageReference": { "publisher": "MicrosoftWindowsServer", "offer": "WindowsServer", "sku": "2016-Datacenter", "version": "latest" } }, "networkProfile": { "networkInterfaces": [ { "id": "[resourceId('Microsoft.Network/networkInterfaces', 'yourNICName')]" } ] } } }, { "type": "Microsoft.Compute/virtualMachines/extensions", "name": "joinAADExtension", "apiVersion": "2019-07-01", "location": "yourLocation", "dependsOn": [ "[resourceId('Microsoft.Compute/virtualMachines', 'yourVMName')]" ], "properties": { "publisher": "Microsoft.Compute", "type": "JsonADDomainExtension", "typeHandlerVersion": "1.3", "autoUpgradeMinorVersion": true, "settings": { "Name": "yourAzureADDomainName", "OUPath": "OU=YourOU,DC=YourDomain,DC=com", "User": "YourAdminUser", "Restart": "true", "Options": "3" }, "protectedSettings": { "Password": "YourAdminPassword" } } } ] }

remote skiff
#

Why do you think that? Have you tested it?

#

There is no such thing in AAD as a trust, only cross-tenant-sync which is a feature currently in preview