Integrate a Solution with ESX Agent Manager The EAM Sample Solution contains classes that you can use to integrate a solution with ESX Agent Manager Manager.For descriptions of the objects that the EAM Sample Solution implements, see the vSphere ESX Agent Manager API Reference.ProcedureConnect a Solution to ESX Agent ManagerTo connect a solution to ESX Agent Manager, you must obtain connection information from the vCenter Server in which you run the solution. You pass a reference to the EsxAgentManager instance that is running in vCenter Server to the solution. Configure an ESX Agency and ESX AgentsYou must define the configuration of the ESX agencies in the implementation of the solution. You set the configuration for ESX agencies and ESX agents in the AgencyConfigInfo and AgentConfigInfo data objects. Create an ESX AgencyYou create an ESX agency by calling the EsxAgentManager.createAgency() method. You must specify ESX agent configurations for each version of ESX Server on which you deploy ESX agents. Update the Agency Scope of a SolutionYou define the ESX agency scope of a solution by passing the managed object references (MoRefs) of the vSphere compute resources to the solution. Change the Goal State of an AgencyA solution can change the goal state of its ESX agencies while the solution is running. For example, when a solution starts, the goal state of its ESX agencies can be ENABLED. If the solution includes a function to remove ESX agencies, when this function runs, the goal state of the ESX agency changes to UNDEPLOYED. Delete an ESX AgencyA solution can delete an ESX agency by calling the Agency.destroyAgency() method on the Agency object. Resolve ESX Agent IssuesESX Agent Manager can detect issues in the ESX agents that solutions deploy. Solutions can try to resolve issues when the status of an ESX agency or an ESX agent is set to red.Parent topic: Integrating Solutions with vSphere ESX Agent ManagerRelated conceptsOverview of vSphere ESX Agent Manager ArchitectureConfiguration Components of ESX AgenciesAuthenticating Against ESX Agent ManagerAvailability of ESX Agent Virtual MachinesMonitoring and Resolving ESX Agent IssuesRelated referenceBenefits of Integrating Solutions with ESX Agent ManagerRequirements for Integrating a Solution with ESX Agent Manager