---
title: "Upload Azure Batch service log files from the specified Compute Node to Azure Blob Storage."
method: POST
path: "/pools/{poolId}/nodes/{nodeId}/uploadbatchservicelogs"
tags: ["ComputeNodes"]
---

# Upload Azure Batch service log files from the specified Compute Node to Azure Blob Storage.

`POST /pools/{poolId}/nodes/{nodeId}/uploadbatchservicelogs`

This is for gathering Azure Batch service log files in an automated fashion from Compute Nodes if you are experiencing an error and wish to escalate to Azure support. The Azure Batch service log files should be shared with Azure support to aid in debugging issues with the Batch service.

## Path parameters

- `poolId` string, required
- `nodeId` string, required

## Query parameters

- `timeout` integer
- `api-version` string, required

## Headers

- `client-request-id` string, uuid
- `return-client-request-id` boolean
- `ocp-date` string, date-time-rfc1123

## Response `200`

The request to the Batch service was successful.

- UploadBatchServiceLogsResult
  - `virtualDirectoryName` string, required — The virtual directory name is part of the blob name for each log file uploaded, and it is built based poolId, nodeId and a unique identifier.
  - `numberOfFilesUploaded` integer, required

## Other responses

- `default` — The error from the Batch service.

---

[API](https://skmtc.net/azure/apis/batchservice.md) · [All operations](https://skmtc.net/azure/apis/batchservice/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/batchservice/versions/4c9161203dbe/schema)
