[recoveryservices] No way to wait for completion of async ProtectedItem operations #23869
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Mgmt
This issue is related to a management-plane library.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Recovery Services Backup
Service Attention
Workflow: This issue is responsible by Azure service team.
Bug Report
This report is about github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/recoveryservices/armrecoveryservicesbackup/v4, version 4.1.0, using
go version go1.23.4 darwin/arm64
.TL;DR: the operations of ProtectedItemsClient are async but it seems to be impossible to poll their status.
The documentation for all three methods of ProtectedItemsClient ¶ (Get, CreateOrUpdate, Delete) states
No such method exists, but (*ProtectedItemOperationResultsClient) Get seems to be the right one. The naming mismatch is a usability issue.
More importantly, however, is that
ProtectedItemOperationResultsClient.Get
requires anoperationId
parameter. But the methods of ProtectedItemsClient don't return one, making it impossible to use ProtectedItemOperationResultsClient.Get.A look at the source shows that the operationId is in the location header, but the client does not return it.
How are we supposed to poll the result of ProtectedItemsClient operations? I guess a repeated
Get
in a loop with backoff would work?The text was updated successfully, but these errors were encountered: