Blazor Apps: Draughts Reversi and WalkieTalkie Summary
appdev blazor custom-domain appservice azure
Have just consolidated 3 Blazor Service games on to one Azure App Service Plan with a Custom Domain for each.
There are now 3 online Blazor apps as ‘games’:
- Draughts
- Reversi
- WalkieTalkie
The first 2 are the classic board games with which 2 players can play each other remotely. Alternatively, one player can play against AI for which there are several level of complexity. WalkieTalkie is a half duplex communication app with a FlipPhone UI appearance.
AppService Plan
When originally deployed to Azure as an AppService, each game was assigned a new separate AppService Plan. Given the low band width requirements of these apps, they are normally idle. This was overkill. So it was decided that they would all share the same AppService.
Requirements:
- Custom Domain
- Can host multiple web apps.
Azure App Service plans come with different features and limitations depending on the tier. Here’s a comparison of the F1, B1, D1, and S1 plans:
- F1 (Free Tier):
Limitations: This tier provides limited resources and is suitable for development and testing purposes. It does not support custom TLS/SSL bindings.
Resources: Shared CPU and memory resources. - B1 (Basic Tier):
Features: Includes one core, 1.75 GB RAM, and 10 GB storage.
Limitations: Suitable for small applications with moderate traffic. Supports custom domains and SSL, but not as robust as higher tiers. - D1 (Shared Tier):
Limitations: Similar to the Free tier, it provides shared resources and is not suitable for production workloads. It does not support custom TLS/SSL bindings.
Resources: Shared CPU and memory resources. - S1 (Standard Tier):
Features: Offers more robust resources compared to the Basic tier, including support for auto-scaling and staging environments.
Limitations: Suitable for production workloads with higher traffic demands. Supports custom domains, SSL, and other advanced features
Azure App Service Plan Costs (Australia Southeast)
| Plan | Monthly Cost (AUD) |
|---|---|
| F1 (Free) | $0.00 |
| D1 (Shared) | ~$13 |
| B1 (Basic) | ~$76 |
| S1 (Standard) | ~$102 |
So B1 will be the App Service Plan.
Note that there was a simple option to to change the App Service Plan to another existing one. One of the plans was already B1 so that was selected for the the other 2 apps. The other 2 plans were deleted as part of this process.
To move an App Service to an existing App Service Plan in Azure Portal:
- Open App Services.
- Select your web app (for example, reversi).
- In the left menu, select Settings → Scale up (App Service plan).
- Click Change App Service Plan.
- Select the existing App Service Plan you want to move to.
- Click OK / Apply.
Requirements
The destination App Service Plan must be:
- In the same Azure region (e.g., Australia Southeast).
- In the same Resource Group if using the portal move option.
- Running the same operating system (Windows → Windows, Linux → Linux)
Custom Domain
When deployed to Azure the created App Service url comes with some CRUD so it was decided to add a Custom Domain to each app. Given that I already own sportronics.com.au through a third party provider, it was not too difficult to configure each app as a subdomain of that:
For each a CNAME and TXT certificate was required to be created at the third party provider. Azure provided the meta-info required for that.
At each App Service click upon Domains then Add Custom Domain. Instead of App Service Domain select All other Domain Services and enter the new subdomain.
It will then show the required meta-information required to be entered at the third party provider which you can then copy across. You will then validate at both ends but before things are complete you need to provide a binding (click on that and complete).
This last bit will take a while so be patient. In the meantime track the subdomain’s propagation throughout the world at, say, https://dnschecker.org/
😃😃😃
A completed Reversi Game
| Topic | Subtopic | |
| < Prev: | WalkieTalkie | A Simulated Flip Phone |
| This Category Links | ||
| Category: | Application Dev Index: | Application Dev |