没有为 Azure ARM 模板部署定义错误“resourceGroupName”
File "./__main__.py", line 23, in <module>
resourceGroupName: resource_group.name,
NameError: name 'resourceGroupName' is not defined
代码的相关部分在这里,不确定在哪里寻找 TemplateDeployment 文档,在 API 参考中看不到它们
armDeployment = azure.core.TemplateDeployment("test-dep", {
resourceGroupName: resource_group.name,
templateBody: JSON.stringify(content),
parameters: {
"storageAccountType": "Standard_GRS",
},
deploymentMode: "Incremental",
})