Azure / azure-devtestlab

Azure DevTestLab artifacts, scripts and samples
MIT License
458 stars 602 forks source link

Could not load type 'Microsoft.IdentityModel.Clients.ActiveDirectory.AdalTrace' from assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=3.19.4.11002 #903

Open DerekSMorin opened 1 week ago

DerekSMorin commented 1 week ago

Could not load type 'Microsoft.IdentityModel.Clients.ActiveDirectory.AdalTrace' from assembly 'Microsoft.IdentityModel.Clients.ActiveDirectory, Version=3.19.4.11002

We are recently seeing this with trying to delete ( 1. ) or create (2.) a VM using the "Delete Azure DevTest Labs VM" and "Create Azure Azure DevTest Labs VM tasks.

It looks identical to a bug reported in 2019: https://github.com/Azure/azure-devtestlab/issues/531 but we have just started seeing this in the last few weeks. I have been trying to use the 3.* preview versions of the tasks. I managed to get the delete working but am having difficulty translating the create to use a parameters file. I will create a separate question for my difficulties with that.

I am not sure if it is recommended that we move to 3.* preview or try to get a fix for the AdalTrace problem in earlier versions.