For security reasons, when the App Gateway receives an HTTP request, redirect to HTTPS. This challenge is broken into parts: manual configuration and setup via the ARM template.
It is recommended to configure the redirect with the Azure Portal first and then with Azure CLI to better understand the flow. To debug blocked traffic, reference the Log Analytics Workspace query notes.
- Configuration via the Azure Portal by Adding a listener and redirection rule
- Configuration via the Azure CLI by Adding a listener and redirection rule
# Test HTTP redirect for a 301
curl -i http://${ASB_DOMAIN}/memory/healthz
If Part 1 is complete, the ARM template values are available in the Azure Portal via
JSON View
of each resource
- In the deployment file,
cluster-stamp.json
- Add a frontend port to the app gateway resource
- Add a listener to the app gateway resource
- Add a redirect configuration to the app gateway resource
- Add a routing rule to the app gateway resource
- In the networking spoke ARM template, add a security rule to the app gateway network security group that allows inbound traffic on port 80
- Deploy the network
- Create AKS
- Test HTTP redirect for a 301
curl -i http://${ASB_DOMAIN}/memory/healthz