---
title: "GET /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/locations/{location}/operationStatuses/{asyncOperationId}"
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/locations/{location}/operationStatuses/{asyncOperationId}"
tags: ["asyncOperations"]
---

# GET /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/locations/{location}/operationStatuses/{asyncOperationId}

`GET /subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/locations/{location}/operationStatuses/{asyncOperationId}`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/locations/{location}/operationStatuses/{asyncOperationId}`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Get the status of a long running azure asynchronous operation.

## Path parameters

- `asyncOperationId` string, required

## Parameters

- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/ApiVersionParameter` (unresolved $ref)
- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/LocationParameter` (unresolved $ref)
- `../../../../../../common-types/resource-management/v5/types.json#/components/parameters/SubscriptionIdParameter` (unresolved $ref)

## Response `200`

Azure operation completed successfully.

- OperationStatus: The status of operation.
  - `id` string: The operation Id.
  - `name` string: The operation name.
  - `startTime` string: The start time of the operation.
  - `endTime` string: The end time of the operation.
  - `status` string: The status of the operation.
  - `error` ErrorResponse (unresolved $ref)

## Other responses

- `default`: An unexpected error response.

---

[API](https://skmtc.dev/azure/apis/azure-log-analytics-network-security-perimeter-apis.md) - [All operations](https://skmtc.dev/azure/apis/azure-log-analytics-network-security-perimeter-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/azure-log-analytics-network-security-perimeter-apis/revisions/f7ecefbd3eee?raw)
