Skip to content

az ad sp create-for-rbac: --years not working #700

Description

looks like a parsing issue.

az ad sp create-for-rbac --years 2
ERROR: Non-integer years and months are ambiguous and not currently supported.
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/site-packages/azure/cli/main.py", line 55, in main
    cmd_result = APPLICATION.execute(args)
  File "/usr/local/lib/python3.5/site-packages/azure/cli/application.py", line 117, in execute
    result = expanded_arg.func(params)
  File "/usr/local/lib/python3.5/site-packages/azure/cli/commands/__init__.py", line 216, in _execute_command
    result = operation(client, **kwargs) if client else operation(**kwargs)
  File "/usr/local/lib/python3.5/site-packages/azure/cli/command_modules/role/custom.py", line 464, in create_service_principal_for_rbac
    end_date = start_date + relativedelta(years=years)
  File "/usr/local/lib/python3.5/site-packages/dateutil/relativedelta.py", line 127, in __init__
    raise ValueError("Non-integer years and months are "
ValueError: Non-integer years and months are ambiguous and not currently supported.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions