Beispiel #1
0
        public void Write(AzureDeploymentTemplate template, string resourceGroupName)
        {
            var path = Path.Combine(_folder, resourceGroupName);

            if (!Directory.Exists(path))
            {
                Directory.CreateDirectory(path);
            }
            File.WriteAllText(Path.Combine(path, "azuredeploy.json"), template.ToString());
            File.WriteAllText(Path.Combine(path, "azuredeploy.parameters.json"), template.Parameters.ToString());
        }