[BUG] VirtualMachineResource UpdateAsync with WaitUntil.Completed is not waiting on long running operation to complete #49172
Labels
Compute - VMSS
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
Library name and version
Azure.ResourceManager.Compute 1.6.0.0
Describe the bug
Calling UpdateAsync with WaitUntil.Completed is not waiting on long running operation to complete. We see that the operation returns right away
Expected behavior
method call should only return after the vmss LRO has finished.
Actual behavior
method return right away as soon as the operation is accepted but doesn't wait for the LOR to finish
Reproduction Steps
call UpdateAsync with WaitUntil.Completed. We've seen it in scale operations.
you can see our implementation here: https://msazure.visualstudio.com/One/_git/winfab-RP?path=/src/sfmc/SfmcBackendService/Common/AzureClient/SfmcArmClient.cs&version=GBdevelop&_a=contents
ArmOperation lro = await virtualMachineScaleSet.UpdateAsync(WaitUntil.Completed, vmssUpdate, cancellationToken);
return lro.Value;
The text was updated successfully, but these errors were encountered: