SDK v2.0 : New-AzureRmResourceGroup : Could not load file or assembly 'Microsoft.Rest.ClientRuntime.Azure.Authentication'
Looks like a new SDK version just hit, getting this error on several different OS versions:
New-AzureRmResourceGroup : Could not load file or assembly 'Microsoft.Rest.ClientRuntime.Azure.Authentication, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name validation
@whilke How did you install the SDK? This is likely a version mismatch between installed SDK versions, can you execute Get-Module -ListAvailable when this occurs?
@markcowl came in via the normal web platform installer channel. Seems to have installed a build that was released just today though it lists an update date of 7/11.
(Get-Module -ListAvailable | Where-Object{ $_.Name -eq 'Azure' })
ModuleType Version Name ExportedCommands
Manifest 2.0.0 Azure {Get-AzureAutomationCertificate, Get-AzureAutomationConnection, New-AzureAutomationConnection, R...
I have the same error. On several machines update through web platform installer, that doesn't list this as a new release

Anyone have a link to the 1.6 (previous version) installer? Our deployment system is down currently because of this issue.
You can download if from the release page https://github.com/Azure/azure-powershell/releases/tag/v1.6.0-July2016
I'm facing the same issue, when I downgrade to version 1.6 it works fine.
I can confirm downgrade to v1.6 works, as commented by @guibirow
Just to add an extra information, when updated to V2, the following error happens:
Command
Login-AzureRmAccount
Set-AzureRmCurrentStorageAccount -ResourceGroupName $TemplateResourceGroup -Name $TemplateStorageAccount
Error:
Set-AzureRmCurrentStorageAccount : Could not load file or assembly 'Microsoft.Rest.ClientRuntime.Azure.Authentication, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A)
At line:70 char:5
+ Set-AzureRmCurrentStorageAccount -ResourceGroupName $TemplateReso ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [Set-AzureRmCurrentStorageAccount], FileLoadException
+ FullyQualifiedErrorId : Microsoft.Azure.Commands.Management.Storage.SetAzureRmCurrentStorageAccount
We have a root cause for the issue. A hotfix will be forthcoming.
Will this hotfix apply to Azure Automation as well? I am getting this error trying to create a Resource Group with a Powershell Workflow runbook after upgrading several Powershell Modules in Azure Automation to their latest version.
Yes, we will push out new installers and new modules.
Meanwhile, we have delisted the AzureRM and Azure modules and pulled back the msi update. Individual modules have not been delisted.
See http://screencast.com/t/dXo7juaBnH can't run Get-AzureRmVM either.
For the record I have a clean install from webpi that I did yesterday on a freshly installed windows laptop, I do not see this issue. is there clarification on what the actual cause might be? Are the folks that are getting this error all upgrading? it seems that way from the handful of comments I read through.
@jeffpatton1971 It would appear I definitely got this error from upgrading. My CI process started to fail after the update to azure powershell 2.0, 2 days ago, and after uninstalling and installing 1.6, it's back to normal.
I got this error on a clean install of v2 and also on upgrade from 1.6 to 2. from WebPI and from PS command line, both fails. When downgraded worked fine. @jeffpatton1971, yesterday they rolled-back to previous version, see if you installed the V2 or V1.6
Interesting we talked a little about this internally and a couple of us did fresh installs and didn't hit this whereas a few of us did upgrades and did see this issue
Get Outlook for Androidhttps://aka.ms/ghei36
On Wed, Aug 10, 2016 at 1:42 PM -0500, "Diego" <[email protected]mailto:[email protected]> wrote:
I got this error on a clean install of v2 and also on upgrade from 1.6 to 2. from WebPI and from PS command line, both fails. When downgraded worked fine. @jeffpatton1971https://github.com/jeffpatton1971, yesterday they rolled-back to previous version, see if you installed the V2 or V1.6
You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-powershell/issues/2747#issuecomment-238963297, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABIxe-Qy7Pv4NGyDGDeiIMLOUItaNJV7ks5qehuJgaJpZM4JfmJb.
@guibirow just noticed your second comment, to my knowledge i'm running the latest
ModuleType Version Name
Manifest 2.0.2 AzureRM.Resources
Could be related or not, @jeffpatton1971 i noticed you did a fresh install of Windows, you would have Windows 10 Anniversary edition I'm assuming. I'm on Windows 10 yet to upgrade to Anniversary edition, i tried upgrading yesterday and had to roll back half way due to my Surface getting stuck on "windows 10 anniversary working on updates 32% don't turn off your pc" didn't progress further than 32%
So maybe Windows 10 Anniversary edition has other updates that allow the Azure PowerShell module v2.0.0 to function.
I'm on windows 10 enterprise...don't think I'm on the anniversary yet...?
Get Outlook for Androidhttps://aka.ms/ghei36
From: Marc Kean Sent: Wednesday, August 10, 3:19 PM Subject: Re: [Azure/azure-powershell] SDK v2.0 : New-AzureRmResourceGroup : Could not load file or assembly 'Microsoft.Rest.ClientRuntime.Azure.Authentication' (#2747) To: Azure/azure-powershell Cc: Jeffrey Patton, Mention
Could be related or not, @jeffpatton1971https://github.com/jeffpatton1971 i noticed you did a fresh install of Windows, you would have Windows 10 Anniversary edition I'm assuming. I'm on Windows 10 yet to upgrade to Anniversary edition, i tried upgrading yesterday and had to roll back half way due to my Surface getting stuck on "windows 10 anniversary working on updates 32% don't turn off your pc" didn't progress further than 32%
So maybe Windows 10 Anniversary edition has other updates that allow the Azure PowerShell module v2.0.0 to function.
You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-powershell/issues/2747#issuecomment-238990929, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABIxew2LwuHUFFZXM8YVIU1O8AT2eIoBks5qejJPgaJpZM4JfmJb.