Skip to content
PagesTroubleshooting
On this page

Troubleshooting

Errors you can meet when deploying, setting up, running and removing Revert, in that order, with their cause and resolution. Messages in quotes are shown exactly as the product or Azure displays them; <placeholders> stand for values from your deployment.

Deployment fails with "is a trademarked or reserved word"#

Symptom. The deployment fails with an Azure error like this:

The resource name '<generated name>azscripts' or a part of the name is a trademarked or reserved word. (Code:DeploymentScriptOperationFailed)

Cause. Azure occasionally generates a temporary resource name that contains a word it does not allow. The same inputs always produce the same name, so an unchanged retry fails the same way, on an update as well as a first deployment.

Resolution.

  1. Start the deployment again with the same settings (for an update, the same resource group and Resource name prefix).
  2. On Backup configuration, set Deployment retry suffix to up to six lowercase letters or digits, for example 2. If the error comes back, use a different value.

Deployment fails because the Key Vault name is already in use#

Symptom. The Basics page warns that "A soft-deleted Key Vault whose name starts with <prefix>-kv- already exists", or the deployment fails with this Azure error:

The vault name '<prefix>-kv-<hash>' is already in use. (Code:VaultAlreadyExists)

Cause. Key Vault names are globally unique, and the vault's name comes from the Resource name prefix and the resource group. A deleted vault holds its name for 90 days, and purge protection stops anyone purging it early (az keyvault purge fails with "Operation 'DeletedVaultPurge' is not allowed."). The Basics warning compares only the prefix, so a collision is possible, not certain: it also needs a resource group with the same name in the same subscription, as when you retry after deleting a failed deployment.

Resolution.

  1. List the deleted vaults, their regions and the resource group each came from:

    az keyvault list-deleted --query "[].{name:name,loc:properties.location,from:properties.vaultId}" -o table
    
  2. Act on what you find:

    The deleted vault What to do
    Holds certificates you don't need Change Resource name prefix and deploy again.
    Came from a different resource group Leave recovery off; nothing collides.
    Belongs to the deployment you are redeploying (same subscription, resource group name and region), and you want its certificates back Tick Recover a soft-deleted Key Vault of the same name on Backup configuration. Onboarded tenants keep working. Tick it only when the deleted vault's name matches the name your deployment generates exactly; otherwise the deployment fails.
    Is in a different region Change the prefix, or deploy into its region and tick recovery.

    Or wait for the vault's scheduled purge date, after which the name is free.

Deployment fails because the storage redundancy is not available#

Symptom. The deployment fails with RedundancyConfigurationNotAvailableInRegion, or the Backup configuration page shows: "<redundancy> is not available in <region> — this deployment will fail with RedundancyConfigurationNotAvailableInRegion. Choose Locally redundant (LRS), which is available everywhere, or pick a different region on the Basics tab."

Cause. Zone-redundant and geo-zone-redundant storage are not offered in every region.

Resolution. Set Storage redundancy to an option the region supports (Locally redundant (LRS) is available everywhere), or choose another region on Basics. Then deploy again.

Storage redundancy cannot be changed in place after deployment. When you update Revert, select the redundancy the deployment already uses.

Deployment fails on App Service plan quota or capacity#

Symptom. The deployment fails on the App Service plan with a quota or capacity error, or the Web application page shows: "Your subscription has no <plan> quota in <region> — this deployment will fail."

Cause. Your subscription has no quota for that plan size in the region, or the Basic tier (B1 to B3) is temporarily unavailable in a high-demand region such as East US or East US 2.

Resolution.

  1. Choose a different App Service plan (for example P0v3) or a nearby region, or request App Service quota through an Azure support request (it is not on the self-service Quotas page).
  2. Deploy again. If you reuse a deleted attempt's resource group name and prefix, see the Key Vault entry.

When you update Revert later, select the plan size the deployment already uses.

Setup does not accept the setup key#

Symptom. After you select Begin setup, the wizard briefly shows Finishing setup and then returns to Setup key with: "That setup key was not accepted. Check that you copied all of it. If Revert was redeployed since you read it, read it again: a redeployment replaces the key."

Cause. The key was mistyped or copied in part, or it is no longer valid: it is single use, completing setup removes it, and redeploying while setup is pending replaces it.

