Azure Integration

Veeam Compute Account

A compute account is required if you wish to restore backups to Azure as well as to deploy and manage Veeam Cloud Appliances or Cloud Machines (i.e., Azure VMs running Veeam Agents managed via Protection Groups of type “Cloud Machines”).

You can either create the Azure App Registration manually or have VBR create it for you.

NOTE: VBR will use a secret for the EntraID Application by default. If you wish to use a certificate you will need to create the EntraID Application manually.

Automatic Creation

In VBR the term “Account” is used, which has a dual meaning:

  1. The User Account that is used to connect and create the EntraID Application
  2. The EntraID Application being created

For the usage of the wizard to automatically create the EntraID Application registration, a Microsoft Azure device authentication process will be run. Please see the Help Center documentation for details.

Custom Role Creation and Assignment

You can also create a custom role with minimal permissions if you do not wish to use the Owner role. However, this still assigns the Contributor and Key Vault Crypto User roles to the EntraID Application.

If that is not acceptable you will need to create an EntraID Application manually (see below).

The specific permissions for the custom role are:

'Microsoft.Authorization/roleDefinitions/read'
'Microsoft.Authorization/roleAssignments/read'
'Microsoft.Authorization/roleAssignments/write'

For details and a JSON statement see the Permissions for Azure Compute Account (New Application) page.

To create the custom role you can use the Azure Portal, Azure CLI, PowerShell or Bicep. You can find an example for each further down below.

Using an Existing EntraID Application

Unlike the New Application flow above you are not assigning the permissions to the user account, but directly to the EntraID Application.

In this case you need to:

  1. Create the EntraID Application
  2. Options:
    • Assign the Azure Contributor role and Key Vault Crypto User role to the EntraID Application
    • Create a custom role with minimal permissions and assign it to the EntraID Application along with the Key Vault Crypto User role

NOTE: it is recommended to use a Certificate instead of a secret for the EntraID Application due to the higher security of certificates.

The custom role requires all the permissions as stated in the JSON here: Permissions for Azure Compute Account (Existing Application)

To create the custom role you can use the Azure Portal, Azure CLI, PowerShell or Bicep. You can find an example for each further down below.

Veeam Storage Account

Azure storage accounts are required for Azure Blob Storage, Azure Blob Storage Archive Tier and the Restore to Azure functionality.

Unlike compute accounts Veeam storage accounts are linked to the specific Azure Storage Account via the access key and secret key. Note that Shared Access Signatures are not supported.

However, as Archive Tier requires additional permissions to be granted outside of accessing the storage, an EntraID application is required. Though not stated in the documentation, you can use the same process as the Veeam Compute Account for a new EntraID Application.

If you wish to create a custom role for this, you can use the following permissions: Storage Account Permissions

Deployment / Integration of Veeam Backup for Azure

The Service Account Permissions, including JSON statements, to create, connect and manage Backup Appliances in Azure can be found here: Service Account Permissions

Cloud Machines

Cloud machines backups allow for the backup of Azure VMs to Azure Blob Storage without the need for a network or proxy.

If you wish to create a new account you can use the same process as the Veeam Compute Account above.

Alteratively you can create a custom role for an existing EntraID Application, which is similar to the Use Existing EntraID Application process, but with the following EntraID Application permissions:

Cloud Machines Permissions

Deploying Veeam Backup for Azure Appliances via Veeam Backup and Replication

The deployment of the latest Veeam Backup for Azure Appliance can be done out of Veeam Backup & Replication. Please see Deploying Backup Appliance in the Helpcenter for instructions.

Using a VPN or ExpressRoute

It is possible to use a VPN or ExpressRoute for both restore to Azure, Cloud Machines, and Azure Blob Repositories. Keep in mind that it increases the costs and complexity of the solution. However if it is required, please see the following KB articles:

Restore to Azure
Offloading to Azure Blob

Private deployments

If a private deployment is in place, you need to make sure that Veeam Backup & Replication components can access the Storage Accounts used as Repositories.

To achieve this, it is necessary to create Azure Private Endpoints in a VNET reachable by the Veeam Backup & Replication Server and the Gateway Server if one is in place. Additionally private DNS lookup of the Storage Accounts needs to be working for these Veeam systems.

Custom Role Creation Examples

Depending on the role to create, use the related JSON statement and role name:

