The Azure App Service should be enabled with 'always on'

Description

Azure App Services has ‘always on’ enabled for web apps.

Rationale

Enabling ‘always on’ will enhance your Azure Apps web apps’ availability.

Remediation

Azure CLI

  1. Get a list of your App Services by running the following in Azure Powershell:

        az webapp list
    	--query '[*].id'
        
  2. Check the config of your web apps with the command:

        az webapp config show
    	--ids "<INSERT_ID>"
    	--query 'alwaysOn'
        
  3. Enable the web app’s ‘always on’ capability with the command:

        az webapp config set
    	--ids "<INSERT_ID>"
    	--always-on true
        
  4. Repeat steps one through three for each server that is not configured correctly.

PREVIEWING: may/unit-testing