Enable Products on an application
Enable Application Accelerator, Image Processor, or Functions on an application from Azion Console, the Azion CLI, or the API, then read its state.
You can enable the Products an application runs from Azion Console, the Azion CLI, or the API. Each Product adds variables and behaviors that the rules of the application can use. To create the application itself, in front of your origin, refer to Applications quickstart.
Protocols, ports, and TLS settings belong to the workload that serves the application. The workload also carries the domains that reach it.
Choose your interface once. The prerequisites and each procedure on this page follow that choice.
Prerequisites
An application. To create one, refer to Applications quickstart.
- Access to Azion Console. To sign in, refer to Access Azion Console.
Enable a Product on the application
A new application runs Cache and Functions. Application Accelerator and Image Processor stay off until you enable them. Azion Console labels Cache “Automatically enabled in all accounts.”
Each Product changes what the rules and settings of the application can do:
- Application Accelerator adds the
${request_uri}variable and other Rules Engine options. It also lets a cache setting vary by query string, cookies, device group, and request method. A cache setting can then take a Max Age below 60 seconds. Data transfer through Application Accelerator can generate usage-related costs. For more information, refer to Application Accelerator settings and Pricing. - Image Processor adds the Optimize Images behavior, which edits images as the application delivers them. For more information, refer to Image Processor quickstart.
- Functions lets you instantiate a function on the application and run it with the Run Function behavior. For more information, refer to Instantiate a function on an application.
In Azion Console, a Rules Engine option that needs a Product carries a note such as - Required Image Processor.
To enable Application Accelerator with the Azion CLI, run azion update application with your application ID in place of <application-id>:
The command confirms the update:
The same command takes --image-processor true to enable Image Processor, and --functions true to enable Functions.
Read the Products an application runs
The application reports its Products in Azion Console, in the CLI, and in the API. Read them after an update to confirm which Products are enabled.
Open the Main Settings tab of the application. Under Modules, the toggle of each enabled Product is on.