Skip to content

Commit df571d4

Browse files
authored
Merge e749f70 into 4a57059
2 parents 4a57059 + e749f70 commit df571d4

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

3_networking/front-door/README.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Terraform Template - Azure Front Door
2+
3+
Costa Rica
4+
5+
[![GitHub](https://img.shields.io/badge/--181717?logo=github&logoColor=ffffff)](https://github.com/)
6+
[brown9804](https://github.com/brown9804)
7+
8+
Last updated: 2025-06-11
9+
10+
----------
11+
12+
> This template contains Terraform configurations to create and manage an Azure Front Door Standard/Premium profile, including frontend endpoint, backend pool, health probe, and routing rule.
13+
14+
> [!NOTE]
15+
> This Front Door configuration uses best practices for global HTTP/HTTPS load balancing and health monitoring.
16+
17+
<p align="center">
18+
<img width="550" alt="image" src="">
19+
</p>
20+
21+
## File Descriptions
22+
23+
- **main.tf**: Contains the main configuration for creating the Azure Front Door profile and its associated resources.
24+
- **variables.tf**: Defines the input variables used in the Terraform configuration.
25+
- **terraform.tfvars**: Provides default values for the variables defined in `variables.tf`.
26+
- **outputs.tf**: Defines the outputs such as Front Door profile ID and frontend endpoint hostname.
27+
28+
## Variables
29+
30+
: Below is a list of variables used in this template, their expected values, types, and examples:
31+
32+
| Variable Name | Description | Type | Example Value |
33+
|---------------------- |--------------------------------------------------|--------|-----------------------------|
34+
| `subscription_id` | The Azure subscription ID | string | `"00000000-0000-0000-0000-000000000000"` |
35+
| `resource_group_name` | The name of the resource group | string | `"my-frontdoor-rg"` |
36+
| `location` | The Azure region to deploy resources | string | `"eastus"` |
37+
| `front_door_name` | The name of the Azure Front Door profile | string | `"myfrontdoorprofile"` |
38+
| `backend_host` | The backend host (FQDN or IP) for Front Door | string | `"mybackend.example.com"` |
39+
40+
## Usage
41+
42+
1. Clone the repository and navigate to the front-door directory.
43+
2. Update the `terraform.tfvars` file with your values.
44+
3. Initialize and apply the Terraform configuration:
45+
46+
```bash
47+
terraform init
48+
terraform plan
49+
terraform apply
50+
```
51+
52+
## Outputs
53+
54+
| Output Name | Description |
55+
|------------------------------|---------------------------------------------|
56+
| `front_door_id` | The ID of the Front Door profile |
57+
| `front_door_frontend_endpoint` | The frontend endpoint hostname of Front Door |
58+
59+
<div align="center">
60+
<h3 style="color: #4CAF50;">Total Visitors</h3>
61+
<img src="https://profile-counter.glitch.me/brown9804/count.svg" alt="Visitor Count" style="border: 2px solid #4CAF50; border-radius: 5px; padding: 5px;"/>
62+
</div>

0 commit comments

Comments
 (0)