App Configuration - Browse Settings, Labels and Key Vault References from Terminal
Browse Azure App Configuration stores without the portal: pick a store, scan its key-values with their labels, open a value, edit it in place, and follow a Key Vault reference into the Key Vault tab.
Open a tab with Ctrl+T → App Configuration, or add
{ "kind": "appconfig" } to the tabs list in your config.
Pane layout
Section titled “Pane layout”Three Miller columns, left to right:
- Stores — every App Configuration store in the subscription.
- Settings — the store’s key-values. Each row shows the key, then the
label in a muted column, and a tag for Key Vault references
(
→ key vault) and feature flags (flag). Long keys are cropped so the label column stays visible. Feature flags show without their.appconfig.featureflag/prefix. - Value — the opened value. JSON is pretty-printed and highlighted; anything else is shown as is. The line above the value names the key, label, content type, and whether the setting is read-only.
Browsing
Section titled “Browsing”| Key | Action |
|---|---|
Enter / l | Open the store, or open the selected value |
h / Left / Backspace | Go back one column |
/ | Filter the focused column by key or store name |
j / k, Ctrl+D / Ctrl+U, gg / G | Move, with counts, in lists and in the value pane |
a | Action menu: edit value, yank, open a Key Vault reference, refresh |
y | Yank the value to the clipboard |
Y | Copy palette: key, value, label, store endpoint, and for references the vault, secret and URI |
Space | Mark / unmark a setting |
V | Visual-line selection; o swaps the anchor, Esc commits the range as marks, as does leaving the pane. Filtering waits until the selection is finished |
Esc | With marks and no selection open: clear the marks |
K | Toggle the inspect strip |
r | Refresh the current column |
The value pane follows the cursor: once a value is open, moving in the settings list swaps the value without reopening it. It closes when you change store or subscription.
Labels
Section titled “Labels”A key can exist under several labels, typically one per environment. The
list shows every label as its own row, so Db/Timeout with no label and
Db/Timeout under prod are two rows. The unlabelled value is what the
portal calls “(No label)”. Filtering matches the key; a label filter is
not available yet.
Key Vault references
Section titled “Key Vault references”A setting whose content type marks it as a Key Vault reference holds a
pointer to a secret, not the secret itself. The value pane shows the
vault, the secret name, the pinned version if any, and the secret URI.
Press Enter in the value pane to open that secret in a Key Vault tab,
positioned on the secret. Ctrl+O jumps back.
Feature flags
Section titled “Feature flags”Feature flags are key-values with a special content type. The list shows
each flag’s state after its name: flag on, flag off, or flag on* when
filters decide who gets it. The value pane shows the JSON definition,
which includes the filters.
Turn flag on / off in the action menu flips the enabled field and
leaves everything else in the definition, filters included, exactly as it
was. A confirmation shows the change; turning a flag on is the
destructive-styled prompt, since it is the one that changes behaviour for
users. The save is conditional on the version you saw, like an edit.
Create feature flag asks for a name, an optional label and description, and whether it starts on or off. The flag is created in the shape the portal uses, with an empty filter list, and appears in the list with the cursor on it.
Editing a value
Section titled “Editing a value”Press a on a setting, in the list or in the value pane, and choose
Edit value. The form opens with the current value; Enter submits,
Esc cancels. A confirmation then shows the old and new value, with a
reminder that applications reading the store see the change at once.
The key, label and content type stay as they were.
Tags on the setting are kept by every write, edits and flag flips included.
The save is conditional: it carries the version tag the value was read
with, so if someone changed the setting after you opened it, the save is
rejected with “changed since you opened it” and nothing is overwritten.
Refresh with r and edit again. A locked (read-only) setting is refused
before the form opens; unlock it in the portal first.
Editing in your editor
Section titled “Editing in your editor”For JSON and multi-line values the action menu offers Edit value in
$EDITOR first. lazyaz writes the value to a private temp file, pretty
printed and named .json when it is JSON, suspends, and runs your editor
on it: $VISUAL, then $EDITOR, then vi. When the editor exits the
file is read back and deleted, and the same confirmation follows, this
time with a line diff: every removed line marked - and every added line
marked +, with line numbers. Nothing reaches the store until you answer
y or Enter there; Esc cancels.
The value is saved exactly as you left it in the editor, apart from a trailing newline the editor added. If the original was JSON and the edit no longer parses, nothing is saved and the error names the problem.
A GUI editor must be told to wait, or it returns before you have typed
anything: EDITOR="code --wait", EDITOR="zed --wait". lazyaz notices an
editor that returned at once with the value unchanged and says so.
On Windows the same variables apply. Set one for your account with
setx EDITOR "code --wait" in a terminal, then open a new terminal.
Without one, lazyaz falls back to Notepad.
Creating and deleting
Section titled “Creating and deleting”Create key-value in the action menu opens a form with key, label,
value and content type. Key and label follow the service’s rules (no
*, , or \\). For a short value, type it in the field. For JSON or
anything longer, press ctrl+e on the form to compose the value in your
editor: it opens a {} skeleton when the content type is JSON, or your
typed text pretty-printed if it already parses. When you close the
editor the form is back, with the value field’s help line describing
what was composed; ctrl+e again reopens it, typing in the field
replaces it. Composing valid JSON fills the content type with
application/json if it was empty. Pressing Enter with a JSON content
type and no value opens the editor instead of creating an empty document.
A JSON content type makes lazyaz check that the value parses before sending it. A key that already exists under the same label is refused, both before the request and by the service, so nothing is overwritten. The new row appears at once with the cursor on it.
Delete asks for confirmation naming the store, the key and its label, and shows the value one last time. The delete is conditional on the version the value was read with: if someone changed it in the meantime the delete is refused and you are asked to refresh and look again. Deleting a Key Vault reference removes only the pointer; the secret stays in the vault. There is no undo. Locked settings cannot be deleted until unlocked in the portal.
Locking is not available yet.
Promoting settings to another store
Section titled “Promoting settings to another store”When environments are separate stores, moving configuration between them
is a copy from one store to another. Mark the settings with Space, or
select a range with V and Esc, then a → Promote N marked to
another store…. With nothing marked the action promotes the setting
under the cursor.
- Pick the subscription, the current one first, then the store. Stores from another tenant work through that subscription’s own credential.
- Choose how labels and flags travel. An empty target label keeps
each setting’s own label; a label maps every setting to it;
\0maps them to the unlabelled value (the Azure CLI’s spelling for no label). A target label is refused when the same key is marked under several labels, since they would all land on one value. With flags set to off, the default, a flag that is new to the target arrives disabled and a flag already there keeps the state the target has, so copying never switches a flag on or off.keepcopies the source’s state instead. - Review the plan. Each setting is listed as
+new,~changed,=identical (skipped) or!locked in the target (skipped), with counts and the resulting flag state. Nothing has been written yet. While the target is being read for the plan, onlyEscworks: the source store cannot change under a plan in the making. - Confirm. Writes are conditional on the target’s current version, so a value changed in the target meanwhile fails for that key and the rest continue. The result names every key that failed and why.
The plan is built from what both stores hold at that moment: the source is re-read along with the target, so a value from the tab’s cache is never what gets written. When you confirm, the source is checked once more; if a planned setting changed or disappeared there while the dialog was open, nothing is written and you are asked to run promote again. Tags travel with a setting, and a setting that differs from the target only in its tags counts as changed.
Promote copies; the source store is never changed. Marks stay after a promotion so the same set can go to a second store.
Inspect panel
Section titled “Inspect panel”Press K to show key, label, kind (key-value, Key Vault reference or
feature flag), content type, last modified time, read-only state, tags,
and for references the vault and secret.
Permissions
Section titled “Permissions”Listing stores needs Reader on the subscription or resource group.
Reading key-values needs the data-plane role App Configuration Data Reader on the store. Without it, lazyaz falls back to the store’s access
keys, which Owner and Contributor can read through ARM, preferring a
read-only key. Writing needs App Configuration Data Owner; the fallback
then uses a read-write key, and only for the write itself. A store with
local authentication disabled has no usable keys, so there the data roles
are required.