diff --git a/internal/services/healthcare/healthcare_fhir_resource.go b/internal/services/healthcare/healthcare_fhir_resource.go index dd0d6e96d3f0..31313f14cbdc 100644 --- a/internal/services/healthcare/healthcare_fhir_resource.go +++ b/internal/services/healthcare/healthcare_fhir_resource.go @@ -183,6 +183,11 @@ func resourceHealthcareApisFhirService() *pluginsdk.Resource { ValidateFunc: validation.StringIsNotEmpty, }, + "public_network_access_enabled": { + Type: pluginsdk.TypeBool, + Computed: true, + }, + "tags": commonschema.Tags(), }, } @@ -314,6 +319,9 @@ func resourceHealthcareApisFhirServiceRead(d *pluginsdk.ResourceData, meta inter if props.ExportConfiguration != nil && props.ExportConfiguration.StorageAccountName != nil { d.Set("configuration_export_storage_account_name", props.ExportConfiguration.StorageAccountName) } + if props.PublicNetworkAccess != "" { + d.Set("public_network_access_enabled", props.PublicNetworkAccess == healthcareapis.PublicNetworkAccessEnabled) + } if err := tags.FlattenAndSet(d, resp.Tags); err != nil { return err diff --git a/website/docs/r/healthcare_fhir_service.html.markdown b/website/docs/r/healthcare_fhir_service.html.markdown index e60a41e5e1f2..a16b87629790 100644 --- a/website/docs/r/healthcare_fhir_service.html.markdown +++ b/website/docs/r/healthcare_fhir_service.html.markdown @@ -85,8 +85,6 @@ The following arguments are supported: * `configuration_export_storage_account_name` - (Optional) Specifies the name of the storage account which the operation configuration information is exported to. -* `public_network_access_enabled` - (Optional) Whether to enabled public networks when data plane traffic coming from public networks while private endpoint is enabled. - --- An `identity` block supports the following: @@ -114,6 +112,8 @@ The following attributes are exported: * `id` - The ID of the Healthcare FHIR Service. +* `public_network_access_enabled` - Whether public networks access is enabled. + ## Timeouts The `timeouts` block allows you to specify [timeouts](https://www.terraform.io/language/resources/syntax#operation-timeouts) for certain actions: