@Abhishek Rao Firstly, apologies for the delay in responding on this and any inconvenience this issue may have caused.
Chocolatey is a package manager for windows (similar to Yum/Apt-Get) used by Azure customers for installing packages. Chocolatey allows you to use the command line to install packages from a central repository onto a Windows operating system. You can create and manage your own repository, and Chocolatey can install packages from any number of repositories that you designate.
Below will be architecture for same:
Did you got a chance to go through below documentation which talks about integration of Chocolatey in Azure and might be helpful with your scenario:
https://learn.microsoft.com/en-us/azure/automation/automation-dsc-cd-chocolatey
Hope it helps.
Do let me know if you have any further queries.
Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics