'Can I pass proxy user and password variables to following tasks in azure pipeline

I'm running a framework in azure agent, I will need proxy username and passwords in maven task, I found the variables in initialize job, can I pass them to maven task or set them as environment variables so I can use them later in my code, also how can I get proxy IP and port of this agent

Image from azure job with mentioned proxy variables

Image from azure job with mentioned proxy variables



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source