Octopus Deploy organizes your infrastructure, that is the deployment targets you deploy software to (whether on-premises servers or cloud services), into environments. Typical examples of environments are Development, Test, and Production.
Organizing your deployment targets into environments lets you define your deployment processes (no matter how many deployment targets or steps are involved) and have Octopus deploy the right versions of your software to the right environments at the right time.
Add New Environments
Add new environments to Octopus Deploy by navigating to Infrastructure ➜ Environments in the Octopus Web Portal and click ADD ENVIRONMENT:
Give your new environments meaningful names, like Development, Test, or Production.
You can add as many environments as you need.
Managing Your Environments
If you're working with a large number of environments and deployment targets, the infrastructure tab makes it easy to sort, filter, and view your environments.
Sorting Your Environments
Click the overflow menu on the environments sections to reveal the reorder menu and access a drag and drop pane to sort your environments
The order that environments are shown in the environments tab also affects:
- The order that they are shown in the Dashboard.
- The order that they are listed in when choosing which environment to deploy a release to.
It's a good idea to put your least production-like environments first, and the most production-like environments last.
Using Advanced Filters
You can use advanced filters to search your environments by clicking on SHOW ADVANCED FILTERS from the environment tab.
This will let you search by:
- Deployment Target
- Target Roles
- Health Status
- Communication Style
Editing Your Environments
To edit individual environments, click the overflow menu for that environment. From here, it is possible to edit the environment, description, select guided failure mode, or delete the environment.
Guided failure mode can be enabled on an environment by default. This is useful for critical environments that are usually deployed to manually (for example, staging and production-like environments), though you might want to disable this feature for environments which are deployed to automatically such as smoke testing environments.
To enable guided failure mode by default for individual environments, click the overflow menu for the environment, select Default Guided Failure Mode and click the checkbox. Note, you can still override this setting for individual deployments. For more information, see the section on Guided Failures.
You can control who has access to view, edit, and deploy to environments by assigning users to Teams and assigning roles to those teams. For more information, see the section on managing users and teams.
Dynamic Targets in an Environment
To manage the targets within an Environment dynamically using the Dynamic Infrastructure PowerShell Cmdlets, select Edit in the overflow menu for the environment, expand the Dynamic Infrastructure section, and click the checkbox to Allow managing dynamic infrastructure.