You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've seen a couple issues on these and they were closed. I just wanted to raise this one again. When you define a azurerm_function_app resource that has been deployed without the SystemAssigned attribute assigned AND THEN update the function to use SystemAssigned. Any resources that rely on the identity of that resource will fail in planning stages. This is for (hashicorp/azurerm) 2.51.0.
azurerm_function_app.your_function_name is empty list of object.
The given key does not identify an element in this collection value.
Reference code for the resource targeting the function identity.
Taking a look through here unfortunately this appears to be a bug in Terraform Core where the Plan isn't accounting for the new changes being applied, since this needs be fixed there I'd suggest opening an issue on that repository so that someone from that team can take a look, but since this is an issue with Terraform Core rather than an issue with the Azure Provider I'm going close this issue for the moment.
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks!
ghost
locked as resolved and limited conversation to collaborators
Apr 18, 2021
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
upstream/terraformThis issue is blocked on an upstream issue within Terraform (Terraform Core/CLI, The Plugin SDK etc)
I've seen a couple issues on these and they were closed. I just wanted to raise this one again. When you define a
azurerm_function_app
resource that has been deployed without theSystemAssigned
attribute assigned AND THEN update the function to useSystemAssigned
. Any resources that rely on the identity of that resource will fail in planning stages. This is for(hashicorp/azurerm) 2.51.0
.Reference code for the resource targeting the function identity.
Steps To Reproduce
type = "SystemAssigned"
azurerm_function_app.function.identity[0].principal_id
for the object_id of the policy.identity is empty list of object.
The text was updated successfully, but these errors were encountered: