Skip to content

Commit ce44693

Browse files
authored
{Role} az role assignment create: Refine help message for --name (#24926)
1 parent 8b2d7ab commit ce44693

File tree

1 file changed

+1
-2
lines changed
  • src/azure-cli/azure/cli/command_modules/role

1 file changed

+1
-2
lines changed

src/azure-cli/azure/cli/command_modules/role/_params.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ def load_arguments(self, _):
301301
c.argument('resource_group_name', options_list=['--resource-group', '-g'], help='use it only if the role or assignment was added at the level of a resource group')
302302

303303
with self.argument_context('role assignment') as c:
304-
c.argument('role_assignment_name', options_list=['--name', '-n'])
305304
c.argument('role', help='role name or id', completer=get_role_definition_name_completion_list)
306305
c.argument('show_all', options_list=['--all'], action='store_true', help='show all assignments under the current subscription')
307306
c.argument('include_inherited', action='store_true', help='include assignments applied on parent scopes')
@@ -317,7 +316,7 @@ def load_arguments(self, _):
317316
c.argument('condition', is_preview=True, min_api='2020-04-01-preview', help='Condition under which the user can be granted permission.')
318317
c.argument('condition_version', is_preview=True, min_api='2020-04-01-preview', help='Version of the condition syntax. If --condition is specified without --condition-version, default to 2.0.')
319318
c.argument('assignment_name', name_arg_type,
320-
help='Name of the role assignment. If omitted, a new GUID is generetd.')
319+
help='A GUID for the role assignment. It must be unique and different for each role assignment. If omitted, a new GUID is generetd.')
321320

322321
time_help = ('The {} of the query in the format of %Y-%m-%dT%H:%M:%SZ, e.g. 2000-12-31T12:59:59Z. Defaults to {}')
323322
with self.argument_context('role assignment list-changelogs') as c:

0 commit comments

Comments
 (0)