---
title: "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices"
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices"
tags: ["DeviceServices"]
---

# GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices

`GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.WindowsIoT/deviceServices`

## Request

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

Get all the IoT hubs in a resource group.

## Path parameters

- `subscriptionId` string, required
- `resourceGroupName` string, required

## Query parameters

- `api-version` string, required

## Response `200`

OK. The request has succeeded.

- DeviceServiceDescriptionListResult: The JSON-serialized array of DeviceService objects with a next link.
  - `value` DeviceService[]: The array of DeviceService objects.
    - `id` string: Fully qualified resource Id for the resource
    - `name` string: The name of the resource
    - `type` string: The type of the resource.
  - `nextLink` string: The next link.

## Other responses

- `default`: DefaultErrorResponse

---

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