Instructions Bicep Code Best Practices
Infrastructure as Code with Bicep
MCP get_skill({ skillId: "instructions-bicep-code-best-practices-eaead4e7" })Use this skill with your agent
Create a free account and connect via MCP
## Naming Conventions - When writing Bicep code, use lowerCamelCase for all names (variables, parameters, resources) - Use resource type descriptive symbolic names (e.g., 'storageAccount' not 'storageAccountName') - Avoid using 'name' in a symbolic name as it represents the resource, not the resource's name - Avoid distinguishing variables and parameters by the use of suffixes ## Structure and Declaration - Always declare parameters at the top of files with @description decorators - Use latest stable API versions for all resources - Use descriptive @description decorators for all parameters - Specify minimum and maximum character length for naming parameters ## Parameters - Set default values that are safe for test environments (use low-cost pricing tiers) - Use @allowed decorator sparingly to avoid blocking valid deployments - Use parameters for settings that change between deployments ## Variables - Variables automatically infer type from the resolved value - Use variables to contain complex expressions instead of embedding them directly in resource properties ## Resource References - Use symbolic names for resource references instead of reference() or resourceId() functions - Create resource dependencies through symbolic names (resourceA.id) not explicit dependsOn - For accessing properties from other resources, use the 'existing' keyword instead of passing values through outputs ## Resource Names - Use template expressions with uniqueString() to create meaningful and unique resource names - Add prefixes to uniqueString() results since some resources don't allow names starting with numbers ## Child Resources - Avoid excessive nesting of child resources - Use parent property or nesting instead of constructing resource names for child resources ## Security - Never include secrets or keys in outputs - Use resource properties directly in outputs (e.g., storageAccount.properties.primaryEndpoints) ## Documentation - Include helpful // comments within your Bicep files to improve readability
Related Skills
More skills in DevOps & Cloud
1password Skill
1password Skill linked from Juliano Barbosa Claude Code Skills, with the upstream skill instructions available on GitHub.
Actions Manager
GitHub Actions command center -- view workflow runs, read logs, re-run failed jobs, manage workflows, and debug CI failures entirely from the editor. Bypasses the deeply nested, visually-dependent Actions UI that is largely inaccessible to screen readers.
Airunway Aks Setup
Set up AI Runway on AKS — from bare cluster to running model. Covers cluster verification, controller install, GPU assessment, provider setup, and first deployment. WHEN: "setup AI Runway", "onboard AKS cluster", "install AI Runway", "airunway setup", "deploy model to AKS", "GPU inference on AKS", "KAITO setup on AKS", "run LLM on AKS", "vLLM on AKS", "set up model serving on AKS", "AI Runway controller".
Alz Accelerator
Deploy Azure Landing Zones using the ALZ Accelerator with AVM (Azure Verified Modules). Use this skill whenever the user mentions Azure Landing Zones, ALZ, Azure landing zone accelerator, AVM modules for landing zones, deploying management groups, hub-and-spoke networking, Virtual WAN, platform landing zones, or asks about Bicep vs Terraform for Azure infrastructure. Also trigger when the user wants to bootstrap CI/CD for Azure platform deployment, set up management groups hierarchy, or deploy connectivity/identity/management platform subscriptions.
Alz Accelerator Skill
Alz Accelerator Skill linked from Juliano Barbosa Claude Code Skills, with the upstream skill instructions available on GitHub.
Ansible Conventions and Best Practices
Ansible conventions and best practices
Explore Other Categories
Skills from other categories with shared topics
.NET Framework Development
Guidance for working with .NET Framework projects. Includes project structure, C# language version, NuGet management, and best practices.
.NET Framework Upgrade Specialist
Specialized agent for comprehensive .NET framework upgrades with progressive tracking and validation
.NET MAUI
.NET MAUI component and application patterns