Oh thats no good, Sure enough build 1.0.0.14 shows this change showing up in code. I have corrected this in build 1.0.0.17 now available for download. APM plugin should auto update later tonight.
I noticed while Stepping through the install and update packages scripts and saw that the call to Choco did not have any mention of the --source option specifying the source repo. Is that intentional ? I didn't see where that was done, but maybe it is setting the source within Choco policies itself vs per-install? I ask because I am not seeing my private repo being used. I hard set the repo --source option with my URL/creds in the call to Choco and it was pulling from my repo properly. Not sure if I need to somehow reset the source settings or something. Like maybe my deployments are messed up from the previous issues.
The Deploy Source Policy group has no Scheduled scripts on it. Is that intentional?
Sources are applied to each agent as a pre set Choco prameter. This means that we do not need to include the source with every package update or install call. The new sources should be added to the choco's source list and multiple sources can exist at once and are based on priority values set with source.
This command will list all the currently configured sources on an agent. To troubleshoot, run command to see if source exists and has priority over default repo.
So, how do we deploy the sources and how can you validate or reset sources if needed?
All deployment operations are managed by group/search/script, this includes installing package managers, updating sources or UNC caching, New agent onboarding, Scanning agent for package data, and installing approved packages.
EDFs are used to initiate these operations and EDFs are used to force agents in and out of the different groups. Let me explain further.
When you configure an agent to be managed by APM, the EDF "Enable Agent" is set to true. This cause agent to join the Automate Package Manager master group. This main group has no script functions but will show you all enabled agents.
We have a sub group called "Deploy Package Managers" that agents with the EDF "Enabled Agent" is true and "Deployed Package Manager" is false wil auto join. They will remain in this group until the Deploy Package Managers script has successfully completed towhich it will have set the EDF "Deployed Package Manager" to true. This invalidates the agent for the "Deploy Package Manager" sub group and the agent leaves this sub group.
The same thing takes place for Sources. Once you have created a source and applied it to an agent via the plugin interface, the agents EDF "Enable Sources" is now set to true along with the Source policy name. This causes agent to join the Deploy Sources sub group where the script "Deploy Sources" get run against agent. If successful, the script will set the EDF "Sources Enabled" which will cause the agent to leave the deploy sources sub group.
At any time you can uncheck the validaion EDFs and force the agent to re join the sub group for that function and reapply its current configured settings.
We just added to build 1.0.0.16 a new set of functions, new sub group and new search that will look for agents that were configured for either sources or UNC and then were unconfigured for both. There was no operation to convert them back to a default repository. "APM Chocolatey Default Repository" EDF shows that agent is using the default repository. If unchecked along with both sources enabled and UNC enable are uncheked, the agent will join the Reset Chocolatey Default Repository sub group, agent will then execute the reset chocolatey defaults script which updates the agents EDF, causing agent to leave group once the defaults have been reset.
By adjusting different EDFs under agent you can force agent to reset that function.

- Screenshot 2024-08-15 095007.png (34.46 KiB) Viewed 5900 times
It is by design that agents are not permanently part of any subgroups. Agent Update Packages functions work behind the sences and based on scheduling you set for agent policy.
Updates are not handled by group management.