DEV Community

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

Posted on

2

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

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

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