diff --git a/src/pages/docs/infrastructure/deployment-targets/cloud-target-discovery/index.md b/src/pages/docs/infrastructure/deployment-targets/cloud-target-discovery/index.md index f03a0eeef1..fc9fd45bc9 100644 --- a/src/pages/docs/infrastructure/deployment-targets/cloud-target-discovery/index.md +++ b/src/pages/docs/infrastructure/deployment-targets/cloud-target-discovery/index.md @@ -55,6 +55,16 @@ From **Octopus 2022.3**, Azure steps that support target discovery will allow yo Once the variables for target discovery have been configured the **Azure** tile will say **Cloud target discovery enabled** and clicking the tile will redirect you to the Variables screen for the project where the target discovery variables can be edited if required. +#### Switching off Azure cloud target discovery + +To switch off cloud target discovery for Azure: + +1. Navigate to your project's **Variables** screen. +2. Find and delete the `Octopus.Azure.Account` variable. +3. Click **SAVE**. + +Once the variable is removed, cloud target discovery will be switched off for Azure resources in this project. The **Azure** tile in the **Cloud Connections** section of your Azure deployment steps will show **Configure** again, indicating that cloud target discovery is no longer active. + ### AWS To discover AWS cloud resources, Octopus uses the following variables: @@ -83,6 +93,20 @@ From **Octopus 2022.3**, AWS steps that support target discovery will allow you Once the variables for target discovery have been configured the **Amazon Web Services** tile will say **Cloud target discovery enabled** and clicking the tile will redirect you to the Variables screen for the project where the target discovery variables can be edited if required. +#### Switching off AWS cloud target discovery + +To switch off cloud target discovery for AWS: + +1. Navigate to your project's **Variables** screen. +2. Find and delete the following variables: + - `Octopus.Aws.Regions` (required) + - `Octopus.Aws.Account` (if configured) + - `Octopus.Aws.WorkerPool` (if configured) + - Any `Octopus.Aws.AssumedRole.*` variables (if configured) +3. Click **SAVE**. + +Once the variables are removed, cloud target discovery will be switched off for AWS resources in this project. The **Amazon Web Services** tile in the **Cloud Connections** section of your AWS deployment steps will show **Configure** again, indicating that cloud target discovery is no longer active. + ## Tag cloud resources Octopus looks for tags applied to cloud resources to discover and create deployment targets for you. @@ -127,7 +151,7 @@ If you have an existing project or environment, enable it with the following ste To discover targets for an environment, dynamic infrastructure needs to be enabled. To enable for an existing environment: 1. Navigate to **Infrastructure ➜ Environments**. -1. Click the overflow menu (`...`) for the environment you want to enable or disable dynamic infrastructure on and select **Edit**. +1. Click the overflow menu (`...`) for the environment you want to enable or switch off dynamic infrastructure on and select **Edit**. 1. Expand the **Dynamic infrastructure** section and tick the check-box to enable dynamic infrastructure. 1. Click **SAVE**.