hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.51k stars 4.6k forks source link

azurerm_purview_account options for disabling network ingestion only #26378

Open sai-lalith opened 2 months ago

sai-lalith commented 2 months ago

Is there an existing issue for this?

Community Note

Description

At present, azurerm for Purview only offers functionality to entirely disable network access. However, it would be beneficial to have more detailed control in this area. Additionally, the scope could be broadened to include configuration targeting for Purview Ingestion Endpoints.

image

New or Affected Resource(s)/Data Source(s)

azurerm_purview_account

Potential Terraform Configuration

No response

References

No response

VinodSRinCloud commented 2 months ago

I had to workaround this using 'azapi_update_resource' in terraform.

If you pass these values in the body - it would pick up 'public network access' as 'Disabled for ingestion only'

Code would look something like below.

`resource "azapi_update_resource" "example_purview" { type = "Microsoft.Purview/accounts@2021-12-01" resource_id = " "

body = jsonencode({ properties = { managedResourcesPublicNetworkAccess = "Disabled" publicNetworkAccess = "Enabled" } }) }`