Set the Run As Account for Virtual Machine Manager (VMM)
System Center Advisor leverages the System Center Operations Manager agent and management pack technology as the foundation for the Advisor agent on-premise software. Advisor builds upon management packs for workloads to provide value-add services. In the VMM workload, all rules used to analyze VMM run on the VMM server. Because of this, you need to provide credential information either by configuring a System Center Operations Manager Run As account or through the management interface, a PowerShell cmdlet script, that is shipped with Advisor v1.1 and later.
Ensure that the Run As account has privileges to do the following:
Use the VMM PowerShell module
Query the VMM database
Remotely administer the VMM agents running on virtualization hosts
Use the following steps to set the account if you are connecting to Advisor by using Operations Manager.
Open the Operations console, and then click Administration.
Click Profiles, under Run As Configuration, and open the properties of System Center Advisor VMM Run As Account.
Go to the Run As Accounts page, and then click Add.
Select a Windows Run As account that contains the credential needed for VMM, or click New to create a new one.
Note
The Run As account type must be Windows.
Click Save.
Use the following steps to set the account if your agents are connecting to Advisor by using the Advisor gateway.
On the gateway, open a PowerShell window.
Run the following cmdlet to add the Advisor PowerShell snap-in (if you have not already added it):
add-pssnapin microsoftadvisorsnapin
Run the following cmdlet. When prompted, provide the credential for the action.
$credential = get-credential
Run the Set-SCAdvisorActionAccount cmdlet to set the credentials. For example, if the agent computer name is <Com1>, run the following:
Set-SCAdvisorActionAccount -ActionAccountName Microsoft.KnowledgeServices.ElevatedAccount.VMM -Credential $credential –Action Add -AllowedComputer @{“Com1”}
Tip
You can use run Get-SCAdvisorActionAccount -validateCredential to view the action accounts you just set.
Restart the Advisory Gateway service.
Restart the agent on the computer you specified in step 4, and then wait until the agent finishes the discovery.