Resolution
Remove machine-scoped variables from the project before exporting it.
Symptom
Attempting to export a project that contains machine-scoped variables results in an unsupported export scenario error.
The error may look similar to:
The items you are exporting are not currently supported:
Variables with the following scopes are not currently supported: Machine.
The underlying exception may also reference:
Octopus.ImportExport.UnsupportedExportScenarioException
Scope: when this is the right article
This article applies when:
- You are exporting a project using Octopus Project Export/Import.
- The project contains variables scoped to specific deployment targets (Machines).
- The export fails with an unsupported export scenario error referencing the Machine scope.
Cause
Project Export/Import does not currently support variables with Machine scopes.
Machine-scoped variables reference deployment targets that are not included as part of the project configuration export. Because these references cannot be transferred as part of the project export, Octopus reports the scenario as unsupported.
Diagnosis and fix
-
Navigate to the affected project and open Variables.
-
Review the project variables and identify any variables scoped to specific machines.
-
Record the variable names and existing scopes so they can be recreated accurately.
-
Remove the Machine scope from the affected variables.
-
Retry the project export.
-
Once the project has been imported into the destination Octopus instance, reapply their appropriate Machine scopes.
Verify
-
Confirm the project export completes without the unsupported Machine scope error.
-
Confirm the project imports successfully into the destination instance.
-
Verify that the affected variables have been reapplied with their appropriate Machine scopes.
-
Run a deployment and confirm the variables resolve as expected for the intended deployment targets.
Related
- Octopus Project Export and Import documentation - Documentation covering project configuration export and import.