[英]Azure Python SDK Tagging Resources in Resource group
我正在使用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個
誰能分享我的示例或解釋更新/標記資源所需的參數是什么?
您可以在此線程中查看詳細信息。
同樣,您還可以按照以下步驟檢查create_or_update
方法的源代碼(我在編輯器中使用了visual studio code
):
1.選擇方法,然后按F12按鈕。
2.在方法定義中,可以看到參數說明。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.