-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az ad sp create-for-rbac should support finer grain of credential expiry time #28521
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamGraph(doesn't work with label-triggered comments; use Graph.Microsoft instead) az ad(doesn't work with label-triggered comments; use Graph.Microsoft instead) az adact-identity-squadpotential-pruningquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamGraph(doesn't work with label-triggered comments; use Graph.Microsoft instead) az ad(doesn't work with label-triggered comments; use Graph.Microsoft instead) az adact-identity-squadpotential-pruningquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Related command
az ad sp create-for-rbacIs your feature request related to a problem? Please describe.
Currently, only integer
--yearsis supported which is too rough:The minimum expiry time is 1 year which is against the security best practice of setting expiry time as short as possible.
Caution
If there is a policy in the tenant that forbids expiry time >= 1 year,
az ad sp create-for-rbacwill fail.Describe the solution you'd like
--end-datesimilar to that fromaz ad app credential resetandaz ad app create.--dayslike Azure Portal:Describe alternatives you've considered
Drop
--yearas it encourages imprecise expiry time and it also causes ambiguity in leap years (#28520).