Files
developer.sailpoint.com/docs/tools/sdk/powershell/retries.md
2024-02-28 10:26:45 -05:00

25 lines
852 B
Markdown

---
id: powershell-sdk-retries
title: Retries with the PowerShell SDK
pagination_label: PowerShell SDK
sidebar_label: Retries
sidebar_position: 6
sidebar_class_name: powershellsdk
keywords: ['powershell', 'sdk', 'retry']
description: Learn how to configure retries using the PowerShell SDK in this guide.
slug: /tools/sdk/powershell/retries
tags: ['SDK']
---
The SDK supports retry logic in the case of an unexpected error. You have these two retry configuration options:
* MaximumRetryCount - How many times to retry the request. Default is 10 retries.
* RetryIntervalSeconds - How many seconds to wait between retries. Default is 5 seconds.
The following code will tell the SDK to retry 2 times after an unexpected error and wait 3 seconds between retries.
```powershell
Set-DefaultConfiguration -MaximumRetryCount 2 -RetryIntervalSeconds 3
```