I get error: could not make instance of 'azure:core/templateDeployment:TemplateDeployment': name 'exampletemplatedeployment' plus 8 random chars is longer than maximum length 24 when running pulumi up, so perhaps the name should be shortened when declaring example_template_deployment?
After fixing that, everything works fine except for the last statement when example_template_deployment.outputs["storageAccountName"] is called. I got a KeyError when trying to get this value. Justin told me there was weird behavior with mapping snake_case to camelCase in Python. So, I then I tried changing example_template_deployment.outputs["storageAccountName"] to example_template_deployment.outputs["storage_account_name"], which seemed to fix it.
In sdk/python/pulumi_azure/core/template_deployment.py, an example is given on how to deploy an ARM template:
I get
error: could not make instance of 'azure:core/templateDeployment:TemplateDeployment': name 'exampletemplatedeployment' plus 8 random chars is longer than maximum length 24
when runningpulumi up
, so perhaps the name should be shortened when declaringexample_template_deployment
?After fixing that, everything works fine except for the last statement when
example_template_deployment.outputs["storageAccountName"]
is called. I got a KeyError when trying to get this value. Justin told me there was weird behavior with mapping snake_case to camelCase in Python. So, I then I tried changingexample_template_deployment.outputs["storageAccountName"]
toexample_template_deployment.outputs["storage_account_name"]
, which seemed to fix it.