Skip to content
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

The terraform-provider-azurerm_v4.11.0_x5.exe plugin crashed #28103

Closed
1 task done
codermrrob opened this issue Nov 25, 2024 · 2 comments
Closed
1 task done

The terraform-provider-azurerm_v4.11.0_x5.exe plugin crashed #28103

codermrrob opened this issue Nov 25, 2024 · 2 comments

Comments

@codermrrob
Copy link

codermrrob commented Nov 25, 2024

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.9.8

AzureRM Provider Version

4.11.0

Affected Resource(s)/Data Source(s)

azurerm_virtual_network_gateway

Terraform Configuration Files

resource "azurerm_virtual_network_gateway" "gateway1" {
  name                = "${local.business_unit}-${local.app.short_name}-vgw-${local.environment}"
  location            = azurerm_resource_group.integrations.location
  resource_group_name = azurerm_resource_group.integrations.name

  type                = "Vpn"
  vpn_type            = "RouteBased"
  sku                 = "VpnGw1"
  active_active       = false

  ip_configuration {
    name                          = "vgw-ip-cfg-${local.environment}"
    subnet_id                     = azurerm_subnet.vgw_subnet.id
    public_ip_address_id          = azurerm_public_ip.gateway_ip.id
    private_ip_address_allocation = "Dynamic"
  }

  vpn_client_configuration {

    address_space        = ["192.168.100.0/24"]
    vpn_client_protocols = ["OpenVPN"]
    aad_tenant           = "https://login.microsoftonline.com/${local.tenant_id}"
    aad_audience         = local.azure_vpn_gateway_application_id
    aad_issuer           = "https://sts.windows.net/${local.tenant_id}/"
  }
}

Debug Output/Panic Output

Stack trace from the terraform-provider-azurerm_v4.11.0_x5.exe plugin:

panic: interface conversion: interface {} is *schema.Set, not []interface {}

goroutine 141 [running]:
github.com/hashicorp/terraform-provider-azurerm/internal/services/network.expandVirtualNetworkGatewayVpnClientConfig(0xc001daa8f0?, {{0xc001daa8ff, 0x24}, {0xc001daa933, 0x15}, {0xc001daa97c, 0x16}})
        github.com/hashicorp/terraform-provider-azurerm/internal/services/network/virtual_network_gateway_resource.go:1096 +0x1ae5
github.com/hashicorp/terraform-provider-azurerm/internal/services/network.resourceVirtualNetworkGatewayUpdate(0xc002f5a380, {0x791e0e0, 0xc001a15b08})
        github.com/hashicorp/terraform-provider-azurerm/internal/services/network/virtual_network_gateway_resource.go:826 +0x585
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).update(0x91e0988?, {0x91e0988?, 0xc003245440?}, 0xd?, {0x791e0e0?, 0xc001a15b08?})
        github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/helper/schema/resource.go:828 +0x15f
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0015ba000, {0x91e0988, 0xc003245440}, 0xc000dbfa00, 0xc002f5a200, {0x791e0e0, 0xc001a15b08})
        github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/helper/schema/resource.go:947 +0x83a
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc000c07728, {0x91e0988?, 0xc003245380?}, 0xc00320fa90)
        github.com/hashicorp/terraform-plugin-sdk/v2@v2.35.0/helper/schema/grpc_provider.go:1155 +0xd5c
github.com/hashicorp/terraform-plugin-mux/tf5muxserver.(*muxServer).ApplyResourceChange(0xc0002d8d80, {0x91e0988?, 0xc0032450b0?}, 0xc00320fa90)
        github.com/hashicorp/terraform-plugin-mux@v0.17.0/tf5muxserver/mux_server_ApplyResourceChange.go:36 +0x193
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0xc0003952c0, {0x91e0988?, 0xc0032446f0?}, 0xc001f22f50)
        github.com/hashicorp/terraform-plugin-go@v0.25.0/tfprotov5/tf5server/server.go:865 +0x3d0
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x86c7300, 0xc0003952c0}, {0x91e0988, 0xc0032446f0}, 0xc002f0b780, 0x0)
        github.com/hashicorp/terraform-plugin-go@v0.25.0/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:611 +0x1a6
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0001b7400, {0x91e0988, 0xc0030981e0}, {0x920ec80, 0xc001dda000}, 0xc0031a2fc0, 0xc001c59650, 0xe8d4a78, 0x0)
        google.golang.org/grpc@v1.67.1/server.go:1394 +0xe49
google.golang.org/grpc.(*Server).handleStream(0xc0001b7400, {0x920ec80, 0xc001dda000}, 0xc0031a2fc0)
        google.golang.org/grpc@v1.67.1/server.go:1805 +0xe8b
google.golang.org/grpc.(*Server).serveStreams.func2.1()
        google.golang.org/grpc@v1.67.1/server.go:1029 +0x8b
created by google.golang.org/grpc.(*Server).serveStreams.func2 in goroutine 43
        google.golang.org/grpc@v1.67.1/server.go:1040 +0x125

Error: The terraform-provider-azurerm_v4.11.0_x5.exe plugin crashed!

Expected Behaviour

deploy VNG with VPN Client Config

Actual Behaviour

Error: The terraform-provider-azurerm_v4.11.0_x5.exe plugin crashed!

Steps to Reproduce

No response

Important Factoids

azurerm_virtual_network_gateway is deploying fine without the VNG Client block.
same config deploys successfully with azurerm version 3.117.0.
failed in 4.10.0 & 4.11.0

References

No response

@stephybun
Copy link
Member

Duplicate of #28097. Closed by #28099.

Copy link

github-actions bot commented Jan 2, 2025

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.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants