I am trying to run a custom script via terraform after the provisioning of a windows VM in Azure and receiving below error
Error: "protected_settings" contains an invalid JSON: invalid character '}' after object key
Not sure what Iam missing
protected_settings = <<SETTINGS
{
"powershell -command \"[System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String('${base64encode(data.template_file.AdoAgentSetup.rendered)}') | Out-File -filepath AgentSetup.ps1\" && powershell -ExecutionPolicy Unrestricted -File AgentSetup.ps1"
}
SETTINGS