1
votes

I want to evaluate ARM template file which contains actual values passed by the user before it passed to deployment engine.

Is there any way to do that?

I have started creating evaluation code through PEGJS library of nodejs by using which I can evaluate only particular condition or expression present in AZURE ARM functions but can't evaluate actual template which is passed to deployment engine to create any service.

Also, I have checked sdk azure-rest-client but can't find any way please help me to find the solution for the above issue?

1

1 Answers

0
votes

There is no built-in way of doing that, you can use validate deployment api call (its also implemented in different sdk's\cli's) but it doesnt actually guarantee that the template will work, it does some basic sanity checks.

You best bet is to write a script that would deploy the template and a set of tests that would validate the outcode.