private ArmTemplate CreateParameterTemplate()
        {
            var template = new ArmTemplate();

            template.AddParameter(ApimServiceNameProperyName, new ArmTemplateParameter()
            {
                Value = _apimServiceName
            });

            return(template);
        }
        private ArmTemplate CreateDeploymentTemplate(IEnumerable <ArmTemplateResource> resources)
        {
            var template = new ArmTemplate();

            template.AddParameter(ApimServiceNameProperyName, new ArmTemplateParameter
            {
                Metadata = new ArmTemplateParameterMetadata
                {
                    Description = "Name of the API Management"
                },
                Type = "string"
            });

            template.AddResources(resources);

            return(template);
        }
        private Task SaveTemplateAsync(string fileName, ArmTemplate template)
        {
            var path = Path.Combine(_outputLocation, fileName);

            return(_fileWriter.WriteJsonAsync(template, path));
        }