> For the complete documentation index, see [llms.txt](https://docs.patchmypc.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpcdeployment.md). Agents can also search and read this documentation through its [MCP server](https://docs.patchmypc.com/~gitbook/mcp).

# Get-PmpcDeployment

Gets an application's Intune deployments, or one deployment in full.

[Back to the Cloud Customer API overview](https://docs.patchmypc.com/patch-my-pc-cloud-api)

## Synopsis

Gets an application's Intune deployments, or one deployment in full.

## Syntax

### List (Default)

{% code collapsedlinecount="10" %}

```powershell
Get-PmpcDeployment [-ProductId] <Guid> [<CommonParameters>]
```

{% endcode %}

### Detail

{% code collapsedlinecount="10" %}

```powershell
Get-PmpcDeployment [-ProductId] <Guid> [-DeploymentId] <String> [<CommonParameters>]
```

{% endcode %}

## Description

Without -DeploymentId, lists every deployment of the application on the selected connection.

Both forms include nullable CatalogEntryId alongside the existing ProductId. CatalogEntryId is the stored category identifier: the selected public variant or the customer-owned custom catalog entry. Older deployments without a stored category identifier return null; the identity is never inferred from the current catalog and does not pin a version or revision.

With -DeploymentId, returns that one deployment in full, including its categories, Enrollment Status Page profiles and dependency chain. Those fields are deliberately left off the list form to avoid an extra backend round-trip per item.

## Parameters

### -DeploymentId

Return this one deployment in full instead of listing them all.

| Attribute      | Value                 |
| -------------- | --------------------- |
| Type           | `System.String`       |
| Required       | True                  |
| Position       | 1                     |
| Pipeline input | True (ByPropertyName) |
| Aliases        | None                  |
| Parameter sets | Detail                |

### -ProductId

ID of the application. Accepted from the pipeline by property name, so results from Find-PmpcCustomApplication and Get-PmpcCustomApplication can be piped straight in.

| Attribute      | Value                          |
| -------------- | ------------------------------ |
| Type           | `System.Guid`                  |
| Required       | True                           |
| Position       | 0                              |
| Pipeline input | True (ByValue, ByPropertyName) |
| Aliases        | Id                             |
| Parameter sets | All                            |

### CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about\_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).

## Inputs

### System.Guid

The product ID, by value or by the Id/ProductId property.

## Outputs

### DeploymentDto

One object per deployment.

### DeploymentDetailDto

The full deployment, when -DeploymentId is supplied.

## Examples

### Example 1: List an application's deployments

{% code collapsedlinecount="10" %}

```powershell
Get-PmpcDeployment -ProductId $productId
```

{% endcode %}

Returns each deployment with its status and target operating system.

### Example 2: Get one deployment in full

{% code collapsedlinecount="10" %}

```powershell
Get-PmpcDeployment -ProductId $productId -DeploymentId $deploymentId
```

{% endcode %}

Returns the deployment including categories, ESP profiles and its parent and child deployments.

### Example 3: Find failed deployments

{% code collapsedlinecount="10" %}

```powershell
Get-PmpcDeployment -ProductId $productId | Where-Object Status -eq 'Failed'
```

{% endcode %}

Filters the list down to deployments that need attention.

## Notes

Scoped to the connection selected with Set-PmpcConnection.

## Related links

* [New-PmpcDeployment](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/new-pmpcdeployment.md)
* [Set-PmpcDeployment](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/set-pmpcdeployment.md)
* [PowerShell module](https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell.md)

## See also

* SDK method: [GetDeploymentsAsync](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk/deployments.md#getdeploymentsasync)
* SDK method: [GetDeploymentDetailsAsync](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk/deployments.md#getdeploymentdetailsasync)
* REST operation: [`GET /v1/api/apps/{productId}/deployments`](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-application-deployments)
* REST operation: [`GET /v1/api/apps/{productId}/deployments/{deploymentId}`](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-application-deployment-details)
* [Cross-reference: cmdlets, SDK methods, and REST operations](https://docs.patchmypc.com/patch-my-pc-cloud-api/cross-reference.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.patchmypc.com/patch-my-pc-cloud-api/powershell/get-pmpcdeployment.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
