Wednesday, February 26, 2014

Troubleshooting Windows Azure authentication in PowerShell.

Hi, in my previous post I have published an article on how to connect with the Windows Azure using PowerShell. 
If you remember I had mentioned two ways to connect to the Windows Azure using PowerShell. The first is using Azure AD authentication and second one is using publishing Certificate.
Yesterday we imported the certificate to my machine and it was working well. But today when I tried to connect to my Azure account using PowerShell and run few Azure PowerShell cmdlet, I am getting the below error.


And getting the same error on the “Windows Azure PowerShell Console” too.

So I was wondering what might be the issue is, as I was working well yesterday. And I just remember that. Yesterday Before using the certificate methods to login, we used a windows Azure Authentication to login and these login was valid for 12 hours, that’s why we able to login and able to run Azure PowerShell cmdlets yesterday.


After few tries, I manage to connect with my Windows Azure account using previously installed certificated.
One of the he solutions is:  Try running PowerShell Console as Administrator
If you are facing problem in running windows  Azure PowerShell cmdlets using certificates, try running  PowerShell as administrator and then run Azure cmdlets.  
I run the PowerShell as administrator and imported Azure module and after that I am successfully able to run windows Azure PowerShell cmdlets.

See you in my next blog post.
Aman Dhally
clip_image017 clip_image018 clip_image019 clip_image020  clip_image021

No comments:

Post a Comment