Resolution.

  1. If setup has already completed, the key no longer works and is not needed: reload the page and sign in. If the page shows Setup is still finishing, see Setup is still finishing after you sign in.

  2. Otherwise, read the current key with the Azure CLI, using the deployment outputs keyVaultName and setupKeySecretName:

    az keyvault secret show --vault-name <keyVaultName> -n <setupKeySecretName> --query value -o tsv
    

    The identity that ran the deployment can read this secret; anyone else needs Key Vault Secrets User on it. Use the CLI: the portal's Secrets list needs read access to the whole vault.

  3. Paste the whole key into Setup key and select Begin setup.

Setup is still finishing after you sign in#

Symptom. After you sign in, setup seems to stop: Finishing setup runs for about ten minutes, and then the page shows Setup is still finishing.

Cause. Usually setup has completed, or is completing, and the service is still restarting with the new sign-in settings. On a busy App Service plan the restart can take several minutes. Occasionally setup did not finish, and while the service is restarting the page cannot tell the two apart.

Resolution.

  1. Wait a few minutes. The page keeps checking and reloads itself when sign-in is ready, or you can select Reload. Reloading the page does not restart setup.
  2. If Setup is still finishing has been shown for more than ten minutes, select Setup did not finish? Enter the setup key, paste the same setup key and select Begin setup. This is safe: the key works only if setup did not finish, so it cannot change a deployment where setup has completed. If setup did not finish, sign in with the new code as before. If it had finished, the page goes back to waiting and reloads into sign-in when the service is ready.
  3. If the page is still waiting ten minutes after that, restart the deployment's Function App in the Azure portal, wait a few minutes, then select Reload.

Setup says the device code expired#

Symptom. The wizard shows "The device code expired. Start over."

Cause. The sign-in code is valid only for a limited time, set by Microsoft Entra ID.

Resolution. Select Begin setup again with the same setup key, open the address shown, enter the new code without delay, and sign in as a workforce-tenant administrator who can create app registrations.

Onboarding is refused with tenant_limit_reached#

Symptom. Onboarding stops at its final step with an HTTP 403 and the message "Your <Plan> plan protects up to N tenants. Offboard a tenant, or onboard another by doing this: Change your plan on the Revert SaaS subscription in the Azure portal, and this deployment picks it up within six hours." Before you start, the Tenants page can show "Plan limit reached — see above."

Cause. The deployment already protects as many External ID tenants as its plan includes (Starter 3, Standard 5, Enterprise unlimited). Onboarded tenants keep working normally. Onboarding again a tenant that is on the dashboard is never refused; an offboarded tenant, or one whose onboarding never finished, counts as new.

Resolution.

  1. Deal with anything the Onboarding rolled back card lists as still in place; see Onboarding was rolled back.
  2. Offboard a tenant you no longer need to protect, or contact Vambris (sales@vambris.com) to move to a larger plan; changing plan in the Azure portal, as the message suggests, is not available yet. A new limit reaches the deployment within six hours.
  3. Onboard the tenant again.

Redeploying the solution template does not change the limit, and deploying under a different Resource name prefix creates a second, separate deployment while this one stays at its limit. See Plans and tenant limits.

Onboarding is refused with quota_unverifiable#

Symptom. Onboarding stops at its final step with an HTTP 503 and the message "The number of onboarded tenants could not be verified against your plan's limit of N, so this tenant was not onboarded and nothing was saved. Try again shortly." A related message before onboarding starts means nothing has been created yet: "Couldn't confirm plan capacity — check your connection and try again."

Cause. The dashboard could not count the protected tenants, so it refused rather than risk exceeding the plan limit. This is usually temporary.

Resolution. Deal with anything the Onboarding rolled back card lists as still in place, wait a few minutes, reload the dashboard and onboard the tenant again.

Onboarding is refused with license_unverified#

Symptom. Onboarding is refused with an HTTP 403 and a message that starts "This deployment has never reached the licensing service" or "There has been no contact with the licensing service for N days", followed by ", so onboarding new tenants is paused. Your existing tenants are still being backed up, and restore, compare and export are unaffected." The dashboard can also show the banner "Onboarding is paused — no contact with licensing for N days."

