-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fails to create a parameter file for arm template when encoded with UTF-8 BOM #721
Comments
@kernst123 Thanks for entering! Was the file saved before doing step 2? If not, it's probably a duplicate of #666. |
@neilpeterson This looks vaguely familiar but I can't find any dups. Have you seen this behavior? Thx. |
@StephenWeatherford nope this appears to be unique as compared to similar open items. I was however able to reproduce the error / call stack by trying to create a parameters file from an invalid ARM template (removed the opening bracket). @kernst123 can you share the ARM template that you using when attempting to create the parameter file? Thanks |
Here is an example of the arm template it failed for. |
Hmmm I thought I posted a zip file. I don't see it above. I will try again. |
Thanks @kernst123, I noticed that both tenant and object id did have values so removed the file from the issue. I am looking at it now, but unfortunately cannot reproduce the issue. I am able to create the parameter file without issue using the provided tempalte. |
I can repro with the attached, thanks (not sure why Neil can't). We're having trouble with the UTF-8 BOM (the one on disk, not the text buffer). |
Ahhh, works fine on my Mac but does repo in Windows. |
Weird, I repro'd it with my Mac. |
As soon as I changed the encoding from utf8 bom to utf8 it started working. |
Fix released with 0.11.0 |
Does this occur consistently? Yes
Repro steps:
I receive the error below
Action: azurerm-vscode-tools.selectParameterFile
Error type: Error
Error Message: "e:\temp\armtemp\mytemplate.json" does not appear to be an Azure Resource Manager deployment template file.
Version: 0.10.0
OS: win32
OS Release: 10.0.17763
Product: Visual Studio Code
Product Version: 1.45.1
Language: en
Call Stack
The text was updated successfully, but these errors were encountered: