---
title: "Gets a list of SAP monitors in the specified subscription."
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.HanaOnAzure/sapMonitors"
tags: ["HanaOnAzure"]
deprecated: true
---

# Gets a list of SAP monitors in the specified subscription.

`GET /subscriptions/{subscriptionId}/providers/Microsoft.HanaOnAzure/sapMonitors`

## Request

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

> **Deprecated.**

The product Microsoft.Workloads/sapMonitors (AMS Classic) is officially retired as of May 31, 2023.

## Path parameters

- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

Azure operation completed successfully.

- SapMonitorListResult: The response of a SapMonitor list operation.
  - `value` SapMonitor[], required: The SapMonitor items on this page
    - `id` string: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    - `name` string: The name of the resource
    - `type` string: The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    - `systemData` SystemData: Metadata pertaining to creation and last modification of the resource.
      - `createdBy` string: The identity that created the resource.
      - `createdByType` 'User' | 'Application' | 'ManagedIdentity' | 'Key': The type of identity that created the resource.
      - `createdAt` string, date-time: The timestamp of resource creation (UTC).
      - `lastModifiedBy` string: The identity that last modified the resource.
      - `lastModifiedByType` 'User' | 'Application' | 'ManagedIdentity' | 'Key': The type of identity that last modified the resource.
      - `lastModifiedAt` string, date-time: The timestamp of resource last modification (UTC)
    - `tags` object: Resource tags.
    - `location` string, required: The geo-location where the resource lives
    - `properties` SapMonitorProperties: Describes the properties of a SAP monitor.
      - `provisioningState` 'Accepted' | 'Creating' | 'Updating' | 'Failed' | 'Succeeded' | 'Deleting' | 'Migrating': State of provisioning of the HanaInstance
      - `managedResourceGroupName` string: The name of the resource group the SAP Monitor resources get deployed into.
      - `logAnalyticsWorkspaceArmId` string: The ARM ID of the Log Analytics Workspace that is used for monitoring
      - `enableCustomerAnalytics` boolean: The value indicating whether to send analytics to Microsoft
      - `logAnalyticsWorkspaceId` string: The workspace ID of the log analytics workspace to be used for monitoring
      - `logAnalyticsWorkspaceSharedKey` string: The shared key of the log analytics workspace that is used for monitoring
      - `sapMonitorCollectorVersion` string: The version of the payload running in the Collector VM
      - `monitorSubnet` string: The subnet which the SAP monitor will be deployed in
  - `nextLink` string, uri: The link to the next page of items

## Other responses

- `default`: An unexpected error response.

## Changes

- **2026-07-13** (2017-11-03-preview) `a2443eb5acb6`: 1 info
  - endpoint added
- **2021-01-26** (2017-11-03-preview) `973390cbd567`: 1 breaking
  - api path removed without deprecation
- **2019-06-26** (2017-11-03-preview) `c2a5d0016ed7`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/azure/apis/hanaonazure-microsoft-hanaonazure-hanaonazure/changes/subscriptions/:subscriptionId/providers/Microsoft.HanaOnAzure/sapMonitors/get.md)

---

[API](https://skmtc.dev/azure/apis/hanaonazure-microsoft-hanaonazure-hanaonazure.md) - [All operations](https://skmtc.dev/azure/apis/hanaonazure-microsoft-hanaonazure-hanaonazure/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/hanaonazure-microsoft-hanaonazure-hanaonazure/revisions/a2443eb5acb6?raw)
