Quantcast
Channel: Azure Management Portal forum
Viewing all articles
Browse latest Browse all 4189

Azure PowerShell Resource manager mode - getting Authentication failures

$
0
0

I am using the 8.13 version of the Azure cmdlelts, and am trying to access stuff in resource manager mode. I can switch into Resource manager mode easily enough, but once I do, I get Autntication errors. For example, if I run the following script:

Switch-AzureMode AzureResourceManager
Get-AzureLocation

And I routinely get:

Get-AzureLocation : AuthenticationFailed: Authentication failed. The 'Authorization' header is not present or provided in 
an invalid format.
At line:1 char:1
+ Get-AzureLocation
+ ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-AzureLocation], CloudException
    + FullyQualifiedErrorId : Microsoft.Azure.Commands.Resources.GetAzureLocationCommand

The error message is slightly misleading in that there are no authorization headers defined in the PowerShell code nor is there any parameter I could specify in the call to Get-AzureLocation. I suspect this is possibly an error relating to the underlying REST Interface. The cmdlet could probably be better designed to trap this error and produce a more useful message - but I digress.

I'd be interested in some background (what is the underlying issue) but more more pragmatically I'd love to know how to fix this?


Thomas Lee <DoctorDNS@Gmail.Com>


Viewing all articles
Browse latest Browse all 4189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>