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

Assign policy to product #21717

Closed
1 task done
MilanHtec984 opened this issue May 9, 2023 · 1 comment
Closed
1 task done

Assign policy to product #21717

MilanHtec984 opened this issue May 9, 2023 · 1 comment

Comments

@MilanHtec984
Copy link

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 "+1" or "me too" comments, 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

Terraform Version

1.3.9

AzureRM Provider Version

3.55.0

Affected Resource(s)/Data Source(s)

azurerm_api_management_product_policy

Terraform Configuration Files

terraform {
  required_version = "> 1.0.0"
  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "> 3.0.0"
    }
  }
  backend "azurerm" {
    resource_group_name  = "xxxx"
    storage_account_name = "xxxx"
    container_name       = "xxxx"
    key                  = "xxxx"
  }
}

provider "azurerm" {
  features {}
}

Debug Output/Panic Output

The plugin encountered an error, and failed to respond to the plugin.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more details.

Stack trace from the terraform-provider-azurerm_v3.55.0_x5.exe plugin:

panic: interface conversion: interface {} is nil, not map[string]interface {}

goroutine 1062 [running]:
github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement.expandApiManagementApiContact(...)
        github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/api_management_api_resource.go:777
github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement.resourceApiManagementApiCreateUpdate(0x1d6cbc70, {0x6445c80, 0x1c1f2600})
        github.com/hashicorp/terraform-provider-azurerm/internal/services/apimanagement/api_management_api_resource.go:470 +0x2bf2
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).create(0x1c0213b0, {0x763c580, 0x1d4ab428}, 0x1d6cbc70, {0x6445c80, 0x1c1f2600})
        github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:695 +0x166
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0x1c0213b0, {0x763c580, 0x1d4ab428}, 0x1cf4bce0, 0x1d6cbb80, {0x6445c80, 0x1c1f2600})
        github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:837 +0xa92
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0x1cff2120, {0x763c580, 0x1d4ab3c8}, 0x1d4450e0)
        github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:1021 +0xfa4
github.com/hashicorp/terraform-plugin-go/tfprotov5/tf5server.(*server).ApplyResourceChange(0x1c770050, {0x763c580, 0x1d4ab110}, 0x1c1b9440)
        github.com/hashicorp/[email protected]/tfprotov5/tf5server/server.go:818 +0x583
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler({0x6a44300, 0x1c770050}, {0x763c580, 0x1d4ab110}, 0x1c1b9400, 0x0)
        github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:385 +0x18a
google.golang.org/grpc.(*Server).processUnaryRPC(0x1c0aafc0, {0x7644a34, 0x1c196480}, 0x1c655ae0, 0x1cec18f0, 0xb8b6a00, 0x0)
        google.golang.org/[email protected]/server.go:1340 +0xe22
google.golang.org/grpc.(*Server).handleStream(0x1c0aafc0, {0x7644a34, 0x1c196480}, 0x1c655ae0, 0x0)
        google.golang.org/[email protected]/server.go:1713 +0xa17
google.golang.org/grpc.(*Server).serveStreams.func1.2()
        google.golang.org/[email protected]/server.go:965 +0xb1
created by google.golang.org/grpc.(*Server).serveStreams.func1
        google.golang.org/[email protected]/server.go:963 +0x25f

Error: The terraform-provider-azurerm_v3.55.0_x5.exe plugin crashed!

Expected Behaviour

Policy should be added to the product.

Actual Behaviour

Crashed

Steps to Reproduce

No response

Important Factoids

No response

References

#21714

Copy link

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 May 21, 2024
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

2 participants