MOR-PROC-014 Version 1 (WIP) Last Review Date: November, 2024
Activating the Demo Environment
To save costs, some resources are scaled way down when Demo is not in use.
Once Infrastructure as Code is implemented, the demo environment will be destroyed and re-created as needed, necessitating a different procedure.
Azure
The following Azure resources are scaled up/down as needed.
App Service Plan
Navigate to resource
Scale Up (Adjust SKU)
- Expand 'Settings'
- Select 'Scale Up (App Service plan)'
- Select Premium v3 P2V3
- Click 'Select'.
- The underlying compute resource will take around a minute to scale. Some disruption to the service may occur.
Scale Out (adjsut instance count)
- Expand 'Settings'
- Select 'Scale Out (App Service plan)'
- Adjust the 'Instance Count' to 2 or hugher depending on expected demand, or adjsut as necessary to ensure adequate perofrmance. Usually 3 at most.
App Services
The environment contains two App Services that need to be running. Follow the below steps for each.
Main App Service: cmms-demo https://portal.azure.com/#@cbcgroup.com.au/resource/subscriptions/e89e4cf9-5904-400a-9af4-531dd7b774bd/resourceGroups/CMMS-DEMO-AUSE/providers/Microsoft.Web/sites/cmms-demo/appServices (opens in a new tab)
API App Service: cmms-demo-api https://portal.azure.com/#@cbcgroup.com.au/resource/subscriptions/e89e4cf9-5904-400a-9af4-531dd7b774bd/resourceGroups/CMMS-DEMO-AUSE/providers/Microsoft.Web/sites/cmms-demo-api/appServices (opens in a new tab)
Turn on
- Navigate to the App Service
- Click 'Overview'
- Check that the Status is 'Running'
- If not, click 'Start'
SQL Database
Resource: cmms-demo (SQL Database) Link: https://portal.azure.com/#@cbcgroup.com.au/resource/subscriptions/e89e4cf9-5904-400a-9af4-531dd7b774bd/resourceGroups/CBC-AUSE/providers/Microsoft.Sql/servers/cbc/databases/cmms-demo/overview (opens in a new tab)
Navigate
- Navigate to resource.
Adjust size
- Expand 'Settings'
- Select 'Compute + storage'
- Scale the DTUs slider to 200
- Click 'Apply'
Deactivating the Demo Environment
Follow the steps above, but setting the App Service plan instance type to a B3, and SQL DTU's to 10.