When you attempt to view a list of managed virtual machines (VMs) in Windows Azure Pack 2013, you receive the following error:

An error occurred while retrieving the list of Virtual Machine Roles

Additionally, searching for virtual machines may return the following error:

Virtual Machine Role Name is not available

Also, an event similar to the following may be present in the Microsoft-WindowsAzurePack-MgmtSvc-TenantSite event log:

Log Name: Microsoft-WindowsAzurePack-MgmtSvc-TenantSite
EventID: 220
Level: Warning
Description:
"subscriptionId">{00000000-0000-0000-0000-000000000000}
System.AggregateException: One or more errors occurred. --->
System.NullReferenceException: Object reference not set to an instance of an object. at
Microsoft.WindowsAzure.Server.VM.TenantExtension.Controllers.VMController.
<<ListVMRoles>b__2a8>d__2ae.MoveNext() ---
End of stack trace from previous location where exception was thrown --- at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at
Microsoft.WindowsAzure.Server.VM.TenantExtension.Controllers.VMController.<ListVMRoles>d__2b3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.WindowsAzure.Server.VM.TenantExtension.Controllers.VMController.<ListVMsAndVMRoles>d__fa.MoveNext()
--- End of inner exception stack trace ---
---> (Inner Exception #0)
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.WindowsAzure.Server.VM.TenantExtension.Controllers.VMController.<<ListVMRoles>b__2a8>d__2ae.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.WindowsAzure.Server.VM.TenantExtension.Controllers.VMController.<ListVMRoles>d__2b3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at Microsoft.WindowsAzure.Server.VM.TenantExtension.Controllers.VMController.<ListVMsAndVMRoles>d__fa.MoveNext()
<---</Data>

These errors can occur if the resource provider's passwords are out of sync in the Windows Azure Pack database.

For all the details and a resolution, please see the following:

KB2983441 - "An error occurred while retrieving the list of Virtual Machine Roles" in Windows Azure Pack 2013 (http://support.microsoft.com/kb/2983441)

J.C. Hornbeck | Solution Asset PM | Microsoft GBS Management and Security Division

Get the latest System Center news on Facebook and Twitter:

clip_image001 clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/