-
Notifications
You must be signed in to change notification settings - Fork 38
Add Samples for getting authentication methods using batch operations #1558
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
|
Learn Build status updates of commit ec29528: ❌ Validation status: errorsPlease follow instructions here which may help to resolve issue.
For more details, please refer to the build report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. |
|
@KenitoInc please add a description for this PR to provide sufficient context. |
|
Learn Build status updates of commit 75c89ba: ❌ Validation status: errorsPlease follow instructions here which may help to resolve issue.
For more details, please refer to the build report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. |
f05c006 to
c1ff91d
Compare
|
Learn Build status updates of commit f05c006: ❌ Validation status: errorsPlease follow instructions here which may help to resolve issue.
For more details, please refer to the build report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. |
|
Learn Build status updates of commit c1ff91d: ❌ Validation status: errorsPlease follow instructions here which may help to resolve issue.
For more details, please refer to the build report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. |
Sample scripts on how to apply batch operations in Graph API calls.
Goal : Performance improvements on operations that involve alot of API calls.
In the sample script, below are the operations
$users = Get-EntraUser -Alluserscollections, create batch requests, each with a maximum of 20 sub-requests. Each subrequest invokes/users/$($user.id)/authentication/methodsendpoint to get authentication methods.Invoke-BatchWithRetryfunction passing each batch request.https://graph.microsoft.com/v1.0/$batchendpoint with the batch payload.