Parameter file validation fails with: Unable to load schema from <snip> unexpected end of file.
See original GitHub issueHi,
I automatically generated my first parameter file today via this extension (having previously been passing data via a custom PSObject) but VSCode lists the following problem:
Unable to load schema from 'https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#': unexpected end of file. (768) [2, 16]
The JSON referenced is valid, which is odd.
I’m also suffering problems in the main template file with apiVersions when they’re roughly 2021 onwards (“for full schema validation, consider updating the value to…”) but I think you’re tracking this already.
Any ideas? Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
JSON Schema can be loaded only on the first usage #140227
Parameter file validation fails with: Unable to load schema from <snip> unexpected end of file. microsoft/vscode-azurearmtools#1441.
Read more >Visual Studio Code on Azure ARM template reports unable to ...
Unable to load schema from 'http://schema.management.azure.com/schemas/2014-04-01-preview/deploymentTemplate.json': unexpected end of file. When ...
Read more >Using Schema Editor to view and validate tool map files - Help
Use the Schema Editor to view and validate tool map files. Launch the Schema Editor on the CMF_ver document Use the File >...
Read more >MEGS_Log error messages
Error 2, The end of a data file was unexpectedly encountered. Error 3, The configuration file does not appear to be a configuration...
Read more >FMNBA005 - IBM
FMNBA100 Unexpected end of parameter specification. Explanation. The parameters for the File Manager invocation are terminated by a comma. User response.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Turns out it’s a vscode in version 1.63.0: https://github.com/microsoft/vscode/issues/140227. It’s been fixed in the Insiders version 1.64, if you don’t mind installing vscode insiders (https://code.visualstudio.com/insiders/)
Sorry, misread your statement about schemas. We’ll be releasing a new version with updated schemas very soon (for template files, we snapshot the schemas to avoid various issues). That should hopefully help with that.
For parameter files, we rely mostly on vscode’s built-in JSON support, so we don’t have any control over the parameters file schema loading. I’m not seeing the problem myself. It could be a CDN issue that will eventually resolve itself, we’ve seen those before. I would try F1 and “JSON: Clear schema cache”.
If that doesn’t work, I’m guessing there’s not much that actually not working, right? Our functionality (param snippets etc) doesn’t depend on the schema loading.