Configure the Application for Zone Resilient Mode

Configure the Application for Zone Resilient Mode

This topic outlines the steps required to configure your application in zone resilient mode.

Prerequisites

Ensure that all prerequisites are completed before proceeding to the next steps.

Create the Nerdio Manager storage account

As best practice, you should create a new storage account in the same resource group as Nerdio Manager is deployed. If you are unable to create the storage account in the same resource group, ensure that the target resource group has the same permission set applied as the default Nerdio Manager resource group.

  1. In the Azure portal, navigate to Resource groups.

  2. Select the Nerdio Manager resource group.

  3. Select +Create.

  4. In the Marketplace, search for and select Storage Account.

  5. In Storage account, select Create.

  6. Enter the following information:

    • Storage account name: Type a meaningful name.

    • Configure all other settings as shown above.

  7. For all other tabs, accept the default values.

  8. Once you have entered all the information, select Review + create.

  9. Review the information and select Create.

Create a new container

Once the storage account has been created, you must create the required containers.

  1. Open the new storage account.

  2. In the Data storage blade, select Containers.

  3. Select + Container.

  4. Type locks in the Name and then select Create.

Generate and save the SAS Token and URL

  1. Right-click on the new container locks and select Generate SAS.

  2. Enter the following information:

    • Permissions: From the drop-down list, select Read, Write, and Create.

    • Expiry: Select a long expiry. (For example, 2099 or 2999)

  3. Select Generate SAS token and URL.

  4. Copy and save the value from Blob SAS URL.

Add the SAS URL to the App Service Environment Variables or Key Vault

The next step is to add the SAS URL to the App Service Environment Variables or the Key Vault. You can use either of the following options, but for simplicity it is recommended that you use Option 1.

Option 1: Use the App Service Environment Variables

  1. Navigate to App Services.

  2. Open the app service.

  3. In the Settings blade, select Environmental variables.

  4. Select + Add.

  5. Enter the following information:

    • Name: Set to Deployment:LocksContainerSasUrl.

    • Value: Paste the SAS URL that you previously saved.

  6. In the pop-up, select Apply.

  7. On the Environmental variables page, select Apply.

  8. Select Confirm to restart the app service.

Option 2: Use the Key Vault

  1. Navigate to Key vaults.

  2. Open the key vault (for example, nmw-app-kv-#############).

  3. In the Objects blade, select Secrets.

  4. Select +Generate/Import.

  5. Enter the following information:

    • Name: Set Deployment--LocksContainerSasUrl.

    • Secret Value: Paste the SAS URL that you previously saved.

  6. Once you have entered the desired information, select Create.

Restart the app service and review the container

After completing all the previous steps, do the following:

  1. Restart the App Service.

  2. Navigate to Storage accounts.

  3. Select the Nerdio Manager storage account that contains the locks container you previously created.

  4. In the Data storage blade, select Containers.

  5. Select the locks container.

  6. Verify that the new blob files background.loop and web.startup were created in the container.

Configure Availability Zones

Once the prerequisites have been completed, follow these steps to enable zone resilience.

Create a new App Service Plan

  1. Navigate to Resource groups.

  2. Select the Nerdio Manager resource group.

  3. Select +Create.

  4. In the Marketplace, search for and select App Service Plan.

  5. Select Create.

  6. Enter the following information as shown above. Be sure that:

    • Pricing Tier: From the drop-down list, select a Premium or Isolated plan.

    • Zone redundancy: Select Enabled.

  7. Once you have entered all the information, select Review + create.

  8. Review the information and select Create.

Apply the new App Service Plan

  1. Open the existing Nerdio Manager app service.

  2. In the App Service plan blade, select Change App Service plan.

  3. In the App Service plan drop-down, select the newly created plan.

  4. Select OK.

Your application is now configured in zone resilient mode, ensuring high availability and redundancy across availability zones.

The old service plan can be safely deleted. However, Nerdio recommends leaving this plan running for approximately 1-2 weeks to ensure no issues are experienced. Before deletion, ensure that the app service plan is no longer required for any other services.

Was this article helpful?

0 out of 0 found this helpful
Have more questions? Submit a request

Comments (0 comments)

Article is closed for comments.