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.
In the Azure portal, navigate to Resource groups.
Select the Nerdio Manager resource group.
Select +Create.
In the Marketplace, search for and select Storage Account.
In Storage account, select Create.
Enter the following information:
Storage account name: Type a meaningful name.
Configure all other settings as shown above.
For all other tabs, accept the default values.
Once you have entered all the information, select Review + create.
Review the information and select Create.
Create a new container
Once the storage account has been created, you must create the required containers.
Open the new storage account.
In the Data storage blade, select Containers.
Select + Container.
Type locks in the Name and then select Create.
Generate and save the SAS Token and URL
Right-click on the new container locks and select Generate SAS.
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)
Select Generate SAS token and URL.
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
Navigate to App Services.
Open the app service.
In the Settings blade, select Environmental variables.
Select + Add.
Enter the following information:
Name: Set to Deployment:LocksContainerSasUrl.
Value: Paste the SAS URL that you previously saved.
In the pop-up, select Apply.
On the Environmental variables page, select Apply.
Select Confirm to restart the app service.
Option 2: Use the Key Vault
Navigate to Key vaults.
Open the key vault (for example, nmw-app-kv-#############).
In the Objects blade, select Secrets.
Select +Generate/Import.
Enter the following information:
Name: Set Deployment--LocksContainerSasUrl.
Secret Value: Paste the SAS URL that you previously saved.
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:
Restart the App Service.
Navigate to Storage accounts.
Select the Nerdio Manager storage account that contains the locks container you previously created.
In the Data storage blade, select Containers.
Select the locks container.
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
Navigate to Resource groups.
Select the Nerdio Manager resource group.
Select +Create.
In the Marketplace, search for and select App Service Plan.
Select Create.
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.
Once you have entered all the information, select Review + create.
Review the information and select Create.
Apply the new App Service Plan
Open the existing Nerdio Manager app service.
In the App Service plan blade, select Change App Service plan.
In the App Service plan drop-down, select the newly created plan.
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.
Comments (0 comments)