MockableOperationalInsightsSubscriptionResource.GetAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get the status of a long running azure asynchronous operation.
- Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/locations/{location}/operationStatuses/{asyncOperationId}.
- Operation Id. : OperationStatusesOperationGroup_Get.
- Default Api Version. : 2025-07-01.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsOperationStatus>> GetAsync(Azure.Core.AzureLocation location, string asyncOperationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsOperationStatus>>
override this.GetAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.OperationalInsights.Models.OperationalInsightsOperationStatus>>
Public Overridable Function GetAsync (location As AzureLocation, asyncOperationId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of OperationalInsightsOperationStatus))
Parameters
- location
- AzureLocation
The name of the Azure region.
- asyncOperationId
- String
The operation Id.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
asyncOperationId is null.
asyncOperationId is an empty string, and was expected to be non-empty.