Forum Discussion
Manuel Alejandro Peña Sánchez
Apr 15, 2019Copper Contributor
Add-RdsAccount : One or more errors occurred.
Hi to all! I'm Testing the new Windows Virtual Desktop on Azure... I'm following this link https://docs.microsoft.com/en-us/azure/virtual-desktop/tenant-setup-azure-active-directory to create t...
- Apr 23, 2019
Hi all,
I was observing al AAD relation between my subscriptions and this is the conclusion that solved my problem.
1. I am a Global Admin (Guest User) of a AAD where i was creating the WVD Service, like the guide says.
2. I observed that when you log-on with add-rdsaccount it takes the aadid of your account not the one that you are using to create the service, so in my case will never get that i was a Global Admin of the AAD that i was really using. I know it seems obvious but, Cause my account was member from another AAD ID.
3. So i created a new global admin user in the AAD that i used to register the WVD Service.
4. I run again the aad-rdsaccount and the command runned without problem.
So my recommendation is to see back on the aadid that you registered and verify that the account it's not only global admin so also it's should appears like a member of the AAD where you registered the WVD Enterprise Application.
Hopes it helps you Jez85
manjeetr
Apr 24, 2019Copper Contributor
Thanks Manuel Alejandro Peña Sánchez
In my case, I am not that far in the process. I am not able to sign in to WVD using Add-RdsAccount command. After granting service permissions and assigning TenantCreator role to my id, the command -
Add-RdsAccount -DeploymentUrl "https://rdbroker.wvd.microsoft.com"
fails with the error -
Add-RdsAccount : One or more errors occurred.
At line:1 char:1
+ Add-RdsAccount -DeploymentUrl "https://rdbroker.wvd.microsoft.com"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Add-RdsAccount], AggregateException
+ FullyQualifiedErrorId : System.AggregateException,Microsoft.RDInfra.RDPowershell.Context.AddRdsAccount
I have installed and imported WVD module for the Powershell successfully using the following -
https://docs.microsoft.com/en-us/powershell/windows-virtual-desktop/overview
Jamesdld
Mar 29, 2020Brass Contributor
Just got the same issue with PowerShell core, unfortunately I have founded here https://github.com/MicrosoftDocs/azure-docs/issues/27827 that the reason is because those cmdlet are not supported yet on PowerShell core.