> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/resilience-testing/chaos-testing/templates.md).

# Templates

Standardize chaos experiments across teams with reusable experiment, fault, probe, and action templates stored in ChaosHubs.

{% hint style="info" %}
**LINUX AND WINDOWS INFRASTRUCTURE**

Experiment templates are now supported for Linux and Windows v2 infrastructure. You can create and manage experiment templates, create experiments from templates, and run those experiments. However, running Machine/Linux experiments from a pipeline and using step templates with machine experiment templates are not supported.
{% endhint %}

**Templates** are reusable, pre-configured components that help you standardize and accelerate your chaos engineering practices. Templates provide a foundation for creating consistent experiments across your organization while maintaining flexibility for customization.

You can create experiments, faults, probes, and actions in two ways:

* **Direct Creation**: Create them directly through their specific sections for one-time use
* **Template-Based Creation**: Create them from templates when you need reusable, standardized configurations across multiple experiments

Templates allow you to:

* Standardize chaos engineering practices across teams
* Reduce experiment creation time with pre-built components
* Ensure best practices and consistent configurations
* Share proven patterns across projects and environments
* Maintain version control for your chaos engineering assets

## Template scopes <a href="#template-scopes" id="template-scopes"></a>

Templates can be managed at different organizational levels:

* **Account Level**: Highest scope - accessible across all accounts, organizations, and projects
* **Organization Level**: Available across organizations and their projects
* **Project Level**: Available within a specific project only

{% @harness-package-selector/package-selector platforms="%5B%7B%22label%22%3A%22Fault%20Template%22%2C%22slug%22%3A%22fault-template%22%2C%22path%22%3A%22resilience-testing%2Fchaos-testing%2Ftemplates%2Ffault-template-templates%22%7D%2C%7B%22label%22%3A%22Probe%20Template%22%2C%22slug%22%3A%22probe-template%22%2C%22path%22%3A%22resilience-testing%2Fchaos-testing%2Ftemplates%2Fprobe-template-templates%22%7D%2C%7B%22label%22%3A%22Action%20Template%22%2C%22slug%22%3A%22action-template%22%2C%22path%22%3A%22resilience-testing%2Fchaos-testing%2Ftemplates%2Faction-template-templates%22%7D%2C%7B%22label%22%3A%22Experiment%20Template%22%2C%22slug%22%3A%22experiment-template%22%2C%22path%22%3A%22resilience-testing%2Fchaos-testing%2Ftemplates%2Fexperiment-template-templates%22%7D%5D" %}

## Troubleshooting <a href="#troubleshooting" id="troubleshooting"></a>

<details>

<summary>A Linux experiment created from a template cannot run from a pipeline</summary>

Experiment templates are supported for Linux and Windows v2 infrastructure, but running Machine or Linux experiments from a pipeline is not supported, and neither is using step templates with machine experiment templates. Run these experiments directly from Chaos Studio instead.

</details>

<details>

<summary>A template is not available in my project</summary>

A project-level template is available only within its project. Create the template at the organization level to share it across projects in the organization, or at the account level to share it across the whole account.

</details>

## Next steps <a href="#next-steps" id="next-steps"></a>

* [Create your first experiment](https://developer.harness.io/resilience-testing/chaos-testing/experiments.md)
* [Explore Fault Templates](https://developer.harness.io/resilience-testing/chaos-engineering/faults/custom-faults/custom-fault-templates.md)
* [Understand Actions](https://developer.harness.io/resilience-testing/chaos-testing/actions.md)

{% @harness-feedback/feedback %}
