我正在使用azure python Runbook标记特定资源组中的所有资源。我无法找到适当的帮助/文档来更新该资源组中的所有资源。
resource_group_params = {'location': 'westeurope'}
# Modify the Resource group
resource_group_params.update(tags={'hello': 'world', 'new': 'tag'})
print_item(client.resources.create_or_update(GROUP_NAME, resource_id, resource_group_params))
它抱怨resources.create_or_update至少需要8个参数,而仅提供了4个
任何人都可以分享我的示例或解释更新/标记资源所需的参数是什么 预先感谢。
答案 0 :(得分:0)
您可以查看此thread以获得详细信息。
同样,您还可以按照以下步骤检查create_or_update
方法的源代码(我将visual studio code
用于编辑器):
1。选择方法,然后按F12按钮。
2。在方法定义中,您可以看到有关参数的说明。