0

Does anyone know if its possible to add a build step in VS2017 which would run the deploy PS script? Essentially, I'm thinking of saving time by validating the ARM templates in the build step, using the $validateonly switch which is available on the ps1. however I can't see the option to add a build step to an ARM template project. Is the type of project the issue here?

bytejunkie
  • 893
  • 11
  • 27
  • this might help https://stackoverflow.com/questions/2295454/solution-wide-pre-build-event – 4c74356b41 Aug 01 '17 at 08:17
  • It won't actually save time unless your builds consistently have errors. In the end, you'll be validating twice. Once on build, once on deploy. The only way it would save time is if your builds error out more often than they succeed. (Having said that, I'm interested if there's a way to do it too, as I think semantically it makes sense having the template verified during build rather than deployment) – Pete - MSFT Aug 03 '17 at 21:07

0 Answers0