Cause. The deployment has had no verified contact with the Vambris licensing service for 30 days or more, or never. After 60 days, scheduled backups stop too. Onboarding again a tenant that is on the dashboard is not blocked.

Resolution.

  1. If the message says "This is not a network problem", or the banner reads "An administrator needs to approve Revert's licensing app.", an administrator of the workforce tenant selects Approve the licensing application. See Licensing and activation.
  2. Otherwise, allow outbound HTTPS from the Function App to activate.vambris.com. See Network requirements.
  3. Onboarding resumes when the deployment next reaches the licensing service; it checks in every six hours. Nothing needs to be redeployed or onboarded again.

Onboarding finds an existing app#

Symptom. Onboarding pauses with the card "Existing app found — check its credentials" and the buttons Cancel onboarding and I recognize these credentials — continue.

Cause. An application named Revert-Backup-ReadOnly or Revert-Restore-ReadWrite (or a name used by earlier versions) already exists in the External ID tenant, for example after an interrupted onboarding. Adopting it adds backup or restore access to whatever it already holds, and all its credentials keep working.

Resolution.

  1. Check every credential the card lists.
  2. If you recognize all of them, tick each one and select I recognize these credentials — continue. Onboarding removes the existing owners of the app and of its enterprise application before it grants anything.
  3. If you don't, select Cancel onboarding and investigate the application in the Microsoft Entra admin center before onboarding again.

If onboarding refuses to adopt the app, delete or rename it in Microsoft Entra, then onboard again.

Onboarding was rolled back#

Symptom. The Onboarding rolled back card shows why onboarding stopped, then what is still in place. The reason is one of "The plan limit stopped this onboarding at its final step.", "Licensing stopped this onboarding at its final step.", "The plan limit couldn't be checked, so this onboarding stopped at its final step.", "A backup or another onboarding was running, so this onboarding stopped at its final step." or "The server refused this onboarding at its final step."

Cause. The final step was refused after onboarding had created app registrations, granted permissions and issued certificates. Onboarding reversed what it could, and the card lists what remains:

  • app registrations it created but could not delete;
  • apps that already existed, kept for review (the permissions this run granted them are revoked);
  • Key Vault certificates, which always remain: inert if their app was deleted, flagged as an active credential if it was kept.

Resolution.

  1. Read the list. An empty list means nothing was left behind.
  2. Remove each certificate flagged as an active credential from its application promptly: in the Microsoft Entra admin center for the External ID tenant, open App registrations, select the app, then Certificates & secrets.
  3. Delete any listed app registration that onboarding could not delete, unless you want to keep it.
  4. Resolve the reason on the card (if a backup or another onboarding was running, wait for it to finish), then onboard the tenant again. Onboarding adopts what the earlier attempt left.

If onboarding was interrupted before its final step, for example by closing the browser, nothing is rolled back; onboarding again adopts what was created.

Raising deletion protection is refused#

Symptom. Under Configuration > Protection, a raise of Deletion protection is refused with a reason, either when you confirm it or after the Raise deletion protection job has checked it. In the second case the page shows Not raised — nothing was changed. and the reason.

Cause and resolution. A refused raise changes nothing and does not count towards the limit of one raise a day. Act on the reason:

Reason starts with What to do
"Deletion protection was already raised in the last 24 hours" Wait. The job's version of the message gives the next opportunity.
"Retention must be at least N days (or 0, keep forever)" Set the default retention (Configuration > Protection > Retention) and each tenant retention the message names (Tenants > Settings) to at least the new window, or to 0. Then raise again.
"The storage lifecycle policy still deletes recovery points sooner than N days" Save the retention again under Configuration > Protection > Retention, then raise again.
"Another deletion-protection raise is already running." Wait for that job to finish.
A message that something "could not be read" and to "try again shortly" Wait a few minutes and raise again. Right after an update, see the next entry.
"Azure refused the raise: this locked policy has already been extended as many times as Azure allows" This is permanent. The window stays at its current length.

See Protect recovery points from deletion.

Raising deletion protection fails right after an update#

Symptom. Shortly after you update Revert, a raise is refused because something "could not be read", with an AuthorizationFailed error in the reason. Or the Raise deletion protection job fails and the dashboard shows: "The raise job ended failed — the window shown above is what Azure enforces now."

Cause. An update can change the Azure roles Revert's identities hold, and a new role assignment can take a few minutes to take effect.

