The Case of the Missing PowerBI Credentials

I migrated a user from AWS Workspaces to AVD to improve performance on POwerBI queries. The migration did indeed significantly increase performance but it also introduced an odd issue: When opening the PowerBI Desktop file the Snowflake credentials store in the file “could not be decrypted.” Every. Time. This behavior was not seen on AWS.

Most Googling on this topic talked about clearing caches and re-entering credentials but none of that worked. There was also an interesting consistency to the issue. It would happen the first time it was opened after a login, every time, but subsequent opens in the same AVD session would work correctly. I started to focus on what was different between AWS and AVD

  • Client OS – Windows 11 vs. Windows Server with Desktop Experience
  • FSLogix profile containers
  • Domain join (AWS) vs Entra join (AVD)
  • Access protocol (PCoIP vs AVD)

I also zoomed in on the error being that the credentials “could not be decrypted” which implied to me there was some sort of data corruption or missing private key. Data missing from a profile and prior experience with the technology made me point to FSLogix. More research indicated that PowerBI credentials are encrypted using the data protection API (DPAPI) which I had never heard of. Googling that technology pointed me to a policy setting I had never seen mentioned in another article LoadAadCredKeyFromProfile from the RemoteDesktop CSP. This policy setting is required if you are using FSLogix with Entra joined VMs. It allows the loading of DPAPI keys from the profile. I created an Intune configuration profile and pointed it to a dynamic device group with my AVD session hosts in it. Problem solved.

AVD Password Prompt Redux

I’ve moved on to a new AVD setup. I went with full cloud: Entra Joined, Intune managed and page blobs for FSLogix. Fantastic.

I started to run into the same issue I had in a previous post where I talked about the roamIdentity FSLogix issue. There is a HUGE warning on the Microsoft site that you cannot roam WAM tokens when you are using Intune so turning that on was not an option.

The AAD Operational log was full of errors saying it was unable to retrieve a PRT which makes sense, if it can’t get a token, I’m going to have to login everywhere. It was also displaying this error:

“Due to a configuration change made by your administrator, or because you moved to a new location, you must use multi-factor authentication to access”

This sent me down a Conditional Access, Legacy Method etc etc rabbit hole. No dice.

Eventually I noticed that the Windows App on Windows didn’t trigger the problem but logging in from a Mac or the Web client made it happen immediately. This set off a bulb in my head: The Windows machine was Entra Joined.

The fix was to enable Entra Single Sign on in the RDP properties and follow the PowerShell instructions in this article:

https://learn.microsoft.com/en-us/azure/virtual-desktop/configure-single-sign-on#enable-microsoft-entra-authentication-for-rdp

Bingo Bango – Logins from any OS now not only didn’t have the problem, they didn’t prompt for in-session password authentication.