> 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/troubleshoot/deployments/500-internal-server-error-when-adding-an-assignment-to-a-cloud-deployment.md).

# “500 Internal Server Error” when adding an assignment to a Cloud deployment

*Applies to: Patch My PC Cloud*

### SYMPTOMS

I am trying to create an assignment in the Patch My PC (PMPC) Cloud portal that previously worked.

Now, when I try to add an assignment, I get a **500 Internal Server Error**.

<figure><img src="/files/kUhJ4C99qQjMf0ELJ0Q9" alt="“500 Internal Server Error” when trying to add an assignment"><figcaption></figcaption></figure>

### CAUSE

The most probable cause of this is either someone has deleted the [Patch My PC Cloud Enterprise App](https://docs.patchmypc.com/patch-my-pc-cloud/troubleshooting/what-happens-if-the-patch-my-pc-cloud-enterprise-app-is-deleted) or a Global Admin has revoked the [Permissions required for Intune Apps](https://docs.patchmypc.com/patch-my-pc-cloud/intune-apps-public-preview/reference/permissions-required-for-intune-apps) from within the Intune admin center.

### RESOLUTION

To resolve this issue, follow the [Reconnecting an Intune tenant](https://docs.patchmypc.com/patch-my-pc-cloud/administration/managing-your-environments/managing-intune-tenants#reconnecting-an-intune-tenant) process, which will prompt you to reconfirm you want to grant the [Permissions required for Intune Apps](https://docs.patchmypc.com/patch-my-pc-cloud/intune-apps-public-preview/reference/permissions-required-for-intune-apps).


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.patchmypc.com/patch-my-pc-cloud/troubleshoot/deployments/500-internal-server-error-when-adding-an-assignment-to-a-cloud-deployment.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
