Symptom:
When using Azure PowerShell command get-AzureVMImage, we may get the following error report:
PS C:\> get-azurevmimage VERBOSE: 2:45:42 PM - Begin Operation: Get-AzureVMImage get-azurevmimage : Requested value 'xxx' was not found. At line:1 char:1 + get-azurevmimage + ~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Get-AzureVMImage], ArgumentException + FullyQualifiedErrorId :
System.ArgumentException,Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.DiskRepository.GetAzureVMImage
This error means the Azure PowerShell is not able to query the azure image repository.
Cause:
This issue could be caused the PowerShell version is not the latest version.
Solution:
1. Using the command:(Get-Module Azure).Version to get the Azure PowerShell version.
2. Go to the Azure PowerShell website to update Azure PowerShell or reinstall it.
http://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.