Catatan
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba masuk atau mengubah direktori.
Akses ke halaman ini memerlukan otorisasi. Anda dapat mencoba mengubah direktori.
Artikel ini memperkenalkan templat penyebaran tumpukan penuh untuk Azure Developer CLI (azd). Gunakan templat ini untuk menyebarkan aplikasi dengan cepat dengan layanan front-end dan back-end di Azure.
Apa itu templat tumpukan penuh?
Templat tumpukan penuh meliputi:
- Front-end: Aplikasi web yang menghadap pengguna (React, Angular, Vue, Blazor, dan sebagainya)
- Back-end: API atau lapisan layanan (Node.js, ASP.NET Core, Python, Java, Go)
- Infrastruktur: File Bicep atau Terraform untuk memprovisikan sumber daya Azure
-
Konfigurasi: File
azure.yamlyang mengikat semuanya bersama-sama
Setiap templat dalam daftar ini berfungsi dengan azd perintah seperti azd init, , azd updan azd deploy.
Cara menggunakan templat ini
Untuk mulai menggunakan salah satu templat yang tercantum, jalankan:
azd init --template <template-repo-name>
azd up
Misalnya, untuk menggunakan templat React + Node.js + MongoDB:
azd init --template todo-nodejs-mongo
azd up
Templat JavaScript/TypeScript
| Template | Ujung depan | Ujung belakang | Database | IaC | AVM | Penyimpanan |
|---|---|---|---|---|---|---|
| React + Node.js + MongoDB | Bereaksi pada App Service | Node.js di App Service | Azure Cosmos DB (MongoDB) | Bisep | - | todo-nodejs-mongo |
| React + Node.js + MongoDB (Aplikasi Kontainer) | Bereaksi pada Aplikasi Kontainer | Node.js di Container Apps | Azure Cosmos DB (MongoDB) | Bisep | ✅ | todo-nodejs-mongo-aca |
| React + Node.js + MongoDB (Terraform) | Bereaksi pada App Service | Node.js di App Service | Azure Cosmos DB (MongoDB) | Terraform | - | todo-nodejs-mongo-terraform |
| React + Node.js + MongoDB (Static Web Apps) | Bereaksi pada Static Web Apps | Node.js di Azure Functions | Azure Cosmos DB (MongoDB) | Bisep | - | todo-nodejs-mongo-swa-func |
| React + Node.js + MongoDB (Kubernetes) | Bereaksi pada AKS | Node.js di AKS | Azure Cosmos DB (MongoDB) | Bisep | - | todo-nodejs-mongo-aks |
Templat .NET
| Template | Ujung depan | Ujung belakang | Database | IaC | AVM | Penyimpanan |
|---|---|---|---|---|---|---|
| React + C# + SQL Database | Bereaksi pada App Service | ASP.NET Core di App Service | Azure SQL Database | Bisep | - | todo-csharp-sql |
| React + C# + Cosmos DB | Bereaksi pada App Service | ASP.NET Core di App Service | Azure Cosmos DB (NoSQL) | Bisep | - | todo-csharp-cosmos-sql |
| React + C# + SQL (Static Web Apps) | Bereaksi pada Static Web Apps | C# di Azure Functions | Azure SQL Database | Bisep | - | todo-csharp-sql-swa-func |
Templat Python
| Template | Ujung depan | Ujung belakang | Database | IaC | AVM | Penyimpanan |
|---|---|---|---|---|---|---|
| React + Python + MongoDB | Bereaksi pada App Service | Python (Flask/FastAPI) di App Service | Azure Cosmos DB (MongoDB) | Bisep | - | todo-python-mongo |
| React + Python + MongoDB (Aplikasi Kontainer) | Bereaksi pada Aplikasi Kontainer | Python di Aplikasi Kontainer | Azure Cosmos DB (MongoDB) | Bisep | ✅ | todo-python-mongo-aca |
| React + Python + MongoDB (Terraform) | Bereaksi pada App Service | Python di App Service | Azure Cosmos DB (MongoDB) | Terraform | - | todo-python-mongo-terraform |
| React + Python + MongoDB (Static Web Apps) | Bereaksi pada Static Web Apps | Python di Azure Functions | Azure Cosmos DB (MongoDB) | Bisep | - | todo-python-mongo-swa-func |
Templat Java
| Template | Ujung depan | Ujung belakang | Database | IaC | AVM | Penyimpanan |
|---|---|---|---|---|---|---|
| React + Java + MongoDB | Bereaksi pada App Service | Java (Spring Boot) di App Service | Azure Cosmos DB (MongoDB) | Bisep | - | todo-java-mongo |
| React + Java + MongoDB (Aplikasi Kontainer) | Bereaksi pada Aplikasi Kontainer | Java di Aplikasi Kontainer | Azure Cosmos DB (MongoDB) | Bisep | ✅ | todo-java-mongo-aca |
Templat yang berkontribusi
Jika Anda memiliki templat tumpukan penuh yang ingin Anda kontribusikan, lihat panduan kontribusi Sampel Azure.
Templat Anda harus:
- Sertakan layanan front-end dan back-end
- Menggunakan Modul Terverifikasi Azure jika memungkinkan
- Ikuti struktur templat azd
- Menyertakan README komprehensif dengan instruksi penyiapan
- Terdaftar di galeri AZD yang mengagumkan