Skip to content
PagesDeploy and set up Revert
On this page

Deploy and set up Revert

Deploy Revert into your Azure subscription, then complete first-run setup in the browser to turn on sign-in to the dashboard. Setup needs no scripts and nothing installed on your computer. When you finish, onboard your first tenant.

Note

Revert is not yet available through a public Azure Marketplace listing. To get access to the deployment, contact sales@vambris.com.

Before you start#

You need:

Requirement Details
An Azure subscription The account that deploys creates resources, role assignments and custom role definitions in the target resource group, for example as Owner, or as Contributor and User Access Administrator.
A new, empty resource group Removing Revert means deleting this resource group, so keep nothing else in it. You can create it during deployment. Azure also creates a second resource group beside it, for the jobs' platform infrastructure; removing this one normally removes that one too.
An administrator in the workforce tenant First-run setup creates the dashboard's sign-in application. Use an account in the Microsoft Entra tenant that contains the Azure subscription, with permission to create app registrations and grant consent, for example Cloud Application Administrator or higher.
An email address for alerts Failed jobs and expiring certificates are sent here. A shared mailbox or distribution list works best.

Onboarding each External ID tenant later needs an administrator of that tenant. See Onboard a tenant.

Deploy Revert#

  1. In the Azure portal, open the Revert deployment and select Create.

  2. On Basics, choose the Subscription, a new Resource group, the Region, and a Resource name prefix. The prefix is 3-15 characters: lowercase letters, digits and hyphens, starting with a letter and ending with a letter or digit. Remember it: updates must use the same prefix.

  3. On Backup configuration, review the settings:

    Setting Default Notes
    Recovery point objective Daily How often each tenant is backed up. Every 1, 2, 4, 6, 8 or 12 hours, or daily. You can change it later.
    Anchor hour (UTC) 2 The hour backups run. You can change it, and choose a time zone, later.
    Snapshot retention (days) 90 0 keeps recovery points forever; otherwise 30-3650 days.
    Storage redundancy Zone-redundant (ZRS) Or Geo-zone-redundant (GZRS) or Locally redundant (LRS). The form warns if the choice is unavailable in the region.
    Existing Log Analytics workspace (optional) Blank Blank creates a workspace in the resource group. To use your own, enter its full resource ID.
    Also log storage read operations Off Adds read events to the storage logs.
    Alert email Required Receives alerts.
    Daily drift verification (compare newest snapshot against the live tenant) On Compares each tenant with its newest recovery point every day.
    Deployment retry suffix Blank Leave blank unless a deployment failed with "is a trademarked or reserved word". See Troubleshooting.
    Recover a soft-deleted Key Vault of the same name Off Select only if the form reports a deleted vault with this name in the same region.
  4. On Web application, choose the App Service plan. A new deployment defaults to B2 (recommended). B1 is also offered at about half the cost, but the dashboard can be slow or unresponsive on it, especially during first-run setup. Leave the Sign-in (optional now) fields blank: first-run setup creates the sign-in application. Under Network, leave Virtual network at Create a virtual network for Revert (recommended) unless policy requires Revert's jobs to run on subnets of a network you already have; if so, select Use subnets of an existing virtual network and name the three subnets it describes. This choice is fixed once you deploy; see Choose a network.

  5. Select Review + create, then Create, and wait for the deployment to finish.

If the deployment fails, see Troubleshooting.

Get the setup key#

First-run setup is protected by a one-time setup key, stored as a secret in the deployment's Key Vault. It is not shown in the deployment outputs, because outputs are stored as plain text in the deployment history.

  1. In the deployment's Outputs, note webAppHostname, keyVaultName and setupKeySecretName.

  2. Read the key with the Azure CLI, signed in as the account that ran the deployment:

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

The account that ran the deployment can read this one secret. Anyone else needs the Key Vault Secrets User role on the secret. Browsing to it under Key Vault > Secrets in the portal requires read access to the whole vault, which the deployment does not grant, so use the CLI.

Important

Treat the setup key as a credential: it is the only thing that protects setup. It works once: completing setup removes it, so it cannot be used again after setup completes. If you redeploy before setup is complete, the deployment issues a new key and the old one stops working. Read the key again after any redeployment.

Complete first-run setup#

  1. Open https://<webAppHostname>. Until setup is complete, the site shows only Set up Revert.
  2. Paste the key into Setup key and select Begin setup.
  3. The page shows a code. Open the sign-in link shown, enter the code, and sign in as a workforce-tenant administrator who can create app registrations. Approve the consent prompt.
  4. The page reports that it is creating the sign-in application and granting you the Admin role, then shows Finishing setup while the service restarts with sign-in enabled. This usually takes a few minutes, and the page reloads itself.
  5. On a busy App Service plan the restart can take longer. After about ten minutes the page shows Setup is still finishing and keeps checking in the background. Wait a few more minutes: the page reloads itself when sign-in is ready, or you can select Reload. If it still shows Setup is still finishing after another ten minutes, select Setup did not finish? Enter the setup key and begin setup again with the same key. This is safe: the key works only if setup did not finish. See If setup does not complete.

Setup does the following, acting as the administrator who signed in:

  • Creates the app registration Revert-WebUI (<web app name>) in your workforce tenant, with the app roles Viewer, Operator and Admin. Only users and groups assigned a role can sign in.
  • Assigns you the Admin role.
  • Creates a service principal for the Vambris licensing application and registers the deployment with the licensing service. See Licensing and activation.
  • Turns on sign-in for the dashboard and removes the setup key, so setup cannot be run again.

Note

Sign in with an account from the workforce tenant that contains the Azure subscription. The dashboard accepts sign-ins only from the tenant of the administrator who completes setup.

Verify setup#

After the page reloads, sign in. With no tenants yet, the dashboard opens Tenants and shows Setup is complete — protect your first tenant below.

If setup does not complete#

Problem What to do
Setup seems to stop after you sign in, or the page shows Setup is still finishing Usually setup has completed, or is completing, and the service is still restarting with the new sign-in settings. Wait a few minutes: the page reloads itself when sign-in is ready, or you can select Reload.
Setup is still finishing has been shown for more than ten minutes Occasionally setup did not finish, and while the service is restarting the page cannot tell. 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. 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.
The page shows Setup needs one more step Setup got as far as changing the service's settings, and may already have removed the setup key, but could not finish or confirm them. The message on the page says what went wrong. Redeploy Revert into the same resource group as described in How to update: the redeployment restores the settings. Then reload the page. If it offers sign-in, sign in: the redeployment kept the sign-in that setup created. If it asks for the setup key, get the setup key again, because the redeployment replaced it, and begin setup again. The old key cannot finish setup.
"That setup key was not accepted." The key was mistyped, or a redeployment replaced it. Get the setup key again and paste all of it.
The device code expired. Start over. Select Begin setup again and complete the sign-in sooner.
The setup key is rejected after setup was completed once Setup has already run, and the key no longer works. If you select Begin setup, the page shows Finishing setup and reloads into sign-in when the service is ready. Sign in instead.
You cannot read the setup key Ask someone who can assign roles on the Key Vault to grant you Key Vault Secrets User on the setup-key-… secret.

Next steps#

  1. Onboard a tenant to take its first recovery point.
  2. Assign roles to the people who will use the dashboard.
  3. Review the backup schedule and alert settings.

Your plan sets how many tenants you can protect; see Plans and tenant limits. Do not redeploy the solution template to change plan: an update keeps the same plan, and a deployment with a different resource name prefix creates a second, separate Revert deployment.