Cannot interpolate MS Teams contact-point url

I’m running Grafana 9.1.1. in a Docker container with dashboards, alerts, etc. provisioned. When starting the container I pass along some environment variables, one of them a MS Teams webhook so alerts can be posted in a Teams channel. Yet when checking the contact-point the url did not get replaced the value from the environment variable and instead contains the string “$TEAMS_WEBHOOK”.

Same approach used to work with Grafana 8.2.5 and the then called notifier.

Docker command

 docker run -p 3000:3000 -e GF_SERVER_DOMAIN="localhost/" -e GF_SERVER_ROOT_URL="http://localhost:3000/" [...] -e TEAMS_WEBHOOK="https://..." -v "${PWD}"/alerting:/etc/grafana/provisioning/alerting --rm --name grafana grafana

contact-point.yaml

contactPoints:
  - orgId: 1
    name: Teams Alerting Channel
    receivers:
      - uid: Ha58HpZVzz
        type: teams
        settings:
          url: $TEAMS_WEBHOOK

Contact Point in UI

welcome to the :grafana: forum, @screamingSquirrel
There is a fix for this. It will be in 9.2.0 and 9.1.7:

#54984 (comment)

#55666

Great news. Thank you.