Skip to content

Commit bbf0f03

Browse files
authored
Handle and retry StorageAccount specific in-progress operation errors (#4497)
Encountered an error in CI where one of our examples failed to operate on a `StorageAccount` due to an error called `StorageAccountOperationInProgress`, this PR fixes that by adding that error to the error codes we use to decide on a retry
2 parents ac4d12b + f0e32e8 commit bbf0f03

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

provider/pkg/azure/client_azcore.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,11 @@ func shouldRetryConflict(resp *http.Response) bool {
137137
if responseErr.ErrorCode == "ConcurrentFederatedIdentityCredentialsWritesForSingleManagedIdentity" {
138138
return true
139139
}
140+
141+
// handle StorageAccount specific in-progress operation errors
142+
if responseErr.ErrorCode == "StorageAccountOperationInProgress" {
143+
return true
144+
}
140145
}
141146
}
142147
return false

0 commit comments

Comments
 (0)