Skip to content

Commit d24acdb

Browse files
Edits
1 parent 1b822be commit d24acdb

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

articles/storage/blobs/storage-retry-policy.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ The following table lists the properties of the [RetryOptions](/dotnet/api/azure
2626
| --- | --- | --- | --- |
2727
| [Delay](/dotnet/api/azure.core.retryoptions.delay) | [TimeSpan](/dotnet/api/system.timespan) | The delay between retry attempts for a fixed approach or the delay on which to base calculations for a backoff-based approach. If the service provides a Retry-After response header, the next retry is delayed by the duration specified by the header value. | 0.8 second |
2828
| [MaxDelay](/dotnet/api/azure.core.retryoptions.maxdelay) | [TimeSpan](/dotnet/api/system.timespan) | The maximum permissible delay between retry attempts when the service doesn't provide a Retry-After response header. If the service provides a Retry-After response header, the next retry is delayed by the duration specified by the header value. | 1 minute |
29-
| [MaxRetries](/dotnet/api/azure.core.retryoptions.maxretries) | int | The maximum number of retry attempts before giving up. | 5 |
29+
| [MaxRetries](/dotnet/api/azure.core.retryoptions.maxretries) | int | The maximum number of retry attempts before giving up. | 5 (see note) |
3030
| [Mode](/dotnet/api/azure.core.retryoptions.mode) | [RetryMode](/dotnet/api/azure.core.retrymode) | The approach to use for calculating retry delays. | Exponential |
3131
| [NetworkTimeout](/dotnet/api/azure.core.retryoptions.networktimeout) | [TimeSpan](/dotnet/api/system.timespan) | The timeout applied to an individual network operation. | 100 seconds |
3232

33+
> [!NOTE]
34+
> `StorageClientOptions` bumps up the default value for `MaxRetries` from 3 to 5. All other properties have the same default values as `RetryOptions`.
35+
3336
In this code example for Blob Storage, we configure the retry options in the `Retry` property of the [BlobClientOptions](/dotnet/api/azure.storage.blobs.blobclientoptions) class. Then, we create a client object for the blob service using the retry options.
3437

3538
:::code language="csharp" source="~/azure-storage-snippets/blobs/howto/dotnet/dotnet-v12/Retry.cs" id="Snippet_RetryOptions":::

articles/storage/common/storage-srp-manage-account-dotnet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to manage storage account resources with the Azure Storag
55
services: storage
66
author: pauljewellmsft
77
ms.author: pauljewell
8-
ms.date: 11/13/2024
8+
ms.date: 11/14/2024
99
ms.service: azure-blob-storage
1010
ms.topic: how-to
1111
ms.devlang: csharp
@@ -148,7 +148,7 @@ You can pass an [ArmClientOptions](/dotnet/api/azure.resourcemanager.armclientop
148148

149149
### Example: Configure retry options
150150

151-
The following code example shows how to configure the `ArmClient` object to change the default retry policy:
151+
The following code example shows how to configure the `ArmClient` object to use a custom retry policy:
152152

153153
:::code language="csharp" source="~/storage-mgmt-devguide-dotnet/StorageAccountManagement/Program.cs" id="Snippet_CreateArmClient":::
154154

0 commit comments

Comments
 (0)