问题描述
https://docs.microsoft.com/en-us/rest/api/resources/resourcegroups/createorupdate
此呼叫的身份验证是Azure Active Directory OAuth2 Flow,但是我无法使用模拟,它将作为功能运行。
def build(self):
# ...
# get the root widget
self.root = root = Builder.load_file('root.kv')
# get toolbar
toolbar=root.ids.toolbar
# get the icons on the right
action_items = toolbar.ids.right_actions.children
# loop over the icons
for item in action_items:
# change the color
item.text_color=(1,1) # red
您知道我的电话会议范围是什么,或者可以找到在Azure中创建一系列不同事物的范围的很好参考?
TIA
解决方法
首先,您无法使用Graph API管理Azure资源,因此您不需要它。而且您绝对正确地引用了Azure Resource Manager Rest API,只需使用客户端凭据OAuth流(而不是使用用户模拟)来获取访问令牌,然后可以使用该令牌来调用API。像这样:
或者您可以使用SDK,这是C#示例: