1672 - Workaround for block-based restore of Azure VMs and Storage Accounts

Modified on Wed, 28 Oct at 10:32 AM

On October 13, 2026, Microsoft removed four storage account permissions (read, write, delete and list keys) from the built-in Azure role Disk Snapshot Contributor, as we report in a service status post. The Redstor Azure Management appliance uses this role, so restores that create a temporary storage account in your subscription now fail with an error similar to:

The client '...' does not have authorization to perform action 'Microsoft.Storage/storageAccounts/write' over scope '/subscriptions/...' 

The affected restore types are:

  • Azure VM restore to a new VM from a block-based backup
  • Azure Storage Account restore to a new storage account

The workaround below grants the four permissions back through a custom role. Choose one of the methods below (both produce the same result).

Note: Run the workaround in the subscription you restore into. For a cross-tenant restore that is the target tenant's subscription, not the one the VM was backed up from.


We are working on adding permission management to the Azure Management appliance, so that you can check and repair appliance permissions from the RedApp without a script or manual steps. Until then, the workaround below is permanent for the subscriptions you apply it to; you do not need to repeat it unless you onboard a new subscription.


PAGE CONTENTS


Option 1: Run the repair script (recommended)

The attached script Repair-RedstorAppliancePermissions.zip creates the custom role and assigns it to every Redstor Azure Management appliance in the subscription. It makes no change where the permissions are already in place, so you can run it more than once.

You need to be an Owner or User Access Administrator of the subscription.

  1. Download the file Repair-RedstorAppliancePermissions.zip from the attachments at the end of this article and extract Repair-RedstorAppliancePermissions.ps1.
  2. Go to https://portal.azure.com and open Cloud Shell (the terminal icon in the top bar). Select PowerShell if asked which shell to use.
  3. In the Cloud Shell toolbar, select Manage files > Upload and upload Repair-RedstorAppliancePermissions.ps1.
  4. Run the script, replacing the placeholder with the ID of the subscription you restore into: 

    ./Repair-RedstorAppliancePermissions.ps1 -SubscriptionId <your-subscription-id>

    The subscription ID is shown on the subscription's Overview page in the Azure portal.
  5. Check that the output ends with Done. and lists each Redstor Azure Management appliance with [OK].
  6. Wait 10 minutes for the permissions to take effect, then retry the restore.

To preview the changes without making them, add -WhatIf to the command in step 4.

Note: If Support has given you the application ID of a specific appliance, you can limit the repair to that appliance by adding -ApplicationId <application-id> to the command. Without it, the script repairs all Redstor appliances in the subscription, which is the recommended approach.


Running the script on your own computer instead of Cloud Shell

  1. Install the Azure PowerShell modules if you do not have them: 
    Install-Module Az.Accounts, Az.Resources -Scope CurrentUser.
  2. Unblock the downloaded file so Windows allows it to run: 
    Unblock-File .\Repair-RedstorAppliancePermissions.ps1.
  3. Sign in with Connect-AzAccount, then run the command from step 4 above.


If the script reports a problem

MessageMeaningWhat to do
You hold ... but not Owner or User Access AdministratorYour account cannot manage role assignments.Ask a subscription Owner to run the script.
No service principal named 'Redstor Azure Management' has a role assignmentThe appliance was onboarded into a different subscription.Re-run with the correct 
-SubscriptionId.
No service principal with application id ... exists in tenantThe -ApplicationId is wrong or belongs to another tenant.Check the ID with support, or run without -ApplicationId.
Role assignment not visible yetAzure has not finished propagating the assignment.Wait a few minutes and run the script again.











Option 2: Apply the workaround manually in the Azure portal

Before you begin

Important: 

  • If you are restoring into more than one subscription, you need to create the custom role once per tenant, because custom role names must be unique in a tenant. For each additional subscription, add that subscription to the existing role (Step 2b below) instead of creating it again, then perform Steps 1 and 3 on that subscription.
  • You may see more than one “Redstor Azure Management” app. There is normally one app per protected subscription. More than one on the same subscription is rare and usually means the subscription was removed from Redstor and then added again (i.e. the old app was left behind), or that more than one Redstor account protects it.
  • If you see more than one "Redstor Azure Management" app listed on the subscription, assign the role to all of them, unless you know which app the failed restore used. In that case, you can assign the role to that app only.
  • For cross-tenant restores, you will need to perform the workaround in the tenant and subscription you are restoring into, not the tenant and subscription the source VM is in.


Step 1: Find the Redstor app(s)

  1. In the Azure portal, go to Subscriptions → the subscription you want to restore into → Access control (IAM) → Role assignments.
  2. Search for Redstor Azure Management. The app is listed three times, once for each role it holds:
    • Virtual Machine Contributor
    • Disk Snapshot Contributor
    • Network Contributor
  3. Note the ID in brackets after the app’s name. You’ll pick the same app/s in Step 3.


Step 2a: Create the custom role (first subscription only)

  1. In Access control (IAM) of the relevant subscription you want to restore into, choose + Add → Add custom role.
  2. Basics: Enter a name, for example CyberSentriq Storage Account Operator, and select Start from scratch. Choose Next.
  3. Permissions: Choose + Add permissions, search for Microsoft.Storage, and open the Microsoft Storage card. 
  4. Tick:
    • Read: List/Get Storage Account(s)
    • Write: Create/Update Storage Account
    • Delete: Delete Storage Account
    • Other: List Storage Account Keys
  5. Assignable scopes: This should already show the subscription you want to restore into. Leave it as it is.
  6. Choose Review + create → Create.


Step 2b: Add another subscription to the existing role (each additional subscription)

  1. Go to Access control (IAM) of the relevant subscription you want to restore into → Roles, filter Type to CustomRole, and choose … → Edit on your custom role.
  2. Under Assignable scopes, choose Add assignable scopes and add the subscription.
  3. Choose Review + create → Update.


Step 3: Assign the role to the Redstor app(s)

  1. In Access control (IAM) of the relevant subscription you want to restore into, choose + Add → Add role assignment.
  2. Role tab: Under Job function roles, search for CyberSentriq Storage Account Operator, select it, and choose Next.
  3. Members tab: Choose User, group, or service principal → + Select members.
  4. Search for Redstor Azure Management and select the app/s from Step 1. You can select several at once. Then choose Select.
  5. If an Assignment type tab appears, choose Active and Permanent.
  6. Choose Review + assign.


Step 4: Retry the restore 

Wait 10 minutes for the new permissions to take effect, then retry the restore.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article