Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
@azure/provisioning-keyvault provides typed Azure Key Vault resources for authoring pre-deployment infrastructure definitions.
Getting started
import { Stack } from "@azure/provisioning-core";
import { KeyVault, Secret } from "@azure/provisioning-keyvault";
const stack = new Stack("keyvault", {
targetScope: "resourceGroup",
location: "eastus",
});
const vault = new KeyVault(stack, {
properties: {
tenantId: "00000000-0000-0000-0000-000000000000",
sku: { family: "A", name: "standard" },
},
});
new Secret(vault, {
name: "connection-string",
properties: { value: "example" },
});
The generated resource model uses the 2026-02-01 Azure Key Vault management API.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for JavaScript