DEV Community

loading...
Experts Inside

Automated Pi-Hole setup in Azure

Kai Boschung
I have a focus on System Engineering for O365/Azure Solutions. In doing this I very often encounter customer wishes that can't be met without coding and scripting. That's what I'm gonna write about!
・1 min read

The whole concept behind Pi-Hole got me hooked: A DNS sinkhole that blocks traffic I don't want (trackers, malware, etc.). And this can be done for the whole network if you set the upstream DNS server on your router to the Pi-Hole instance. So, no add blocker needed anymore.

Disclaimer: I was not able to get it working... I got the same error discussed in this thread. So, if any skilled linuxer can fix it. I'd be glad!

The instance is quickly set up in Azure thanks to this article:

I went a little further and extended the script to replace yaml placeholders via PowerShell. Line 30 to 45 shows how the replacement is done.

The whole gist including the yaml input file is available here.

More posts on my blog: https://engineerer.ch/

Discussion (0)

Forem Open with the Forem app