Loads Orchard Core app configuration and secrets from Azure Key Vault. Covers AddOrchardCoreAzureKeyVault, DefaultAzureCredential, secret name translation, and configuration section mapping.
Ships in orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an Orchard Core expert. Wire Azure Key Vault as a configuration source so secrets such as connection strings and API keys are pulled from Key Vault instead of appsettings.
OrchardCore.Configuration.KeyVault library. It is a host configuration provider, not a tenant feature, so you enable it in your startup code, not through a recipe or the admin Features screen.OrchardCore.Configuration.KeyVault in the web (startup) project.AddOrchardCoreAzureKeyVault on the builder. Overloads exist for IHostBuilder, IWebHostBuilder, and ConfigurationManager.DefaultAzureCredential (Azure Identity). In Azure, prefer a Managed Identity; locally, sign in through Visual Studio, VS Code, or the Azure CLI. You may pass a custom TokenCredential to override this.OrchardCore:KeyVault:Azure section (in appsettings or environment variables, since it is read before Key Vault is added): provide KeyVaultName or VaultURI, and optionally ReloadInterval (in seconds) to poll for changes. Leave ReloadInterval blank to disable reloading.: and _, so Orchard Core's AzureKeyVaultSecretManager translates --- to _ and -- to : when mapping a secret name back to a configuration key.sealed modifier, except View Models.<ItemGroup>
<PackageReference Include="OrchardCore.Configuration.KeyVault" Version="3.*" />
</ItemGroup>
Using the minimal hosting model with ConfigurationManager:
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddOrchardCoreAzureKeyVault();
builder.Services
.AddOrchardCms();
var app = builder.Build();
app.UseOrchardCore();
app.Run();
Using the generic host builder:
Host.CreateDefaultBuilder(args)
.AddOrchardCoreAzureKeyVault()
.ConfigureWebHostDefaults(webBuilder => webBuilder.UseStartup<Startup>());
Passing a custom credential (for example a specific user-assigned managed identity):
var credential = new ManagedIdentityCredential("<client-id>");
builder.Configuration.AddOrchardCoreAzureKeyVault(credential);
{
"OrchardCore": {
"KeyVault": {
"Azure": {
"KeyVaultName": "my-vault",
"VaultURI": "",
"ReloadInterval": "60"
}
}
}
}
Environment variable form: OrchardCore__KeyVault__Azure__KeyVaultName=my-vault.
KeyVaultName (short name) or VaultURI (full vault host URI). VaultURI takes precedence when set. A missing or invalid value throws at startup with a message naming the OrchardCore:KeyVault:Azure:* key.ReloadInterval is a number of seconds; when present the provider re-polls the vault on that interval.Key Vault secret names cannot contain : or _. Orchard Core maps them back to configuration keys:
| Key Vault secret name | Resolved configuration key |
|---|---|
OrchardCore--Shells--Database--ConnectionString | OrchardCore:Shells:Database:ConnectionString |
OrchardCore--Media--Azure--ConnectionString | OrchardCore:Media:Azure:ConnectionString |
OrchardCore--DataProtection--Azure--ConnectionString | OrchardCore:DataProtection:Azure:ConnectionString |
OrchardCore--Redis--Configuration | OrchardCore:Redis:Configuration |
OrchardCore--Email--Smtp--Password | OrchardCore:Email:Smtp:Password |
OrchardCore--SignalR--Azure--ConnectionString | OrchardCore:SignalR:Azure:ConnectionString |
ConnectionStrings--Default | ConnectionStrings:Default |
Orchard Core 4.0 configuration sections are grouped by service without the
OrchardCore_ prefix, so most secret names no longer need the triple dash. Use
--- only for keys that really contain _.
Rules applied by AzureKeyVaultSecretManager:
-- (double dash) becomes : (section separator).--- (triple dash) becomes _ (underscore inside a key segment).OrchardCore.DataProtection.Azure (data-protection key storage) for a fully externalized secret and key management setup.Orchard Core 4.0 also ships OrchardCore.Secrets.AzureKeyVault, a tenant
feature that makes Key Vault a store of the Secrets module (store name
AzureKeyVault, configured under OrchardCore:Secrets:AzureKeyVault with a
host-registered keyed SecretClient). The two are independent:
OrchardCore.Configuration.KeyVault | OrchardCore.Secrets.AzureKeyVault | |
|---|---|---|
| Kind | Host configuration provider | Tenant feature (store of OrchardCore.Secrets) |
| Consumers | Any configuration key | Settings that reference a secret by *SecretName, and ISecretManager |
| Entry names | --/--- encoded configuration keys | Prefix, tenant, and name with a hash, plus ownership tags |
| Managed in | Azure only | Orchard admin (Tools → Security → Secrets) |
| Missing or invalid configuration | Throws at startup | Logs an error; the tenant keeps running without the AzureKeyVault store |
Credentials supplied through configuration (including this provider), such as
OrchardCore--Email--Smtp--Password, still work in 4.0 but log a
LegacySecretConfiguration warning (event 8100) for the integrations that
support secrets. To retire them, create the secret in the Secrets module (in the
AzureKeyVault or Database store), select it in the integration's settings,
then delete the configuration entry. See orchardcore-secrets.
get/list secret permissions on the vault.OrchardCore:OrchardCore_KeyVault_Azure section to OrchardCore:KeyVault:Azure (env var OrchardCore__KeyVault__Azure__KeyVaultName). The old name is deprecated but still read.OrchardCore--OrchardCore---Media---Azure--ConnectionString to OrchardCore--Media--Azure--ConnectionString and OrchardCore--OrchardCore---Redis--Configuration to OrchardCore--Redis--Configuration. Old section names still bind, and the new name wins when both are present.LegacySecretConfiguration; plan to move them to secrets.What SKILL.md sets; muted values are Claude Code's defaults
/orchardcore:orchardcore-azure-key-vaultfrom orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin orchardcore140 skills in this plugin
/orchardcore-adminGuidance for the Orchard Core admin panel, including admin controllers and routes, admin menu registration with AdminNavigationProvider, ocat editor forms grouped in cards, admin pages rendering Model.Editor, the UI text casing standard, TheAdmin layout and menu colors, admin branding, the Navbar shape, the Ctrl+K quick navigation palette and QuickNavigationSource, AdminSettings such as MenuBehavior, ShowBreadcrumb, DisplayQuickNavigation, DisplayTitlesInTopbar and ActionsLayout, the AdminDashboard shape, settings pages, and admin filters and zones. Use this skill when requests mention the Orchard Core admin panel, TheAdmin, admin controllers, admin menu registration, an icon on an admin menu item, the AdminSettings recipe step, quick navigation, navigation menu behavior, the admin URL prefix, UI text casing. Strong matches include OrchardCore.Admin, AdminSettings, AdminPermissions, AdminOptions, AdminAttribute, SiteDisplayDriver, IDisplayManager./orchardcore-admin-dashboardSkill for creating admin dashboard widgets in Orchard Core. Covers the DashboardWidget stereotype, DashboardPart position and sizing, the built-in HtmlDashboardWidget, ContentsMetadata and ContentsTags widget types, custom widget content types via recipe or migration, arranging widgets in Manage Dashboard mode, widget template customization, provisioning widgets with recipes, dashboard permissions, the DashboardBreadcrumbProvider Dashboard ancestor, and the AdminDashboardContent shape used when the feature is disabled. Use this skill when requests mention Orchard Core Admin Dashboard, Create and Configure Dashboard Widgets, Enabling Admin Dashboard, Widget Configuration Properties, dashboard widget recipes, Dashboard breadcrumb, or related implementation, setup, or troubleshooting work. Strong matches include OrchardCore.AdminDashboard, DashboardPart, DashboardBreadcrumbProvider, AccessAdminDashboard, ManageAdminDashboard.Other plugins' skills for the same job