DEV Community

Cover image for Configure Blackbox Exporter with Basic Authentication in Microsoft Azure WebApp
Suryabhan Singh Vaghela
Suryabhan Singh Vaghela

Posted on

Configure Blackbox Exporter with Basic Authentication in Microsoft Azure WebApp

Goal :

  • Configuration of Blackbox Exporter Basic Authentication in Microsoft Azure WebApp.

Pre-Requisite :

Steps

  1. Create a web.yml file (documentation)

  2. You can also use bcrypt generators on the web

Configuration of Blackbox Exporter Basic Authentication in Microsoft Azure WebApp
Configuration of Blackbox Exporter Basic Authentication in Microsoft Azure WebApp
Configuration of Blackbox Exporter Basic Authentication in Microsoft Azure WebApp

  • web.yml (Upload this file in **suryasblackboxexporter** Storage Account Share)
basic_auth_users:
  suryauser: $2a$12$6g5f3MZriVtoOZ7GrCEwzuTBxnPQwHurpktXTXUu1neg/XZeHzipy
Enter fullscreen mode Exit fullscreen mode

Configuration of Blackbox Exporter Basic Authentication in Microsoft Azure WebApp

  • Set an Startup Commmand for Blackbox Exporter WebApp which includes web.yml
az webapp config set --name $WebAppName --resource-group $ResourceGroupName --startup-file `
"--config.file=/config/blackbox.yml --web.config.file=/config/web.yml"
Enter fullscreen mode Exit fullscreen mode

Configuration of Blackbox Exporter Basic Authentication in Microsoft Azure WebApp
Configuration of Blackbox Exporter Basic Authentication in Microsoft Azure WebApp

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay