Azure Web App For Containers configured with Azure AD B2C, Azure Front Door, Azure DNS Zone (Custom Domain with DigiCert Certificate)
terraform init
terrafom plan
terrafrom apply
The following Azure Service will be created:
- AppService - Linux
- Azure DNS Zone
- Azure Front Door (With WAF and Policy)
- Azure CDN
- Azure Storage Account
2. Configure Azure DNS Zone, edit Name Server of GoDaddy to utilize the Azure Name servers. Add "CAA" for DigiCert (use for Azure FrontDoor Custom Domain Certificate Management)
Verify and ensure the FrontDoor certificate Management Type is set to "FrontDoor Manage"
https://docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-create-tenant
https://docs.microsoft.com/en-us/azure/active-directory-b2c/tutorial-create-user-flows
3.3 Create MVC Controller with Views, Using Entity Framework. Make sure application can run in IIS Express and Docker.
docker login
User Name : Your Docker Hub User Name
Password : Your Docker Hub Password
docker ps
docker images
docker tag phproject01 gbbuenaflor/webapp4container01-app:v1
docker push gbbuenaflor/webapp4container01-app:v1
Authentication flows and application scenario:
Scenario : Web app that sign in users
Linux : ASP.net Core
OAuth 2.0 flow and grant : Authorization code
Audience : Work or school accounts, personal accounts, and Azure AD B2C
Note: App Service Plan - Linux is describe in this post
- User will Login or Register new account to the system
- Once validated by ADB2C
- If user passed authentication the system will redirect traffic to the application.
- If user fail authentication the system will redirect traffic to denied ui page.
- View the ASP.Net Core Web application running under Azure FrontDoor configured with a Custom Domain and valid DigiCert certificate.
Microsoft Azure Container Ecosystem - "nugget series" > Click this Link
Note: My Favorite -> Microsoft :D