-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpe.tf
37 lines (32 loc) · 1.31 KB
/
pe.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
resource "azurerm_private_endpoint" "app1_pe" {
name = "app1-pe"
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
subnet_id = azurerm_subnet.subnet3.id
private_service_connection {
name = "app1-privateserviceconnection"
private_connection_resource_id = azurerm_windows_function_app.app1.id
subresource_names = ["sites"]
is_manual_connection = false
}
private_dns_zone_group {
name = "example-dns-zone-group"
private_dns_zone_ids = [azurerm_private_dns_zone.private_dns.id]
}
}
resource "azurerm_private_endpoint" "app2_pe" {
name = "app2-pe"
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
subnet_id = azurerm_subnet.subnet3.id
private_service_connection {
name = "app2-privateserviceconnection"
private_connection_resource_id = azurerm_windows_function_app.app2.id
subresource_names = ["sites"]
is_manual_connection = false
}
private_dns_zone_group {
name = "example-dns-zone-group"
private_dns_zone_ids = [azurerm_private_dns_zone.private_dns.id]
}
}