Skip to content

azurerm_vpn_server_configuration radius property is removed in every run when radius is not used #33203

Description

@SC-Tobias

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.15.9

AzureRM Provider Version

v4.81.0

Affected Resource(s)/Data Source(s)

azurerm_vpn_server_configuration

Affected Location(s)

germanywestcentral

Terraform Configuration Files

resource "azurerm_vpn_server_configuration" "uservpnconfig-prod-001" {
  name                     = "uservpnconfig-prod"
  resource_group_name      = "rg1"
  location                 = "germanywestcentral"
  vpn_protocols            = ["OpenVPN"]
  vpn_authentication_types = ["AAD"]
  azure_active_directory_authentication {
    tenant   = "https://login.microsoftonline.com/${var.tenant_id}"
    audience = var.audience
    issuer   = "https://sts.windows.net/${var.tenant_id}/"
  }
}

Debug Output/Panic Output

# azurerm_vpn_server_configuration.uservpnconfig-prod-001 will be updated in-place
  ~ resource "azurerm_vpn_server_configuration" "uservpnconfig-prod-001" {
        id                       = "id-REDACTED"
        name                     = "uservpnconfig-prod"
        tags                     = {}
        # (4 unchanged attributes hidden)

      - radius {
        }

        # (1 unchanged block hidden)
    }

Expected Behaviour

as no radius server is set via terraform there should no need to remove it after every run

Actual Behaviour

After every terraform apply, Terraform wants to remove the radius configuration block, even though that block is not present in the Terraform code.

Steps to Reproduce

terraform apply
terraform plan or terraform apply again

Important Factoids

No response

References

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions