【发布时间】:2020-09-30 13:00:55
【问题描述】:
https://docs.microsoft.com/en-us/rest/api/resources/resourcegroups/createorupdate
此调用的身份验证是 Azure Active Directory OAuth2 Flow,但是我无法使用模拟,它将作为函数运行。
要调用图形 api,我会设置这样的东西。
var nvc = new List<KeyValuePair<string, string>>();
nvc.Add(new KeyValuePair<string, string>("client_id", Config.ServicePrincipalId));
nvc.Add(new KeyValuePair<string, string>("scope", "https://graph.microsoft.com/.default"));
nvc.Add(new KeyValuePair<string, string>("client_secret", Config.ServicePrincipalKey));
nvc.Add(new KeyValuePair<string, string>("grant_type", "client_credentials"));
知道我的这个调用的作用域是什么,或者我可以在哪里找到在 Azure 中创建一堆不同事物的作用域的一个很好的参考?
TIA
【问题讨论】:
标签: c# azure azure-resource-group azure-rest-api