In the code you provided, the public_network_access_enabled
variable is set to var.public_network_access_enabled
. You can change the value of this variable to false
to disable public network access for the Key Vault.
'Public_network_access_enabled' argument is not supported with terraform azurerm version 3.21.0
sachin gupta
376
Reputation points
I wanted to disabled the public network access in azure keyvault, for that I am running terraform script and added the argument public_network_access_enabled argument in main.tf file. Also, I have upgraded the azurerm version = 3.21.0 as per terraform documentation. when I ran the terraform, I am getting below error.
Error - public_network_access_enabled argument is not expected.
Please find below screenshot of the configurations.
Main.tf=
variable.tf =
version.tf =
Please share your suggestion.
Thank you!
1 answer
Sort by: Most helpful
-
SanthiSwaroopNaikBukke-4908 595 Reputation points
2023-01-20T20:16:06.0666667+00:00