-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Error when creating / destroying Managed Application - "Error: extracting parameters: unexpected type []interface {}" #23527
Comments
Thanks for raising this issue. Seems I can't repro this issue with below tf config that is similar with yours. Could you try below tf config to see if the issue still exists? Thanks. tf config:
|
thanks for the reply @neil-yechenwei. The above works ok but looking at the resulting state file it doesn't appear that the properties node of the managed app have any list or objects within the values so it's not really a valid comparison. The parameters for the above app look fairly flat:
The same issue is present in the newest 3.77 provider too for my use case above. |
Suggest to use "parameter_values" since "parameters" is deprecated. |
Thanks @neil-yechenwei. Just to confirm though - the original example I provided is using parameter_values. The snippet above was from the state file. Looking at the comments above though there is a change in provider 3.79.0 to account for the nested data types so I'll wait for that release and retest. Thanks again. |
FYI - release 3.79.0 has resolved this. Many thanks! |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.6.1
AzureRM Provider Version
3.75.0
Affected Resource(s)/Data Source(s)
azurerm_managed_application
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The attached module should create a managed application based on the supplied parameters. There should be no errors and terraform apply / destroy / plan should all complete with the relevant actions.
Actual Behaviour
Error: extracting parameters: unexpected type []interface {}
│
│ with azurerm_managed_application.tf-demo-ma-cpnva,
│ on main.tf line 20, in resource "azurerm_managed_application" "tf-demo-ma-cpnva":
│ 20: resource "azurerm_managed_application" "tf-demo-ma-cpnva" {
Steps to Reproduce
Using the above module, the vWAN, vWAN hub and Azure Managed application will all deploy successfully according to the Azure portal, but the TF actions will all error (apply, plan and destroy) when trying to process the parameters associated with the managed application.
Important Factoids
No response
References
This issue appears to have a similar set of symptoms - #21541
The text was updated successfully, but these errors were encountered: