• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
The Blog of Jorge de la Cruz

The Blog of Jorge de la Cruz

Everything about VMware, Veeam, InfluxData, Grafana, Zimbra, etc.

  • Home
  • VMWARE
  • VEEAM
    • Veeam Content Recap 2021
    • Veeam v11a
      • Veeam Backup and Replication v11a
    • Veeam Backup for AWS
      • Veeam Backup for AWS v4
    • Veeam Backup for Azure
      • Veeam Backup for Azure v3
    • VeeamON 2021
      • Veeam Announces Support for Red Hat Enterprise Virtualization (RHEV/KVM)
      • Veeam announces enhancements for new versions of Veeam Backup for AWS v4/Azure v3/GVP v2
      • VBO v6 – Self-Service Portal and Native Integration with Azure Archive and AWS S3 Glacier
  • Grafana
    • Part I (Installing InfluxDB, Telegraf and Grafana on Ubuntu 20.04 LTS)
    • Part VIII (Monitoring Veeam using Veeam Enterprise Manager)
    • Part XII (Native Telegraf Plugin for vSphere)
    • Part XIII – Veeam Backup for Microsoft Office 365 v4
    • Part XIV – Veeam Availability Console
    • Part XV – IPMI Monitoring of our ESXi Hosts
    • Part XVI – Performance and Advanced Security of Veeam Backup for Microsoft Office 365
    • Part XVII – Showing Dashboards on Two Monitors Using Raspberry Pi 4
    • Part XIX (Monitoring Veeam with Enterprise Manager) Shell Script
    • Part XXII (Monitoring Cloudflare, include beautiful Maps)
    • Part XXIII (Monitoring WordPress with Jetpack RESTful API)
    • Part XXIV (Monitoring Veeam Backup for Microsoft Azure)
    • Part XXV (Monitoring Power Consumption)
    • Part XXVI (Monitoring Veeam Backup for Nutanix)
    • Part XXVII (Monitoring ReFS and XFS (block-cloning and reflink)
    • Part XXVIII (Monitoring HPE StoreOnce)
    • Part XXIX (Monitoring Pi-hole)
    • Part XXXI (Monitoring Unifi Protect)
    • Part XXXII (Monitoring Veeam ONE – experimental)
    • Part XXXIII (Monitoring NetApp ONTAP)
    • Part XXXIV (Monitoring Runecast)
  • Nutanix
  • ZIMBRA
  • PRTG
  • LINUX
  • MICROSOFT

Veeam: Veeam Backup & Replication Licensing Report Automated and on your Email

30th June 2025 - Written in: veeam

Greetings friends, I have seen this request come a few times on the forums for the past months. The idea is simple, get the great VBR HTML report about licensing, delivered to your email comfortably. Like once a week, or a month, or even on demand.

Why is this important?

Since the transition from perpetual to VUL, Customers now pay more attention to the license and the current consumption. Sometimes curious about usage, and other times just to confirm that the workload that was decommissioned it is not taking more license for example.

Stay with me to get this great, same VBR report only when you guys really need it:

Building blocks and logic

I have used PowerShell to simplify the backup administrator life, the final flow looks something like this:

  • We should download the script, and review it and do our due diligence – https://github.com/jorgedlcruz/veeam-html-reporting/tree/main/veeam-backup-and-replication
  • Make sure you run this from Veeam Backup & Replication, or a server with the VBR Power-shell module
  • Create a Microsoft Azure Application capable of sending email, get a secret, etc.
  • Make sure we have the module MSPAL.PS

Microsoft Azure Application to send Mails

This is the evolution of the older SMTP Servers where we just spammed some user/pass and there you go. Now it is a bit more complex, but for those familiarised with Microsoft Azure a piece of cake. Anyways, let’s make sure we have an App Registration with the next permissions:

If we do, or when we do. Let’s create some secret for it:

We will need the Client ID as well, that we can find under Overview of the App Registration:

Save this secret value and add it to the script as well.

Making sure we have MSPAL.PS

To send emails, and basically to authenticate in Microsoft Azure services, we will need MSPAL.PS it is the standard, all the information can be found here. Installing it is just one line as an admin of the machine:

Install-Module -Name MSAL.PS -Force -AllowClobber

Putting it all together, and running it

Alright, if we have followed all nicely, the last step is just to fill the script parameters:

# Global Parameters
$timestamp = Get-Date -Format "yyyyMMdd_HH_mm_ss"
$reportFileName = "VBR_License_Report_$timestamp"
$outputPath = "$PSScriptRoot\$reportFileName"
$RecipientEmail = "[email protected]"

$TenantId = "YOURMS365TENANT.onmicrosoft.com"
$ClientId = "YOURCLIENTID"
$ClientSecret = ConvertTo-SecureString "YOURAPPSECRET" -AsPlainText -Force

If we are all happy and ready, let’s get some colours! The script has a lot of console debug for those who will be watching while running, but that is not the main use-case I guess:

How does it look like by email? Well, just an email with an HTML attached 🙂

Next steps

The next steps would be to fine-tune the script, as you can save it as well as JSON, and perhaps do more better stuff with it.

Another interesting step will be to create an scheduled task in this windows system to receive this email weekly/monthly, etc.

Filed Under: veeam Tagged With: veeam backup license report, veeam consumption report, veeam license report, veeam report

Reader Interactions

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

  • E-mail
  • GitHub
  • LinkedIn
  • RSS
  • Twitter
  • YouTube

Posts Calendar

June 2025
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
30  
« May    

Disclaimer

All opinions expressed on this site are my own and do not represent the opinions of any company I have worked with, am working with, or will be working with.

Copyright © 2025 · The Blog of Jorge de la Cruz