-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Azure FHIR Service cannot disable public network access #18549
Comments
Hi @mclacore! Thanks for raising this issue. I'm investigating and working on/exploring the solution. Private endpoints should be configured for the My TF setup: provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "example" {
name = "${var.prefix}-resources"
location = var.location
}
resource "azurerm_virtual_network" "example" {
name = "${var.prefix}-vnet"
address_space = ["10.0.0.0/16"]
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
}
resource "azurerm_subnet" "endpoint" {
name = "endpoint"
resource_group_name = azurerm_resource_group.example.name
virtual_network_name = azurerm_virtual_network.example.name
address_prefixes = ["10.0.2.0/24"]
enforce_private_link_endpoint_network_policies = true
}
resource "azurerm_private_dns_zone" "example" {
name = "privatelink.azurehealthcareapis.com"
resource_group_name = azurerm_resource_group.example.name
}
resource "azurerm_private_dns_zone" "example2" {
name = "privatelink.dicom.azurehealthcareapis.com"
resource_group_name = azurerm_resource_group.example.name
}
resource "azurerm_healthcare_workspace" "example" {
name = "${var.prefix}hcws"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
}
resource "azurerm_healthcare_fhir_service" "example" {
name = "${var.prefix}-fhir"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
workspace_id = azurerm_healthcare_workspace.example.id
kind = "fhir-R4"
authentication {
authority = "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47"
audience = "https://acctestfhir.fhir.azurehealthcareapis.com"
}
}
resource "azurerm_private_endpoint" "example" {
name = "${var.prefix}-pe"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
subnet_id = azurerm_subnet.endpoint.id
private_dns_zone_group {
name = "private-dns-zone-group"
private_dns_zone_ids = [azurerm_private_dns_zone.example.id, azurerm_private_dns_zone.example2.id]
}
private_service_connection {
name = "hcws-connection"
is_manual_connection = false
private_connection_resource_id = azurerm_healthcare_workspace.example.id
subresource_names = ["healthcareworkspace"]
}
} |
@mclacore It seems the property is at this moment in time read-only. When private endpoints are added, public networking is disabled. I've enhanced the documentation and added it as attribute in #18566. I'm still exploring the option to open up the network while connected to private endpoint, but thus far I haven't figured it out. Edit: Based on the docs private endpoints automatically disable public networking:
Another note shows that it may take a while before this is in place:
TL;DR of the investigation: |
This functionality has been released in v3.25.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
Terraform Version
1.2.7
AzureRM Provider Version
3.22.0
Affected Resource(s)/Data Source(s)
azurerm_healthcare_fhir_service
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Public network access would be disabled
Actual Behaviour
I get an error that it's not supported. But I see that it's supported in the documentation
Steps to Reproduce
No response
Important Factoids
No response
References
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/healthcare_fhir_service
The text was updated successfully, but these errors were encountered: