OctopusDeploy / Library

| Public | A repository of step templates and other community-contributed extensions to Octopus Deploy
Other
171 stars 504 forks source link

Add Azure AppConfig KV - Retrieve Values #1451

Closed harrisonmeister closed 1 year ago

harrisonmeister commented 1 year ago

Background

There is no native way in Octopus to retrieve configuration values from an Azure App Configuration Store for use in an Octopus deployment or runbook.

In addition, the step can (if configured) create an output variable that includes a JSON value that can be used in the built-in Azure App Service step to supply an entire JSON object for AppSettings.

Results

This step retrieves one or more key/values from an Azure App Configuration store and creates output variables for each value retrieved. These values can be used in other deployment or runbook process steps.

You can retrieve individual keys that match a specific name, and you can choose a custom output variable name for each key.

Wildcard search is also supported using the * notation in the Key Names parameter. Note: Combining a wildcard search with custom output variable names is not supported.

Authentication is performed using an Azure Service Principal.


Required:

Notes:

Before

N/A

After

Step template in a runbook process:

image

Results in Task log:

image

Pre-requisites

harrisonmeister commented 1 year ago

A few minor points, and only one (empty string not caught with a null check) that might manifest as a bug.

Thank @mcasperson - I think I got all those fixed up in 265bb61