# Elastic-agent install: Unknown resource

**URL:** <https://discuss.elastic.co/t/elastic-agent-install-unknown-resource/286758>\
**Category:** Beats\
**Tags:** fleet, elastic-agent\
**Created:** [October 14, 2021, 4:43pm UTC](https://discuss.elastic.co/t/elastic-agent-install-unknown-resource/286758 "2021-10-14T16:43:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jknight](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jknight/32/95899_2.png) [@jknight](https://discuss.elastic.co/u/jknight)\
**Post date:** [October 14, 2021, 4:43pm UTC](https://discuss.elastic.co/t/elastic-agent-install-unknown-resource/286758/1 "2021-10-14T16:43:21Z")

</div>

I'm trying to install elastic-agent on our server and am getting

> message: Unknown resource.

I'm using the hosted elastic offering and have APM & Fleet enabled.

Steps Taken:

- [Download Linux 64-bit tarball](https://www.elastic.co/downloads/past-releases/elastic-agent-7-15-0) to server
- Unzip it (tar -zxvf elastic-agent-7.15.0-linux-x86\_64.tar.gz / cd elastic-agent-7.15.0-linux-x86\_64)
- Run it with the command given in the setup instructions:

```auto
sudo ./elastic-agent install -f --url=https://[my url].fleet.eastus2.azure.elastic-cloud.com:443 --enrollment-token=[my token]

```

Expected result:

- It registers my server as an agent

Actual result:

```auto
❯ sudo ./elastic-agent install -f --url=https://[my url].fleet.eastus2.azure.elastic-cloud.com:443 --enrollment-token=[my token]
2021-10-14T16:32:29.657Z	INFO	cmd/enroll_cmd.go:432	Starting enrollment to URL: https://[my url].fleet.eastus2.azure.elastic-cloud.com:443/
Error: fail to enroll: fail to execute request to fleet-server: status code: 0, fleet-server returned an error: , message: Unknown resource.
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/7.15/fleet-troubleshooting.html
Error: enroll command failed with exit code: 1
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/7.15/fleet-troubleshooting.html

```

Also tried doing the "run standalone" version, copying the `elastic-agent.yml` into my config and providing the url + enrollment token manually -- same result.

Any ideas?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 11, 2021, 4:43pm UTC](https://discuss.elastic.co/t/elastic-agent-install-unknown-resource/286758/2 "2021-11-11T16:43:32Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
