in etc/travis/DeploymentTester.py [0:0]
def validate(self):
print('\nValidating template...')
validation = self.resource_client.deployments.validate(self.config.resource_group,
self.config.deployment_name,
self.config.deployment_properties)
if validation.error is not None:
print("*** VALIDATION FAILED ({}) ***".format(validation.error))
print(validation.error.message)
for detail in validation.error.details:
print("- {}:\n{}".format(detail.code, detail.message))
sys.exit(1)
print("(valid)")