When self-hosting for local development (not for production workload), you have options to reduce the size of your Azure footprint and lower costs. While sizing should be based upon your expected and actual traffic and use, we have compiled a list of tips and areas to consider for review and potential reduction.
- While provisioning service use Cosmos DB serverless options
- For the packages option use 5.x package (for 5.x) version and 6.x packages for 6.x versions
- Delete Redis Services and change the caching to InMemory in web app unity.config
- Reduce the Search Index Replica to one instead of two
- Check Scale out option of Web Apps and change it to one
- Check Scale up option of Web Apps and change it to cost effective SKU
- Delete function App if you are not testing anything locally
- Delete Headless if you are not using 6.x
- Change the network to “Public” to avoid connectivity issue, optionally navigate to “Private Endpoint” and delete all mappings. The following services needs to be public from the network link Storage Account, Redis, Search, Cosmos, and Key Vault