Share via

ARM Template Warnings

DavidPendleton-7654 26 Reputation points
May 9, 2023, 8:45 PM

I have generated an ARM template from a Data Factory. Immediately after opening the .json in Visual Studio Code, I'm presented with hundreds of warnings about the structure and syntax of the generated file, for example:

User's image

I do have the ARM Tools extension installed.

I have two questions, why is the json full of "errors" immediately after generation, and where can I find the syntax for correctly specifying these tags?

Thanks all.

Edited to add: my schema is:

    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,381 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    2 deleted comments

    Comments have been turned off. Learn more

  2. PRADEEPCHEEKATLA 90,571 Reputation points
    May 10, 2023, 11:18 AM

    @DavidPendleton-7654 - Thanks for the question and using MS Q&A platform.

    In Azure Data Factory, you can export a template or download supported files in a pipeline activity. Both options allow you to create a reusable template or file that you can use to create new pipelines or activities.

    Exporting a template allows you to create a JSON file that contains the definition of your pipeline or activity. This file can be used to create new pipelines or activities in the same or different Data Factory instances.

    Downloading supported files in a pipeline activity allows you to download files that are generated by the activity. For example, if you have a pipeline activity that generates a CSV file, you can download the file to a storage account or a local machine. This option is useful when you need to use the output of the activity in another process or application.

    As per the repro, we tried exporting the pipeline in both ways (download file, and export template) in our local environment.

    User's image

    Download support files option will give you end-to-end information about that pipeline by separating each file used in that pipeline with complete data. of the dataset, linked service, pipeline, etc.

    Export template won't give end-to-end information, it will give us only the schema of that pipeline.

    User's image

    After comparing the export template (gives error when you open via VS Code) and Supported file (works as excepted when you open via VS Code). I would suggest you to use the download support files option.

    Export Template (gives error when you open via VS Code):

    User's image

    Download Supported file (works as excepted when you open via VS Code)

    User's image

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.