---
title: "Invokes an administrative command on the given Infrastructure Service instance."
method: POST
path: "/$/InvokeInfrastructureCommand"
tags: ["Infrastructure"]
---

# Invokes an administrative command on the given Infrastructure Service instance.

`POST /$/InvokeInfrastructureCommand`

For clusters that have one or more instances of the Infrastructure Service configured,
this API provides a way to send infrastructure-specific commands to a particular
instance of the Infrastructure Service.

Available commands and their corresponding response formats vary depending upon
the infrastructure on which the cluster is running.

This API supports the Service Fabric platform; it is not meant to be used directly from your code.

## Query parameters

- `api-version` '6.0', required
- `Command` string, required
- `ServiceId` string
- `timeout` integer

## Response `200`

The response from the infrastructure service. The response format is a JSON stream.
The contents of the response depend on which command was issued.

- string, binary — This is a weakly-typed response stream to the client. It contains the JSON response from the infrastructure service without deserialization. The content of the response depends on which command was issued to the infrastructure service.

## Other responses

- `default` — The detailed error response.

---

[API](https://skmtc.net/azure/apis/servicefabric-servicefabric.md) · [All operations](https://skmtc.net/azure/apis/servicefabric-servicefabric/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/servicefabric-servicefabric/revisions/8fd479ce0f16/schema)
