# How to deploy a service

import DocButton from '~/components/webkit/DocButton.vue';


**Orchestrator** allows you to manage and control edge resources in real time, including the deployment, update, and management of various services and resources.

Azion provides two ways to manage edge nodes, edge services, and resources: 

- Via [Azion API](https://api.azion.com)
- Via interface [Azion Console](/en/documentation/products/guides/how-to-access-azion-console/).

:::note
The creation of an edge node occurs directly on the devices when the [Orchestrator Agent](/en/documentation/products/guides/deploy/install-orchestrator-agent/) is installed on them.
:::

<DocButton href="/en/documentation/products/guides/deploy/install-orchestrator-agent/" label="go to install Orchestrator agent" kind="secondary" size="medium" />

---

## Step 1: Create an edge service

To create an edge service, you need to give it an easy-to-remember name.

<DocButton href="/en/documentation/products/guides/deploy/create-edge-service/" label="go to how to create an edge service" kind="secondary" target="_blank" size="medium" />

---

## Step 2: Create a resource 

To be able to orchestrate services on your device, you need to configure all the resources needed to install, uninstall, and reload your services.

To create a resource, you need to: 

- Give the resource an easy-to-remember name.
- Choose the `content-type` of the resource. Example: `text` and `shell-script`.
- Add the content of the resource.

<DocButton href="/en/documentation/products/guides/deploy/provision-files/" label="go to how to provision files" kind="secondary" target="_blank" size="medium" />

---

## Step 3: Generate a personal token 

To be able to manage edge nodes, you must generate a personal token.

To do so: 

- Add an easy-to-remember name.
- Add a description.
- Set the expiration date for the token.

<DocButton href="/en/documentation/products/guides/personal-tokens/" label="go to generate a personal token" kind="secondary" size="medium" />

---

## Step 4: Install Orchestrator Agent 

With the personal token created, download and install the Orchestrator agent:


<DocButton href="/en/documentation/products/guides/deploy/install-orchestrator-agent/" label="go to how to install Orchestrator Agent" kind="secondary" target="_blank" size="medium" />

---

## Step 5: Authorize an edge node

With the Orchestrator Agent installed on the device:

- Authorize the edge node.

<DocButton href="/en/documentation/products/guides/deploy/authorize-an-edge-node/" label="go to how to authorize an edge node" kind="secondary" target="_blank" size="medium" />
<br/>
<DocButton href="/en/documentation/products/deploy/orchestrator/edge-node/" label="go to Edge Node reference documentation" kind="secondary" size="medium" />

---

## Step 6: Bind an edge service to an edge node

Now, with the edge node created and authorized, you must bind it with an edge service to be deployed onto the edge node.

- Create a relation between edge service and edge node.

<DocButton href="/en/documentation/products/guides/deploy/bind-service-node/" label="how to bind an edge service to an edge node" kind="secondary" target="_blank" size="medium" />

Once this relation is in place, when an update is triggered on the edge services, it'll be deployed to all nodes related to this service in particular.