I need to backup the Git repository of an Azure API Management instance which is connected to a virtual network and has a custom domain. Hence the SCM endpoint e.g. myapiminstance.scm.azure-api.net
has no valid public DNS entry and cannot be resolved to its local IP address e.g. 10.1.2.3
.
As I do not want to modify my build agents hostname resolution e.g. implementing private DNS for my virtual network I am looking for a very simple solution.
How can I make an Azure Pipelines container running with an adjusted /etc/hosts
so that I could control the IP address and hostname easily with parameters or variable groups?