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

Top comments (0)