> 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-pmpcdeploymentdependencycandidate.md). Agents can also search and read this documentation through its [MCP server](https://docs.patchmypc.com/~gitbook/mcp).

# Get-PmpcDeploymentDependencyCandidate

Lists deployments that can be used as a dependency.

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

## Synopsis

Lists deployments that can be used as a dependency.

## Syntax

{% code collapsedlinecount="10" %}

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

{% endcode %}

## Description

Returns the deployments eligible to be a parent of a new or edited deployment, for use with the -ParentDeploymentId parameter of New-PmpcDeployment and Set-PmpcDeployment.

## Parameters

### -ProductId

The application whose dependencies are being configured. Informational only: the candidate list is connection-wide.

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

### 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

### DeploymentDependencyDto

One object per candidate deployment.

## Examples

### Example 1: List dependency candidates

{% code collapsedlinecount="10" %}

```powershell
Get-PmpcDeploymentDependencyCandidate -ProductId $productId
```

{% endcode %}

Returns every deployment on the connection that could be a dependency.

### Example 2: Find a specific dependency

{% code collapsedlinecount="10" %}

```powershell
Get-PmpcDeploymentDependencyCandidate -ProductId $productId | Where-Object Name -like '*Visual C++*'
```

{% endcode %}

Narrows a connection-wide list down to the runtime the application depends on.

## Notes

The candidate list is connection-wide rather than product-scoped. The product ID is informational: the underlying service does not currently support server-side filtering.

## 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: [GetDeploymentDependencyCandidatesAsync](https://docs.patchmypc.com/patch-my-pc-cloud-api/sdk/deployments.md#getdeploymentdependencycandidatesasync)
* REST operation: [`GET /v1/api/apps/{productId}/deployments/dependency-candidates`](https://docs.patchmypc.com/patch-my-pc-cloud-api/rest-api/applications.md#get-application-deployment-dependency-candidates)
* [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-pmpcdeploymentdependencycandidate.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.