Resolution. Wait a few minutes, then raise deletion protection again. The window shown under Configuration > Protection is what Azure currently enforces.

An update stops because dashboard settings cannot be read back#

Symptom. The update deployment fails with a message that starts "The dashboard settings could not be read back from" and continues "Refusing to continue: deploying the template's values instead would silently revert retention, schedule, alerting and verification to their pre-dashboard settings."

Cause. An update reads the settings you chose in the dashboard so it can keep them, and stops if it cannot. The usual cause is private networking: the data storage account then refuses the public network access the update needs.

Resolution.

  1. If the deployment uses private networking, enable public network access on the storage account the message names for the duration of the update. See Upgrading a private-networked deployment.
  2. Run the update again with the same resource group and Resource name prefix.
  3. Disable public network access again when the update has finished.

Other messages at this point name their own fix: restore a settings file that "exists but is not a JSON settings object" from a previous version or soft-deleted copy, or, when asked to save the schedule again, select Save schedule under Configuration > Protection > Backup schedule. Then run the update again.

An update fails because retention is shorter than the immutable window#

Symptom. The update fails with a message that starts "Retention is set to N day(s) but" and says that Azure would refuse the lifecycle deletions, so the configured retention would never take effect.

Cause. Azure refuses to delete a recovery point inside its immutable window, so a shorter retention could never take effect. The update checks this before it changes anything.

Resolution.

  1. In the dashboard, go to Configuration > Protection > Retention and set the retention to at least the immutable window, or to 0 to keep recovery points forever. (The message refers to an earlier name for this setting, "Features > Retention".)
  2. Run the update again.

Deleting the resource group fails with AccountProtectedFromDeletion#

Symptom. Deleting the deployment's resource group removes everything except the data storage account, and fails with an Azure error like this:

<storage account> is protected from deletion. The container(s) backups have object level immutability enabled.

Cause. Azure does not delete a storage account while its immutability-enabled backups container holds any blob or blob version, even one whose immutable window has ended. This is the protection for your recovery points working; nothing is damaged.

Resolution.

  1. Wait until the newest recovery point is older than the immutable window.
  2. Assign yourself Storage Blob Data Owner on the data storage account. Storage Blob Data Contributor is refused on previous blob versions with OperationNotAllowedOnAutomaticSnapshot ("The specified operation is not allowed on version").
  3. Delete every blob and blob version in the backups container, repeating until nothing is left; see Empty the backups container. A version still inside its window is refused with an HTTP 409; come back when its window has ended.
  4. Delete the resource group again.

Custom role definitions left behind after a teardown#

Symptom. After you delete the resource group, the subscription still lists custom role definitions named after Revert.

Cause. The deployment creates seven custom role definitions in the subscription, assignable only at its resource group. Each name ends with the same suffix:

  • Revert Retention Manager (<suffix>)
  • Revert Upgrade Cleanup (<suffix>)
  • Revert Immutability Extender (<suffix>)
  • Revert Immutability Locker (<suffix>)
  • Revert Job Starter (<suffix>)
  • Revert Network Switch (<suffix>)
  • Revert Network Builder (<suffix>)

Deleting the resource group normally removes them, but Azure can keep listing deleted definitions for a while. While the resource group exists, they cannot be deleted, because the deployment's identities still hold assignments of them.

Resolution. Delete the resource group first. You need Owner or User Access Administrator on the subscription.

  1. List the definitions several times, a minute or more apart, ideally a day after the deletion. Act only on a definition that appears every time:

    az role definition list --custom-role-only true \
      --query "[?starts_with(roleName,'Revert ')].{roleName:roleName, id:name, scopes:assignableScopes}" -o table
    

    Act only on names with the deleted deployment's suffix. Another Revert deployment in the same subscription has its own eight definitions, and they must stay.

  2. Remove the assignments left over from the deleted resource group; a definition cannot be deleted while one refers to it:

    az role assignment list --all --role "<roleName>" --query "[].id" -o tsv \
      | xargs -r -n1 az role assignment delete --ids
    
  3. Delete the definition:

    az role definition delete --name "<roleName>"
    
  4. Run step 1 again a few times to confirm. Deleting a definition that is already gone also reports success, so the delete alone is not proof.