Get-AzureBatchPool fails by saying "Could not load file or assembly 'Microsoft.Extensions.Primitives, Version=1.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The system cannot find the file specified." #9585
Labels
Description
Get-AzureBatchPool fails by saying "Could not load file or assembly 'Microsoft.Extensions.Primitives, Version=1.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' or one of its dependencies. The system cannot find the file specified."
Steps that I followed to install Az cmdlets:
This installation process installed the 1.1.0 Az.Batch module which contains 'Microsoft.Extensions.Primitives.dll' with version 1.1.0-rtm-22752.
Exception Details:
Workarounds
1. Run the command: Install-Package 'Microsoft.Extensions.Primitives' -RequiredVersion 1.0.1.0.
Go to C:\Program Files\WindowsPowerShell\Modules\Az.Batch\1.1.0 and delete the existing Microsoft.Extensions.Primitives.dll .
Go to C:\Program Files\PackageManagement\NuGet\Packages\Microsoft.Extensions.Primitives.1.0.1 and copy the DLL from there. And paste the DLL into C:\Program Files\WindowsPowerShell\Modules\Az.Batch\1.1.0.
Steps to Reproduce
Module Version
Environment Data
Is it a known issue? Is the fix for this already in place?
The text was updated successfully, but these errors were encountered: