How to work with variables

During the deployment process on Edge Orchestrator, you can work with variables. A variable can be set on an edge service and an edge node.

You can create edge node and edge services variables using:


Edge Services variables

  1. Go to Azion Console.
  2. On the top-left corner, select the Products menu, represented by three horizontal lines, and then Edge Services.
  3. Select the edge service to which you want to add a variable.
  4. In the Variables section, add the following variable:
name=azion
  1. Click the Save button.

Now, you’ve created a variable related to a specific service. You need to access this variable through a resource.

  1. Navigate to the Resources tab.
  2. Click on + Resource or select the resource to which you wish to use the variable.
  3. Enter the Path of the resource.
  4. Choose the type Text.
  5. Add the following content to the content block:
I am using {{name}} edge orchestrator
  1. Click the Save button.

Edge Node variables

  1. Go to Azion Console.
  2. On the top-left corner, select the Products menu, represented by three horizontal lines, and then Edge Nodes.
  3. Select the edge node to which you want to add a variable.
  4. Go to the Services tab.
  5. Choose the service to which you want to apply the variable.
  6. Add the following content to the variables block:
name=azion2
  1. Click the Save button.

Now, you’ve created a variable related to a specific node. You need to access this variable through a resource.

  1. Go to Azion Console > Edge Services.
  2. Select the service related to the resource.
  3. Click on + Resource or select the resource where you wish to use the variable.
  4. Enter the Path of the resource.
  5. Choose the type Text.
  6. Add the following content to the content block:
I am using {{name}} edge orchestrator
  1. Click the Save button.

Contributors