Skip to content

Get-AzRecoveryServicesVault Error -> Could not load file or assembly 'Microsoft.Azure.PowerShell.Authentication #12468

@shaisundar

Description

@shaisundar

Creating new issue as requested <linked to issue - https://github.com/Azure/azure-powershell/issues/12230>

ARM deployments failing on win 2019 MS Hosted Image.
(Currently, things are working on VS2017-win2016 MS HOsted image.)

We just checked the logs in win2019 image and this is what we found -

[command]Import-Module -Name C:\Modules\az_4.3.0\Az.Accounts\1.9.1\Az.Accounts.psd1 -Global

##[error]Operation failed.
Could not load file or assembly 'Microsoft.Azure.PowerShell.Authentication, Version=1.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

Its failing although it has a later Az.Accounts module, (2.10.0)
We suspect Its failing because its somehow trying to look for Microsoft.Azure.PowerShell.Authentication, Version=1.9.0.0.

So we suspect that this issue will resurface even on win 2016 after the next update.

Requested files uploaded - after listing powershell modules present.

  • and the debug az module file.

3_Azure PowerShell script InlineScript.txt
3_Azure PowerShell script InlineScript (1).txt

Metadata

Metadata

Assignees

Labels

customer-reportedquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions