Skip to content

Commit 090821c

Browse files
add deployment instructions for local changes
1 parent 93c82af commit 090821c

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

docs/AZD_DEPLOYMENT.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,8 +309,39 @@ When `enablePrivateNetworking` is enabled:
309309
└─────────────────────────────────────────────────────────────────┘
310310
```
311311

312+
## Deploy Local Changes
313+
314+
If you've made local modifications to the code and want to deploy them to Azure, follow these steps to swap the configuration files:
315+
316+
> **Note**: To set up and run the application locally for development, see the [Local Development Guide](LocalDevelopmentSetup.md).
317+
318+
### Step 1: Rename Azure Configuration Files
319+
320+
In the root directory:
321+
322+
1. Rename `azure.yaml` to `azure_custom2.yaml`
323+
2. Rename `azure_custom.yaml` to `azure.yaml`
324+
325+
### Step 2: Rename Infrastructure Files
326+
327+
In the `infra` directory:
328+
329+
1. Rename `main.bicep` to `main_custom2.bicep`
330+
2. Rename `main_custom.bicep` to `main.bicep`
331+
332+
### Step 3: Deploy Changes
333+
334+
Run the deployment command:
335+
336+
```bash
337+
azd up
338+
```
339+
340+
> **Note**: These custom files are configured to deploy your local code changes instead of pulling from the GitHub repository.
341+
312342
## Related Documentation
313343

314344
- [Deployment Guide](DEPLOYMENT.md)
345+
- [Local Development Guide](LocalDevelopmentSetup.md)
315346
- [Image Generation Configuration](IMAGE_GENERATION.md)
316347
- [Azure Developer CLI Documentation](https://learn.microsoft.com/azure/developer/azure-developer-cli/)
File renamed without changes.

0 commit comments

Comments
 (0)