Troubleshooting Azure Backup Failure: Ensure Proper Permissions for 'Microsoft.Compute/galleries' - Prerequisites Guide

Troubleshooting Azure Backup Failure: Ensure Proper Permissions for 'Microsoft.Compute/galleries' - Prerequisites Guide

KB ID: 501025
Issue:
1. Backup failed. Make sure the permissions for 'Microsoft.Compute/galleries' listed in the 'Prerequisites to add Azure Account' are granted.
Cause:
Permissions to create, read, and write galleries are missing or misspelled while creating a role for App Registration. Account credentials are not generated by following the correct document.
Solution:
To resolve this issue, follow these steps:
1. Make sure credentials for Azure Account are generated by following the steps given in the below document.
2. If so, followed the above step, Make sure the permission JSON assigned for the role has the below permissions.
Under "actions":
"Microsoft.Compute/galleries/read"
"Microsoft.Compute/galleries/write"
"Microsoft.Compute/galleries/delete"
"Microsoft.Compute/galleries/share/action"
"Microsoft.Compute/galleries/applications/read"
"Microsoft.Compute/galleries/applications/write"
"Microsoft.Compute/galleries/applications/delete"
"Microsoft.Compute/galleries/applications/versions/read"
"Microsoft.Compute/galleries/applications/versions/write"
"Microsoft.Compute/galleries/applications/versions/delete"
If not, edit the permission JSON, then copy and paste the above permissions under actions, then save it, and wait for some time for the permission changes to get reflected. Then proceed with the backup.