Skip to content

Add support for Azure App Configuration - #1249

Merged
ninjarobot merged 4 commits into
masterfrom
copilot/add-azure-app-configuration
Sep 27, 2026
Merged

ninjarobot merged 4 commits into
masterfrom
copilot/add-azure-app-configuration

Conversation

Copilot AI commented Apr 17, 2026 •

Copy link
Copy Markdown
Contributor

Adds an Azure App Configuration builder covering configuration stores, feature flags, and key-value items.

New files

  • Arm/ConfigurationStore.fs — ARM types: ConfigurationStore, ConfigFeatureFlag, KeyValue
  • Builders/Builders.ConfigurationStore.fs — configurationStore builder with FeatureFlagConfig and KeyValueConfig record types
  • Tests/ConfigurationStore.fs — 15 unit tests
  • docs/.../app-configuration.md — full documentation page
  • Types (Sku, DataPlaneAuthenticationMode) moved to Common.fs per Farmer convention
  • Renamed AzFeatureFlag → ConfigFeatureFlag to avoid shadowing Farmer.FeatureFlag
  • All optional properties (disableLocalAuth, enablePurgeProtection, publicNetworkAccess, softDeleteRetentionInDays, dataPlaneProxy) default to None rather than being hardcoded
  • feature_flags replaced by additive add_feature_flag / add_feature_flags operations
  • Added generic key-value support (add_key_value / add_key_values) with optional labels, content type, and per-item tags
  • Added Endpoint member returning an ARM expression for the data plane endpoint

I have read the contributing guidelines and have completed the following:

  • Tested my code end-to-end against a live Azure subscription.
  • Updated the documentation in the docs folder for the affected changes.
  • Written unit tests against the modified code that I have made.
  • Updated the release notes with a new entry for this PR.
  • Checked the coding standards outlined in the contributions guide and ensured my code adheres to them.

If I haven't completed any of the tasks above, I include the reasons why here:

Below is a minimal example configuration that includes the new features, which can be used to deploy to Azure:

open Farmer
open Farmer.Builders
open Farmer.ConfigurationStore

let myConfig = configurationStore {
    name "my-app-config"
    sku Standard
    add_tags [ "env", "prod" ]

    add_feature_flags [
        { Name = "DarkMode"; Description = "Enable dark mode"; Label = ""; State = true }
        { Name = "Beta"; Description = "Beta feature"; Label = "beta"; State = false }
    ]

    add_key_values [
        { Key = "Api:BaseUrl"; Label = Some "prod"; Value = "https://api.example.com"; ContentType = None; KeyValueTags = Map.empty }
        { Key = "Settings"; Label = None; Value = """{"timeout":30}"""; ContentType = Some "application/json"; KeyValueTags = Map.empty }
    ]
}

let deployment = arm {
    location Location.NorthEurope
    add_resource myConfig
}

Copilot AI linked an issue Apr 17, 2026 that may be closed by this pull request
…and documentation

Agent-Logs-Url: https://github.com/CompositionalIT/farmer/sessions/2dd27535-b488-4936-9edc-e1733dfe024c

Co-authored-by: ninjarobot <1520226+ninjarobot@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for Azure App Configuration Add support for Azure App Configuration Apr 17, 2026
Copilot AI requested a review from ninjarobot April 17, 2026 02:56
@ninjarobot
ninjarobot marked this pull request as ready for review September 27, 2026 22:02
Removed 'disable_local_auth' from configuration example because adding feature flags and config will fail.

@ninjarobot ninjarobot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and tested the end to end functionality.

@ninjarobot
ninjarobot merged commit 93504a2 into master Sep 27, 2026
3 checks passed
@ninjarobot
ninjarobot deleted the copilot/add-azure-app-configuration branch September 27, 2026 22:39
github-actions Bot pushed a commit that referenced this pull request Sep 27, 2026
…onfiguration

Add support for Azure App Configuration 93504a2
@ninjarobot ninjarobot mentioned this pull request Sep 27, 2026
2 of 5 tasks
@ninjarobot ninjarobot added this to the 1.9.30 milestone Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Azure App Configuration

2 participants