mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-29 06:02:55 +08:00
- Refreshed all 241 library rules with current best practices - Updated Exa search results for all libraries with 2025 content - Fixed --regenerate-all flag logic to properly process all libraries - Removed duplicate astro entry in rules.json (merged tags) - Added missing docker.mdc and vim.mdc files - All rules now include modern patterns and anti-patterns - Updated with framework-specific recommendations for 2025 Technical improvements: - Fixed retry_failed_only logic in generate_mdc_files.py - Improved progress tracking for regeneration scenarios - Ensured proper handling of --refresh-exa flag
31 lines
1.4 KiB
Plaintext
31 lines
1.4 KiB
Plaintext
---
|
|
description: Definitive guidelines for developing, deploying, and operating applications on Azure, focusing on Well-Architected Framework principles, secure coding, and efficient resource management.
|
|
globs: **/*
|
|
---
|
|
# Azure Best Practices
|
|
|
|
This guide provides opinionated, actionable best practices for developing and operating solutions on Azure. It emphasizes the **Azure Well-Architected Framework** (Cost Optimization, Security, Reliability, Performance Efficiency, Operational Excellence) and the **Microsoft Cloud Adoption Framework** (CAF) for governance. Adhere to these standards to build robust, secure, and cost-effective cloud-native applications.
|
|
|
|
## 1. Code Organization and Structure
|
|
|
|
**Always use Infrastructure-as-Code (IaC) for Azure resource deployment.** Prefer modular, reusable components.
|
|
|
|
### 1.1. Modular IaC with Bicep or Terraform
|
|
Break down infrastructure into logical, reusable modules. This improves maintainability, reusability, and enforces consistency.
|
|
|
|
❌ BAD: Monolithic ARM templates or single large Bicep/Terraform files.
|
|
```bicep
|
|
// main.bicep - too many resources, hard to manage
|
|
resource storageAccount 'Microsoft.Storage/storageAccounts@2023-01-01' = {
|
|
// ... all storage config
|
|
}
|
|
resource appServicePlan 'Microsoft.Web/serverfarms@2022-09-01' = {
|
|
// ... all app service plan config
|
|
}
|
|
// ... many more resources
|
|
```
|
|
|
|
✅ GOOD: Modular Bicep (or Terraform modules).
|
|
```bicep
|
|
// main.bicep
|
|
module storage ' |