diff --git a/internal/services/appservice/function_app_function_resource.go b/internal/services/appservice/function_app_function_resource.go index 448912d93d77..10bffcc22ced 100644 --- a/internal/services/appservice/function_app_function_resource.go +++ b/internal/services/appservice/function_app_function_resource.go @@ -479,7 +479,8 @@ func expandFunctionFiles(input []FunctionFiles) map[string]*string { } result := make(map[string]*string) for _, v := range input { - result[v.Name] = &v.Content + content := v.Content + result[v.Name] = &content } return result