-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request : get azurerm_app_service custom domains ip address for azurerm_dns_a_record #14642
Comments
Hi! I've just found a workaround. You can use hashicorp/dns provider to get this IP address by default hostname. For example: resource "azurerm_linux_web_app" "example" {
name = "example"
resource_group_name = azurerm_resource_group.example.name
location = azurerm_service_plan.example.location
service_plan_id = azurerm_service_plan.example.id
site_config {}
}
data "dns_a_record_set" "app_ip_address" {
host = azurerm_linux_web_app.example.default_hostname
}
resource "azurerm_dns_a_record" "dns_a" {
# ...
target_resource_id = data.dns_a_record_set.app_ip_address.addrs[0]
} |
Thank you for your answer. |
+1. We are in the process of transferring an existing service, hosted at an apex domain (like It seems to me that this was already discussed in #5333, which was closed incorrectly. Unless using IP-based SSL, which comes with a significant additional cost, |
@mateusz-opoka I tested it, and I can get it from a single test well. And from my service point of view, I couldn't support azurem_linux_web_app due to version. If azurerm_linux_web_app using cannot process
|
right, that part is # 14385 specified here. |
Hi All, terraform currently is not able to support this property until it got exposed by azure rest api. The issue is tracked via:Azure/azure-rest-api-specs#27377 |
Community Note
Description
Hello, I'm trying to reflect records in the azure_dns_a_record, and I need the inbound ip address of the azure app service.
Can you add or import the code for that part?
In ms, you can get it as inbound ip.
(https://docs.microsoft.com/en-us/azure/app-service/overview-inbound-outbound-ips)
New or Affected Resource(s)
Potential Terraform Configuration
References
https://docs.microsoft.com/en-us/azure/dns/dns-web-sites-custom-domain
https://docs.microsoft.com/en-us/azure/app-service/overview-inbound-outbound-ips
When I looked it up, it looked like the issue. It's okay if you connect or merge it with that content.
The text was updated successfully, but these errors were encountered: