简体   繁体   English

是否可以通过 Microsoft Graph 创建 Azure RBAC 角色

[英]Is it possible to create Azure RBAC role via Microsoft Graph

Is it possible to create Azure RBAC role via Microsoft Graph?是否可以通过 Microsoft Graph 创建 Azure RBAC 角色? When calling https://www.nuget.org/packages/Microsoft.Graph from C#.从 C# 调用https://www.nuget.org/packages/Microsoft.Graph时。

In short, do what PowerShell's New-AzRoleDefinition does.简而言之,做 PowerShell 的 New-AzRoleDefinition 所做的事情。

It is not possible to use Microsoft Graph API to create (or rather work with) Azure RBAC role.无法使用 Microsoft Graph API 来创建(或更确切地说是使用)Azure RBAC 角色。

You would use Graph API to work with Azure AD whereas Azure RBAC roles are specific to Azure Subscription. You would use Graph API to work with Azure AD whereas Azure RBAC roles are specific to Azure Subscription. You will need to use Azure REST API to work with Azure Subscription.您将需要使用Azure REST API来使用 Z3A580F142203677F1FZ5BC308 订阅。 To create an RBAC role, you will need to use Role Definitions - Create Or Update operation.要创建 RBAC 角色,您需要使用Role Definitions - Create Or Update操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM