System Center Advisor Help >

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.

  1. Open the Operations console, and then click Administration.

  2. Click Profiles, under Run As Configuration, and open the properties of System Center Advisor VMM Run As Account.

  3. Go to the Run As Accounts page, and then click Add.

  4. Select a Windows Run As account that contains the credential needed for VMM, or click New to create a new one.

    noteNote
    The Run As account type must be Windows.

  5. Click Save.

Use the following steps to set the account if your agents are connecting to Advisor by using the Advisor gateway.

  1. On the gateway, open a PowerShell window.

  2. Run the following cmdlet to add the Advisor PowerShell snap-in (if you have not already added it):

    add-pssnapin microsoftadvisorsnapin
    
  3. Run the following cmdlet. When prompted, provide the credential for the action.

    $credential = get-credential
    
  4. 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”}
    
    
    TipTip
    You can use run Get-SCAdvisorActionAccount -validateCredential to view the action accounts you just set.

  5. Restart the Advisory Gateway service.

  6. Restart the agent on the computer you specified in step 4, and then wait until the agent finishes the discovery.