Allow access to Azure machines only from your dynamic IP, automatically.
Provide a simple way to restrict access to Azure machines (for example from your home connection), without deploying complex solutions.
Environment variable | Details | Requirement | Example |
---|---|---|---|
NSG_AND_RESOURCE | Pairs of NSG and resource groups to apply the rule on separated by a space | Required | NSG1:MYGROUP1 NSG2:MYGROUP2 |
SLEEP_TIME | Time to wait between update iterations in seconds. The default is 5 minutes | Optional | SLEEP_TIME=500 |
- Run
setup.sh
and follow the instructions to generate a service principal for the docker container. - Save the .env file which contains all the needed login information
- Pull the container
docker pull benhh1/azureipfollower
- Configure the container to run with the environment variables from the .env file and from the configuration section.
Enjoy!