-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
62 lines (51 loc) · 2.01 KB
/
outputs.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# data "azurerm_subscription" "this" {}
# # output "function_app_portal_uri" {
# # description = "The Azure Portal Management URL to view and manage your new Azure Function"
# # value = "https://portal.azure.com/#blade/WebsitesExtension/FunctionsIFrameBlade/id/%2Fsubscriptions%2F${data.azurerm_subscription.this.id}%2FresourceGroups%2F${local.resource_group.name}%2Fproviders%2FMicrosoft.Web%2Fsites%2F${azurerm_app_service_plan.this.name}"
output "azurerm_application_insights" {
value = azurerm_application_insights.this
}
output "azurerm_function_app" {
value = azurerm_function_app.this
}
output "azurerm_storage_account" {
value = azurerm_storage_account.this
}
output "azurerm_traffic_manager_profile" {
value = azurerm_traffic_manager_profile.this
}
output "azurerm_key_vault" {
value = azurerm_key_vault.this
}
output "azurerm_traffic_manager_fqdn" {
description = "The address endpoint for the Azure Function Traffic Manager. Use as the most reliable entry point"
value = azurerm_traffic_manager_profile.this.*.fqdn
}
output "azurerm_function_app_default_hostnames" {
description = "The address endpoint for the individual Azure Function endpoints. Use to test on a per location basis."
value = azurerm_function_app.this.*.default_hostname
}
output "azurerm_function_app_outbound_ip_addresses" {
description = "All active outbound IP addresses of the azure functions. Useful for firewall rules."
value = sort(
distinct(
split(",",
join(",",
azurerm_function_app.this.*.outbound_ip_addresses
)
)
)
)
}
output "azurerm_function_app_possible_outbound_ip_addresses" {
description = "All potential outbound IP addresses of the azure functions. Useful for firewall rules."
value = sort(
distinct(
split(",",
join(",",
azurerm_function_app.this.*.possible_outbound_ip_addresses
)
)
)
)
}