command: service principal for login#508
Merged
yugangw-msft merged 1 commit intoAzure:masterfrom Jul 7, 2016
yugangw-msft:rbac
Merged
command: service principal for login#508yugangw-msft merged 1 commit intoAzure:masterfrom yugangw-msft:rbac
yugangw-msft merged 1 commit intoAzure:masterfrom
yugangw-msft:rbac
Conversation
Contributor
Author
|
/CC:@JasonRShaver, submit this for demo on this Friday |
Contributor
Author
|
/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 = { |
Contributor
Author
There was a problem hiding this comment.
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.
Contributor
Author
|
@BurtBiel, @tjprescott, since this is needed by demo, i am doing optimistic merge, please still feel free to leave comments later. |
Member
|
Using https://learn.microsoft.com/en-us/rest/api/authorization/role-definitions/list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


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