https://pulumi.com logo
#dotnet
Title
# dotnet
r

rhythmic-vegetable-87369

01/21/2020, 3:53 AM
var parameters = string.Empty; using (StreamReader r = new StreamReader("LogicApp.parameters.json")) { parameters = r.ReadToEnd(); } using (StreamReader r = new StreamReader("LogicApp.json")) { armTemplate = r.ReadToEnd(); } new TemplateDeployment("test-dep", new TemplateDeploymentArgs { ParametersBody= parameters, ResourceGroupName = resourceGroup, DeploymentMode = "Incremental", TemplateBody = armTemplate });
a

adventurous-garage-59192

01/21/2020, 4:02 AM
Just a note that you can use
File.ReadAllText
instead of
StreamReader
. It's a bit cleaner.