Hi,
If you want to extend the functionality of a policy basically you need to clone it and modify it according to your needs. Basically, the deployment that the policy does is based on ARM template deployment. Proxy URI can be configured by adding proxyUri property within settings. For configuring credentials for the proxy you can add properties proxyUser and proxyPassword in protectedSettings. Make sure to pass the proxyPassword securely if you use it.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.