Switch branches/tags
Find file History
Pull request Compare This branch is 4 commits behind VeeamHub:master.



alt text

Automated Deployment of Veeam on VMware with Veeam Linux Repo connected by VeeamPN

This set of PowerShell and Terraform scripts will deploy a fully configured Veeam environment onto a VMware vSphere platform. VMware Cloud on AWS can also be used as showcased at VMworld 2018 by Anthony Spiteri and Michael Cade (https://videos.vmworld.com/searchsite/2018/videoplayer/19282)

This is an end to end solution and assumes everything to be in place by way of the requirements and pre-reqs

There are three modules

  • Deploy and Install Veeam Backup & Replication 9.5 components on a new VM from Template using Chef and Terraform
  • Deploy and Configure AWS VPC for Veeam Linux Repo and Veeam PN Sitegateway using Terraform
  • Configure Veeam Backup & Replication 9.5 using PowerShell and PowerCLI


  • Terraform 0.11.8+
  • Windows Template with Windows Remote Management enabled and configured for Terraform and up to date VMware Tools
  • Veeam PN Deployed and Configured with Hub (see https://anthonyspiteri.net/)
  • Veeam PN Site Gateway XML Configuration File for AWS VPC Network (see https://anthonyspiteri.net/)
  • vSphere Details and Credentials (Or VMware Cloud on AWS Credentials)
  • AWS Credentials and pre generated key file for AWS Linux AMIs
  • Veeam Cloud Connect Provider Credentials
  • Current Veeam License File converted to BASE64 and saved as license.json in \veeam_standalone_full directory

Getting Started

The Terraform templates included in this repository requires Terraform to be available locally on the machine running the templates. Before you begin, please verify that you have the following information:

  1. Download Terraform (minimum tested version 0.11.8) binary to your workstation.
  2. Gather the VMware credentials required to communicate to vCenter
  3. Save a copy of the file terraform.tfvars.example as terraform.tfvars
  4. Update the variable values in the newly created terraform.tfvars file.

WinRM Config for Template

“winrm quickconfig -q
winrm set winrm/config/service ‘@{AllowUnencrypted=“true”}’
winrm set winrm/config/service/auth ‘@{Basic=“true”}’
Start-Service WinRM
set-service WinRM -StartupType Automatic
Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled false”

config.json Breakdown

All of the variables are configured in the config.json file. Nothing is required to be changed in the main depply script.

"Default": {
"LinuxRepo": {
        "Username": "centos",
    "VCCProvider": {
    "VBRCredentials": {
    "VMCCredentials": {
    "VBRJobDetails": {
                    "DefaultRepo1":"Default Backup Repository",