-
Notifications
You must be signed in to change notification settings - Fork 3.3k
command: service principal for login #508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
/CC:@JasonRShaver, submit this for demo on this Friday |
|
/CC:@BurtBiel @tjprescott (env) D:\sdk\azure-cli>az account -h
Group
az account
Commands:
clear
create-sp
list
list-location
reset-sp-credentials
set
(env) D:\sdk\azure-cli>az account create-sp -h
Command
az account create-sp
Arguments
--name -n : An unique uri. If missing, the command will generate one.
--secret : The secret used to login. If missing, command will generate one.
--years : Years the secret will be valid. Default: 1.
(env) D:\sdk\azure-cli>az account reset-sp-credentials -h
Command
az account reset-sp-credentials
Arguments
--name -n [Required]: The uri representing the name of the service principal.
--secret : The secret used to login. If missing, command will generate one.
--years : Years the secret will be valid. Default: 1. |
| ACTIVE_DIRECTORY_AUTHORITY = 'active_directory_authority' | ||
| ACTIVE_DIRECTORY_GRAPH_RESOURCE_ID = 'active_directory_graph_resource_id' | ||
|
|
||
| _environments = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
black forest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right on this, we are missing usgovenment as well. Since we have not exposed the --env flag in login, this can wait till we add that flag.
|
@BurtBiel, @tjprescott, since this is needed by demo, i am doing optimistic merge, please still feel free to leave comments later. |
|
azure-cli/src/command_modules/azure-cli-role/azure/cli/command_modules/role/custom.py Line 15 in 97ecf82
Using https://learn.microsoft.com/en-us/rest/api/authorization/role-definitions/list |


Notes:
accountgroup for the reason that they are for login, not dealing with general service principal. In future, the placement might change.role assignment createcommand contains the minimum, and it is not the final version. We will get to it when we are done with the network set commands