DEV Community

Cover image for Configure Alert Manager with Basic Authentication in Microsoft Azure WebApp
Suryabhan Singh Vaghela
Suryabhan Singh Vaghela

Posted on

Configure Alert Manager with Basic Authentication in Microsoft Azure WebApp

Goal :

  • Configuration of Alert Manager 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 Alert Manager Basic Authentication in Microsoft Azure WebApp
Configuration of Alert Manager Basic Authentication in Microsoft Azure WebApp
Configuration of Alert Manager Basic Authentication in Microsoft Azure WebApp

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

Configuration of Alert Manager Basic Authentication in Microsoft Azure WebApp

  • Set an Startup Commmand for Alert Manager WebApp which includes web.yml
az webapp config set --name $WebAppName --resource-group $ResourceGroupName --startup-file `
"--config.file=/etc/alertmanager/config.yml --web.config.file=/etc/alertmanager/web.yml --storage.path=/alertmanager --cluster.advertise-address=0.0.0.0:9093"
Enter fullscreen mode Exit fullscreen mode

Configuration of Alert Manager Basic Authentication in Microsoft Azure WebApp

Configuration of Alert Manager Basic Authentication in Microsoft Azure WebApp

Top comments (0)