From 8e3361b329e5033e551d1c46a3015abdbdbf99ab Mon Sep 17 00:00:00 2001 From: Amir Szekely Date: Thu, 18 Jul 2019 18:41:31 -0700 Subject: [PATCH] Hack to get variables working Use with `template.add_variable({"variable_name": "variable_value"})` --- ionosphere/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ionosphere/base.py b/ionosphere/base.py index a932289db..d0240e88e 100644 --- a/ionosphere/base.py +++ b/ionosphere/base.py @@ -127,6 +127,8 @@ def to_dict(self): t['parameters'] = self.parameters if self.contentVersion: t['contentVersion'] = self.contentVersion + if self.variables: + t['variables'] = {k: v for d in self.variables for k, v in d.items()} t['resources'] = self.resources t['$schema'] = "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json"