Yvand/AzureRM-Templates

Error: "settings" contains an invalid JSON: invalid character 'g' in string escape code

Closed this issue · 4 comments

Attempting to deploy this environment with Terraform, but I get the above error. Also the following description, and cannot locate where the problem is...

on SharePoint-ADFS.tf line 232, in resource "azurerm_virtual_machine_extension" "VM-DC-DSC":
232: resource "azurerm_virtual_machine_extension" "VM-DC-DSC" {

Yvand commented

I didn't play with the Terraform template for a long time, so I just upgraded it to v0.12 in https://github.com/Yvand/AzureRM-Templates/tree/dev/Terraform/SharePoint-ADFS.
But for some reason, it hangs at creating network cards, I need to investigate this.
I'll update this thread when I have news

Yvand commented

I also had this error, it's because variable vmSP was also set in the .tfvars file, if you remove it from the .tfvars file then it works.
Apparently this is due to this: https://www.terraform.io/upgrade-guides/0-12.html#map-variables-no-longer-merge-when-overridden

Yvand commented

About your original issue, the value of variable _artifactsLocation was incorrect, so the path to DSC files was invalid, which probably caused the issue