# Publishing a document

To publish a document, follow the below procedure:

1. In the RAS Console, select the **Publishing** category and then click the **Add** icon below the **Published Resources** tree (or right-click inside the **Published Resources** box and click **Add** in the context menu). This will launch the publishing wizard.

{% hint style="info" %}
**Note:** If the wizard has all options disabled, it means that there are no resources (servers) in the Farm from which publishing can be configured.
{% endhint %}

2. On the **Select Item Type** wizard page, select **Document** and click **Next.**
3. Select the server type from which to publish and click **Next**.

{% hint style="info" %}
**Note:** If you want to publish from a pool-based Remote PC, select the **Virtual Guest** option. The **Remote PC** option there is for standalone Remote PCs.
{% endhint %}

{% hint style="info" %}
**Note:** Resources published from the local device load faster than resources published from other servers. This is possible because Parallels RAS does not have to connect to the servers via RDP.
{% endhint %}

4. Specify the content type of the document you want to publish. You can select the content type from the predefined list or specify a custom content type in the **Custom content types** input field.
5. Click **Next** when ready.
6. On the **Publish From** page, page, select the server(s) to publish from. Note that if you have just one server or selected **Local Device** on the previous step, the **Publish From** page will not appear.&#x20;
7. On the **Application** page, enter a name, an optional description, a Window state, and an icon if needed.
8. Use the **\[...]** button next to the **Target** input field to browse for the document. All other fields will be automatically populated. To edit any of the auto populated fields, highlight them and enter the required details.
9. (Optional) In the **Parameters** input field, specify the parameters to pass to the application when it starts.

{% hint style="info" %}
**Note:** Use the **Server(s)** drop-down list to specify different document settings for a specific server in case the document is configured differently on that particular server. The settings will be saved for each server you select individually.
{% endhint %}

10. (VDI only) Select the **Persistent** option to make a guest VM persistent. For more info, see Persistent guest VMs.
11. (Remote PC only) Click the **\[...]** button in the **Remote PC Settings** section to select a Remote PC from which the application should be published. In the box that opens, double-click a PC to select it.
12. On the next page, specify the initial status of the resource. Choose from **Enabled** (end users can launch the resource), **Disabled** (the resource will not appear in Parallels Client), **In maintenance** (the resource will appear in Parallels Client but users will not be able to launch it). When a resource is in maintenance and a user tries to launch it, they will see a message. To customize the message, click the **Configure** button. For more info, see [**Site defaults (Publishing)**](https://docs.parallels.com/landing/ras-admin-guide/v20-en-us/parallels-ras-20-administrators-guide/publishing/site-defaults-publishing).
13. Click **Finish** to publish the document.


---

# Agent Instructions: 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:

```
GET https://docs.parallels.com/landing/ras-admin-guide/v20-en-us/parallels-ras-20-administrators-guide/publishing/publishing-a-document.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
