-
Notifications
You must be signed in to change notification settings - Fork 23
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
Find-EntraBetaCommand POC #808
base: main
Are you sure you want to change the base?
Conversation
Learn Build status updates of commit ec58a93: ✅ Validation status: passed
For more details, please refer to the build report. For any questions, please:
|
@emmanuel-karanja please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
Find-EntraBetaCommand/Find-EntraCommand extracts the details of a given Cmdlet or Graph API Uri that includes the Command name, Module, Uri, Method, OutputType, and Permissions.
Implementation details
Proposed Solution:
We maintain a dictionary that will contain key-value pairs, where the Key is a command name, and the value is an array of Graph API endpoints invoked by that command. We store that array as an array of strings.
In the implementation of the Find-EntraBetaCommand/ Find-EntraCommand function, we’ll use the parse the -Command parameter to get the name of the command.
We’ll look up that command in the dictionary. If not found, we’ll proceed and invoke the Find-
MgGraphCommand using the bound parameters and return the results.
If found, we’ll extract the array of endpoints and for each of the endpoints, we’ll invoke the Find-
MgGraphCommand using the -Uri parameter.
Map the Command and Module value from the array IGraphCommand result returned from -Mg| MgGraph to -EntraBeta or Entra
We’ll concatenate the results and return the results.