Azure / terraform-azurerm-caf-enterprise-scale

Azure landing zones Terraform module
https://aka.ms/alz/tf
MIT License
785 stars 510 forks source link

Policy Assignment User assigned Managed Identity was not working as expected #967

Open madhulikasarangam opened 4 weeks ago

madhulikasarangam commented 4 weeks ago

Hi,,

Can someone support on the issue while passing the user assigned manage identity in the policy assignement Issue:

Error: Error in function call -- 04-Jun-2024 23:01:56 |   04-Jun-2024 23:01:56 | on /home/vscode/.terraform.cache/singtel-dev/modules/enterprise_scale/modules/archetypes/locals.policy_assignments.tf line 30, in locals: 04-Jun-2024 23:01:56 | 30:     filepath => jsondecode(templatefile("${local.custom_library_path}/${filepath}", local.template_file_vars)) 04-Jun-2024 23:01:56 | ├──────────────── 04-Jun-2024 23:01:56 | │ local.custom_library_path is "../../../../platform/components/lib" 04-Jun-2024 23:01:56 |   04-Jun-2024 23:01:56 | │ local.template_file_vars is object with 25 attributes 04-Jun-2024 23:01:56 |   04-Jun-2024 23:01:56 | Call to function "jsondecode" failed: invalid character 'f'.
matt-FFFFFF commented 4 weeks ago

23:01:56 | Call to function "jsondecode" failed: invalid character 'f'.

This is the issue - it is not valid JSON

madhulikasarangam commented 4 weeks ago

Hi Matt,

I have passed like below the policy assignment. Can we have a quick call ?

@.***

Regards, Madhulika From: Matt White @.> Sent: Wednesday, 5 June 2024 1:49 am To: Azure/terraform-azurerm-caf-enterprise-scale @.> Cc: Madhulika Sarangam @.>; Author @.> Subject: Re: [Azure/terraform-azurerm-caf-enterprise-scale] Policy Assignment User assigned Managed Identity was not working as expected (Issue #967)

[CAUTION: External email] Do not click links or open attachments unless you recognize the sender and know the content is safe.


23:01:56 | Call to function "jsondecode" failed: invalid character 'f'.

This is the issue - it is not valid JSON

— Reply to this email directly, view it on GitHubhttps://github.com/Azure/terraform-azurerm-caf-enterprise-scale/issues/967#issuecomment-2148087571, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A6BXQH5EHFK5ABVEJ446KGLZFX4Z5AVCNFSM6AAAAABIYXJ4YSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBYGA4DONJXGE. You are receiving this because you authored the thread.Message ID: @.**@.>>