[FEATURE REQ] Ability to track database import progress: return operation id from import action #31607
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
feature-request
This issue requires a new behavior in the product in order be resolved.
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
SQL
Library name
Azure.ResourceManager.Sql
Please describe the feature.
When running a database import operation
SqlDatabaseResource.Import()
withAzure.WaitUntil.Started
we have no details about the started operation. The json returned by the response does not contains data about the operation id:{"operation":"Import","startTime":"2022-10-05T15:25:48.9506752Z"}
.We can't obtain the operation id, since the
Id
property throw aNotImplementedException
.When calling
UpdateStatus
method, the json returned contains the operation id:{"name":"f2d498c4-2f32-44e2-bca9-3f41bf29f59f","status":"InProgress","startTime":"2022-10-05T15:25:48Z"}
.I would like to use
SqlDatabaseResource.GetDatabaseOperations()
to track the import progress, but the only way is to manually parse the json after the UpdateStatus() to obtain the operation id.Could the
ArmOperation<ImportExportOperationResult>
expose the operation id when callingImport
withAzure.WaitUntil.Started
?The text was updated successfully, but these errors were encountered: