While i am trying to assign static IP for an Azure Virtual machine i tried to use Azure Power shell to do this, I import the AzurePublishSettingFile, after that when i tried to execute the Command Get-AzureVM, it gave me an error:
Get-AzureVM : No certificate was found in the certificate store with thumbprint Error
To be honest, this is the first time i faced this issue, and there this no logic in this error, since as we know once you get the AzurePublishSettingFile you should connect to your account without any issue.
After did some searches in this issue, i found an article that mention a strange solution but it’s work perfect, let’s try it:
1- Navigate to the C:\Users\<YouUserName>\AppData\Roaming\Windows Azure Powershell
You must show hidden files from folder option tool in control panel to see the AppData folder since it’s hidden by default.
2- Delete all files in windows azure Powershell folder:
3- Close Azure Powershell windows and re-run it again, if you dont close the windows you will face the same error and you must delete all files in windows azure poweshell folder again, after that execute the commands again as shown below:
It’s work like a magic 🙂
Ahmad Yasin in a Microsoft Cloud Engineer and the publisher of
AzureDummies blog. He also hold many certificates in office 365
and windows azure including Developing Microsoft Azure Solutions, Implementing Microsoft Azure Infrastructure Solutions
and MCSA office 365.