In the following examples the Permissions for Azure Compute Account (New Application) are being used.

The following code parts are only to be seen as examples and commands might change unnoticed on the Microsoft side. Veeam can not take any responsibility for correctness and therefor use them at you own risk!

Azure Portal

To assign the Owner role or the custom role to a user in the Azure Portal, follow this guide: Azure RBAC Role Assignment

Role definition file

Azure CLI and PowerShell both create the role from a JSON file. Save the following as yourfile.json, replacing the subscription ID:

{
  "Name": "Veeam Register Azure Compute Account using new Microsoft Entra application",
  "IsCustom": true,
  "Description": "Permissions needed to add an Azure Compute Account based on a new Microsoft Entra application",
  "Actions": [
    "Microsoft.Authorization/roleDefinitions/read",
    "Microsoft.Authorization/roleAssignments/read",
    "Microsoft.Authorization/roleAssignments/write"
  ],
  "NotActions": [],
  "DataActions": [],
  "NotDataActions": [],
  "AssignableScopes": [
    "/subscriptions/00000000-0000-0000-0000-000000000000"
  ]
}

Azure CLI

For Azure CLI to create the Role use:

az role definition create --role-definition "@yourfile.json"

To assign the role to the subscription use:

az role assignment create \
  --assignee "<User or Group ID>" \
  --role "Veeam Register Azure Compute Account using new Microsoft Entra application" \
  --scope "/subscriptions/00000000-0000-0000-0000-000000000000"

Powershell

Use Powershell to create the role with:

New-AzRoleDefinition -InputFile "yourfile.json"

To assign the role use:

$subScope = "/subscriptions/00000000-0000-0000-0000-000000000000"

New-AzRoleAssignment -SignInName you@yourdomain.com `
  -RoleDefinitionName "Veeam Register Azure Compute Account using new Microsoft Entra application" `
  -Scope $subScope

Bicep

ARM templates can be used but tend to be more verbose. Bicep lets you create the role programmatically, which allows repeatable deployments and tracking of changes with tools such as Git.

Bicep example, VBR New Application:

targetScope = 'subscription'

@description('VBR Actions')
param actions array = [
  'Microsoft.Authorization/roleDefinitions/read'
  'Microsoft.Authorization/roleAssignments/read'
  'Microsoft.Authorization/roleAssignments/write'
]

@description('VBR not Actions')
param notActions array = []

@description('VBR Data Actions')
param dataActions array = []

@description('VBR not Data Actions')
param notDataActions array = []

@description('Name of the custom role')
param roleName string = 'Veeam Register Azure Compute Account using new Microsoft Entra application'

@description('Description of the custom role')
param roleDescription string = 'Permissions needed to add an Azure Compute Account based on a new Microsoft Entra application'

// Seeded from the role name so permission changes update the existing role instead of creating a duplicate

var roleDefName = guid(subscription().id, roleName)

resource roleDef 'Microsoft.Authorization/roleDefinitions@2022-04-01' = {
  name: roleDefName
  properties: {
    roleName: roleName
    description: roleDescription
    type: 'customRole'
    permissions: [
      {
        actions: actions
        notActions: notActions
        dataActions: dataActions
        notDataActions: notDataActions
      }
    ]
    assignableScopes: [
      subscription().id
    ]
  }
}

To deploy: az deployment sub create --location <region> --template-file vbr-role.bicep

Note: This role covers only the Azure RBAC permissions. Creating the new Microsoft Entra application also requires Entra ID permissions (for example, the Application Administrator role, or users being allowed to register applications), which cannot be granted through an Azure custom role.

References

Veeam:

Permissions for Azure Compute Account (Existing Application)
Permissions for Azure Compute Account (New Application)
Azure Archive Object Storage Permissions
Plugin Service Account Permissions
Permissions for Backup of Cloud Machines
KB - Restore to Microsoft Azure with ExpressRoute or site-to-site VPN
KB - Connect to an Object Storage Repository via Azure Blob Private Endpoints

Azure:

Azure Owner Role
Azure Contributor Role
Azure Key Vault Crypto User Role
Azure RBAC Role Assignment
Azure RBAC Role Assignment - Grant Access Powershell
Bicep Documentation


Back to top

Copyright © 2026 Solutions Architects, Veeam Software.