Skip to content

[BUG] 2.1.1 not sending to Teams #122

Description

@tedcrawford

What happened?

After configuring the latest version I am unable to send notifications to teams. I have tested the webhook an it's still valid

Steps To Reproduce

Follow manual installation steps using v2.1.1
edit conf.json to enable teams as true and insert webhook, user_id, display_name
run backup job

VeeamNotify version

v2.1.1

PowerShell version

5.1

Veeam Backup & Replication build number

12.3.1.1139

Relevant log output

conf.json

{
    "services": {
        "discord": {
            "enabled": false,
            "webhook": "DiscordWebhook",
            "user_id": "123456789"
        },
        "slack": {
            "enabled": false,
            "webhook": "SlackWebhook",
            "user_id": "A1B2C3D4E5"
        },
        "teams": {
            "enabled": true,
            "webhook": "https:webhook",
            "user_id": "user@domain.tld",
            "display_name": "Your Name"
        },
        "telegram": {
            "enabled": false,
            "bot_token": "TelegramBotToken",
            "chat_id": "TelegramChatID",
            "user_name": "yourusername"
        },
        "http": {
            "enabled": false,
            "url": "EndpointURL",
            "method": "POST"
        }
    },
    "mentions": {
        "on_failure": false,
        "on_warning": false,
        "on_success": false
    },
    "notifications": {
        "on_success": true,
        "on_failure": true,
        "on_warning": true
    },
    "logging": {
        "enabled": true,
        "level": "debug",
        "max_age_days": 7
    },
    "update": {
        "notify": true,
        "auto_update": false,
        "auto_update_comment": "auto_update is not yet implemented. This will do nothing even if 'true'."
    },
    "thumbnail": "https://raw.githubusercontent.com/tigattack/VeeamNotify/main/asset/thumb01.png"
}


from log: 

Windows PowerShell transcript start
Start time: 20250805100841
Username: SYD03G1VBK01\veeamadmin
RunAs User: SYD03G1VBK01\veeamadmin
Configuration Name: 
Machine: SYD03G1VBK01 (Microsoft Windows NT 10.0.20348.0)
Host Application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoProfile -File C:\VeeamScripts\VeeamNotify\AlertSender.ps1 -JobId 0a808045-1aa3-4417-853b-306fd1dc5aab -SessionId f001f60f-b806-4afc-a440-2e604c7e02e8 -JobType Backup -Config {  "services": {    "discord": {      "enabled": false,      "webhook": "DiscordWebhook",      "user_id": "123456789"    },    "slack": {      "enabled": false,      "webhook": "SlackWebhook",      "user_id": "A1B2C3D4E5"    },    "teams": {      "enabled": true,      "webhook": "https://webhookremoved",      "user_id": "user@domain.tld",      "display_name": "Your Name"    },    "telegram": {      "enabled": false,      "bot_token": "TelegramBotToken",      "chat_id": "TelegramChatID",      "user_name": "yourusername"    },    "http": {      "enabled": false,      "url": "EndpointURL",      "method": "POST"    }  },  "mentions": {    "on_failure": false,    "on_warning": false,    "on_success": false  },  "notifications": {    "on_success": true,    "on_failure": true,    "on_warning": true  },  "logging": {    "enabled": true,    "level": "debug",    "max_age_days": 7  },  "update": {    "notify": true,    "auto_update": false,    "auto_update_comment": "auto_update is not yet implemented. This will do nothing even if 'true'."  },  "thumbnail": "https://raw.githubusercontent.com/tigattack/VeeamNotify/main/asset/thumb01.png"} -Logfile C:\VeeamScripts\VeeamNotify\log\2025-08-05_10.08.31-vgc-syd-oss-dev_(Incremental).log
Process ID: 21816
PSVersion: 5.1.20348.2849
PSEdition: Desktop
PSCompatibleVersions: 1.0, 2.0, 3.0, 4.0, 5.0, 5.1.20348.2849
BuildVersion: 10.0.20348.2849
CLRVersion: 4.0.30319.42000
WSManStackVersion: 3.0
PSRemotingProtocolVersion: 2.3
SerializationVersion: 1.1.0.1
**********************
2025-08-05T00:08:41.458Z [INFO] Transcript is being logged to 'C:\VeeamScripts\VeeamNotify\log\2025-08-05_10.08.31-vgc-syd-oss-dev_(Incremental).log'.
PS>TerminatingError(Invoke-RestMethod): "Unable to connect to the remote server"
2025-08-05T00:09:05.615Z [INFO] No update available.
2025-08-05T00:09:05.630Z [DEBUG] Skipping Discord notification as it is not enabled.
2025-08-05T00:09:05.630Z [DEBUG] Skipping Slack notification as it is not enabled.
2025-08-05T00:09:06.536Z [INFO] Teams notification sent successfully.
2025-08-05T00:09:06.536Z [DEBUG] Teams notification response: Webhook message delivery failed with error: Microsoft Teams endpoint returned HTTP error 400 with ContextId 01=2..
2025-08-05T00:09:06.536Z [DEBUG] Skipping Telegram notification as it is not enabled.
2025-08-05T00:09:06.536Z [DEBUG] Skipping Http notification as it is not enabled.
2025-08-05T00:09:06.552Z [DEBUG] Running log cleanup.
VERBOSE: Performing the operation "Remove expired log files" on target "C:\VeeamScripts\VeeamNotify\log".
2025-08-05T00:09:06.552Z [DEBUG] Searching for log files older than 7 days.
2025-08-05T00:09:06.568Z [DEBUG] Found 0 logs files exceeding retention period.
2025-08-05T00:09:06.568Z [INFO] Stopping transcript logging.
**********************
Windows PowerShell transcript end
End time: 20250805100906
**********************

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions