Getting Started
llms.txt lists every page for an agent
Show the whole prompt
Read https://intentius.io/chant/lexicons/azure/getting-started/.
In a new directory, install `@intentius/chant` and `@intentius/chant-lexicon-azure`, write the `StorageAccountSecure` example from the page in src/main.ts, and run `npx chant build --output dist/template.json` and `npx chant lint src`.
Show me the output and the generated template. Print the `az deployment group validate` and `az deployment group create` commands for me to run; do not run them.
Never deploy to a real cloud account or shared environment (with `chant run`, `chant components` or a platform's own CLI), approve (a pull request review, `chant approve` or `chant run approve`), override a policy denial (`chant approve policy-override`), or merge; never cut or publish a release (`chant release cut --yes` or `chant release publish`), push or delete a `ci/*` tag (`chant ci tick` pushes them), or change the value of an existing flag; never touch `.chant/allowed_signers` or `chant/lifecycle`.Optional: hand this page to your coding agent
Read https://intentius.io/chant/lexicons/azure/getting-started/.In a new directory, install `@intentius/chant` and `@intentius/chant-lexicon-azure`, write the `StorageAccountSecure` example from the page in src/main.ts, and run `npx chant build --output dist/template.json` and `npx chant lint src`.Show me the output and the generated template. Print the `az deployment group validate` and `az deployment group create` commands for me to run; do not run them.Never deploy to a real cloud account or shared environment (with `chant run`, `chant components` or a platform's own CLI), approve (a pull request review, `chant approve` or `chant run approve`), override a policy denial (`chant approve policy-override`), or merge; never cut or publish a release (`chant release cut --yes` or `chant release publish`), push or delete a `ci/*` tag (`chant ci tick` pushes them), or change the value of an existing flag; never touch `.chant/allowed_signers` or `chant/lifecycle`.What is chant?
Section titled “What is chant?”chant compiles TypeScript declarations into ARM template JSON.
Install
Section titled “Install”npm install --save-dev @intentius/chant @intentius/chant-lexicon-azureYour first ARM template
Section titled “Your first ARM template”The fastest path is the StorageAccountSecure composite, one call that returns a configured storage account:
import { StorageAccountSecure } from "@intentius/chant-lexicon-azure";
const { storageAccount } = StorageAccountSecure({ name: "myappstorage01", sku: "Standard_LRS", tags: { environment: "dev" },});
export { storageAccount };Build and deploy:
# Generate ARM template JSONchant build --output dist/template.json
# Validate with Azure CLI (no changes applied)az deployment group validate \ --resource-group my-rg \ --template-file dist/template.json
# Deploy for realaz deployment group create \ --resource-group my-rg \ --template-file dist/template.jsonUsing resource constructors
Section titled “Using resource constructors”You can also call the resource constructors directly:
import { StorageAccount, Azure } from "@intentius/chant-lexicon-azure";
export const storage = new StorageAccount({ name: "mystorageaccount", location: Azure.ResourceGroupLocation, kind: "StorageV2", sku: { name: "Standard_LRS" }, supportsHttpsTrafficOnly: true, minimumTlsVersion: "TLS1_2",});Default tags
Section titled “Default tags”Apply tags to every taggable resource in your project:
import { defaultTags } from "@intentius/chant-lexicon-azure";
export const tags = defaultTags([ { key: "Project", value: "my-app" }, { key: "Environment", value: "dev" }, { key: "ManagedBy", value: "chant" },]);Init templates
Section titled “Init templates”Start a new project with a template:
# Default — basic storage accountchant init --lexicon azure
# Web app — App Service with managed identitychant init --lexicon azure --template web-app
# AKS cluster — Kubernetes with VNet and ACRchant init --lexicon azure --template aks-clusterNext steps
Section titled “Next steps”- Resources — Learn about resource types and fields
- Composites — Use high-level composites
- Lint Rules — Understand security checks