Skip to content

Adds option to set max retry attempt - #1584

Merged
Peter Ombwa (peombwa) merged 5 commits into
devfrom
po/MaxRetry
Oct 25, 2022
Merged

Peter Ombwa (peombwa) merged 5 commits into
devfrom
po/MaxRetry

Conversation

@peombwa

Copy link
Copy Markdown
Member

This PR closes #1106 by :

  • Adds Set-MgRequestContext and Get-MgRequestContext commands that can be used to manage the following propoerties in a given session:
    • RetryDelay - the waiting time in seconds before retrying a request with a maximum value of 180 seconds. This defaults to 3 seconds.
    • MaxRetry - the maximum number of retries for a request with a maximum value of 10. This defaults to 3.
    • RetriesTimeLimit - the maximum time in seconds allowed for request retries.
    • ClientTimeout - the HTTP client's timeout in seconds.
  • Adds RequestContext object to GraphSession object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Powershell Microsoft.Graph- How to set MaxRetry

2 participants