Closed Falconwmua closed 4 years ago
@Falconwmua Thanks for taking the time to report this issue! Could you check to see if your template file is saved as UTF-8 with BOM? And if so, consider resaving without the BOM (F1 -> Change File Encoding)? There was a known issue with that which will be fixed in the next release (see https://github.com/microsoft/vscode-azurearmtools/issues/721).
If you need it saved with the BOM, I believe you can change it back after setting up the parameter file association.
That fixed it. I thought I searched but guess not well enough. Was there a related issue with some of the other tooling (CLI/PowerShell) with regards to the UTF-8 with BOM? An engineer brought this up a while back but we couldn't reproduce it and he had upgraded and changed all the files that had the problem.
I just deployed one with no problems.
Does this occur consistently? Yes Repro steps:
Action: azurerm-vscode-tools.selectParameterFile Error type: Error Error Message: "c:\repos\allspice\aspice-armt-partner-env-platformfabric\PlatformFabric.json" does not appear to be an Azure Resource Manager deployment template file.
Version: 0.10.0 OS: win32 OS Release: 10.0.18363 Product: Visual Studio Code Product Version: 1.46.0 Language: en
Call Stack
``` Object.