Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not load file or assembly 'Azure.Security.KeyVault.Keys, Version=4.4.0.0' #91

Open
jdoblams opened this issue Jul 26, 2024 · 0 comments

Comments

@jdoblams
Copy link

Issue Description
We are getting this kind of exceptions ""Could not load file or assembly 'Azure.Security.KeyVault.Keys, Version=4.4.0.0, Culture=neutral, PublicKeyToken=927421***e12e44c8'. Could not find or load a specific file. (0x80131621)" while executing the command "Invoke-Sqlcmd -ConnectionString $connectionString -InputFile $sqlScriptPath"

This issue is happening after the latest version upgrade from version 22.2.0 to 22.3.0

Workaround
As a workaround it was performed the downgrade of the version from 22.3.0 to 22.2.0 everything started to work, the command used was Install-PSResource SqlServer -Version 22.2.0 -TrustRepository -Scope CurrentUser
This was also reported and suggested on here actions/runner-images#10216 and in different issues on this repository.

Additionally

Current library found while installing/importing SqlServer module was this "C:\Modules\az_11.3.1\Az.KeyVault*5.2.0*\Azure.Security.KeyVault.Keys.dll" so it isn't clear about this library version on the exception Version=4.4.0.0

Would you please help to take a look on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant