azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az ad command group for role is missing

Open avbhaskar opened this issue 5 years ago • 4 comments

command group for managing ad roles is missing from Azure CLI. It would be really useful to have a command group like so:

az ad role: Manage Azure AD roles

commands:

list: List of roles in in Azure Active Directory create: Create a custom role in Azure Active Directory delete: Delete a custom role in Azure Active Directory enable: Enable in Azure Active Directory show: show details of role in Azure Active Directory

subgroups:

assignment:

create: create new assignment for a role in in Azure Active Directory - object-id, user, group, principal list: list assignments for a role in in Azure Active Directory delete: Delete a assignment from role in in Azure Active Directory show: Show details of a role assignment in Azure Active Directory

Equivalent Powershell module AzurAD has commands like so: Add-AzureADDirectoryRoleMember Enable-AzureADDirectoryRole Get-AzureADDirectoryRole Get-AzureADDirectoryRoleMember Get-AzureADDirectoryRoleTemplate Remove-AzureADDirectoryRoleMember


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

avbhaskar avatar Jun 04 '20 19:06 avbhaskar

@arrownj please take a look

yonzhan avatar Jun 04 '20 23:06 yonzhan

hi @arrownj pls evaluate the work and let's sync.

yungezz avatar Jun 05 '20 01:06 yungezz

The equivalent of Azure CLI az ad command group is AzAD from Azure PowerShell. AzureAD on the other hand is a module developed by Azure Active Directory.

az ad commands are designed and implemented to assist integrating AAD with Azure, instead of as a fully functioning client to interact with AAD. You may use az rest with Microsoft Graph API to manipulate those properties. See https://github.com/Azure/azure-cli/issues/12946 for examples.

jiasli avatar Mar 25 '22 06:03 jiasli

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

ghost avatar Aug 10 '22 20:08 ghost