function processARMTemplateFile()

in scripts/generateTemplates.js [217:229]


function processARMTemplateFile(templatePath, rootDirectory, fileName, armTemplateData, languages) {
    try {
        var path = getPackageOutputPath(templatePath, rootDirectory);
        path = path.replace(".json", "");
        path = path.concat("-", fileName, ".json");
        languages.forEach(lang => {
            const translatedResultPath = path.replace(LangOutputSpecifier, LanguagesMap[lang]);
            writeTranslatedFile(armTemplateData, translatedResultPath);
        });
    } catch (e) {
        logError("Failed to process ARM template file: " + templatePath + "Error: " + e, true);
    }
}