You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **NOTE:** The first time you run the solution, it may take a while to download the docker images, create the DB, and seed the data.
182
+
> [!NOTE]
183
+
> The first time you run the solution, it may take a while to download the docker images, create the DB, and seed the data.
184
+
185
+
3. Open https://localhost:7255/scalar/v1 in your browser to see it running ️🏃♂️
186
+
187
+
## Deploying to Azure
188
+
189
+
The template can be deployed to Azure via
190
+
the [Azure Developer CLI (AZD)](https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/install-azd?tabs=winget-windows,brew-mac,script-linux&pivots=os-mac).
191
+
This will setup the following:
192
+
193
+
- Azure App Services: API + MigrationService
194
+
- Azure SQL Server + Database: Data storage
195
+
- Application Insights + Log Analytics: For monitoring and logging
196
+
- Managed Identities: For secure access to Azure resources
197
+
- Azure Container Registry: For storing Docker images
198
+
199
+
### Steps to Deploy
200
+
201
+
1. Authenticate with Azure
202
+
203
+
```bash
204
+
azd auth login
205
+
```
206
+
207
+
2. Initialize AZD for the project
208
+
209
+
```bash
210
+
azd init
211
+
```
212
+
213
+
3. Update environment variables
214
+
215
+
```bash
216
+
azd env set ASPNETCORE_ENVIRONMENT Development
217
+
```
218
+
219
+
4. Deploy to Azure
220
+
221
+
```bash
222
+
azd up
223
+
```
180
224
181
-
4. Open https://localhost:7255/scalar/v1 in your browser to see it running ️🏃♂️
225
+
> [!NOTE]
226
+
> `azd up` combines `azd provision` and `azd deploy` commands to create the resources and deploy the application. If running this from a CI/CD
227
+
> pipeline, you can use `azd provision` and `azd deploy` separately in the appropriate places.
182
228
183
229
## 🚀 Publishing Template
184
230
@@ -191,7 +237,8 @@ Template will be published to NuGet.org when changes are made to `CleanArchitect
191
237
3. `package` GitHub Action will run and publish the new version to NuGet.org
192
238
4. Create a GitHub release to document the changes
193
239
194
-
> **NOTE:** We are now using CalVer for versioning. The version number should be in the format `YYYY.M.D` (e.g. `2024.2.12`).
240
+
> [!NOTE]
241
+
> We are now using CalVer for versioning. The version number should be in the format `YYYY.M.D` (e.g. `2024.2.12`).
195
242
196
243
<!-- TODO Issue #99: Getting Started using the dotnet new template -->
@@ -25,6 +24,7 @@ public static IResourceBuilder<SqlServerDatabaseResource> WithDropDatabaseComman
25
24
returnCommandResults.Success();
26
25
},
27
26
null);// Intentionally using 'null' for the command state resolver as this command does not require health status checks. Downstream code is expected to handle 'null' appropriately.
0 commit comments