akv-cli 0.10.1

The Azure Key Vault CLI (unofficial) can read secrets from Key Vault, securely pass secrets to other commands or inject them into configuration files, encrypt and decrypt secrets, and managed keys and secrets in Key Vault.
Documentation
1
2
3
4
5
6
7
8
9
# Copyright 2025 Heath Stewart.
# Licensed under the MIT License. See LICENSE.txt in the project root for license information.

$AZURE_KEYVAULT_URL = (azd env get-value AZURE_KEYVAULT_URL).TrimEnd('/')
$AZURE_KEYVAULT_DEK_URL = azd env get-value AZURE_KEYVAULT_DEK_URL
$env:X_SECRET_1 = "$AZURE_KEYVAULT_URL/secrets/secret-1"
$env:X_SECRET_2 = "$AZURE_KEYVAULT_URL/secrets/secret-2"
$env:X_JWE = cargo run -- encrypt "$AZURE_KEYVAULT_DEK_URL" --value 'Hello, world!'
$env:X_JWE_BIN = (Get-Random -Count 32).ForEach({ [BitConverter]::GetBytes($_) }) | cargo run -- encrypt "$AZURE_KEYVAULT_DEK_URL" --in-file '-'