diff --git a/content-gen/docs/DEPLOYMENT.md b/content-gen/docs/DEPLOYMENT.md index 7100cf40..2c4f2561 100644 --- a/content-gen/docs/DEPLOYMENT.md +++ b/content-gen/docs/DEPLOYMENT.md @@ -161,9 +161,32 @@ Depending on your subscription quota and capacity, you can adjust quota settings +### Deployment Options + +The [`infra`](../infra) folder of the Content Generation Solution Accelerator contains the [`main.bicep`](../infra/main.bicep) Bicep script, which defines all Azure infrastructure components for this solution. + +By default, the `azd up` command uses the [`main.parameters.json`](../infra/main.parameters.json) file to deploy the solution. This file is pre-configured for a **sandbox environment**. + +For **production deployments**, the repository also provides [`main.waf.parameters.json`](../infra/main.waf.parameters.json), which applies a [Well-Architected Framework (WAF) aligned](https://learn.microsoft.com/en-us/azure/well-architected/) configuration. This can be used for Production scenarios. + +**How to choose your deployment configuration:** + +* **To use sandbox/dev environment** — Use the default `main.parameters.json` file. + +* **To use production configuration:** + +Before running `azd up`, copy the contents from the production configuration file to your main parameters file: + +1. Navigate to the `infra` folder in your project. +2. Open `main.waf.parameters.json` in a text editor (like Notepad, VS Code, etc.). +3. Select all content (Ctrl+A) and copy it (Ctrl+C). +4. Open `main.parameters.json` in the same text editor. +5. Select all existing content (Ctrl+A) and paste the copied content (Ctrl+V). +6. Save the file (Ctrl+S). + ### Deploying with AZD -Once you've opened the project in [Codespaces](#github-codespaces), [Dev Containers](#vs-code-dev-containers), or [locally](#local-environment), you can deploy it to Azure by following the steps in the [AZD Deployment Guide](AZD_DEPLOYMENT.md) +Once you've opened the project in [Codespaces](#github-codespaces), [Dev Containers](#vs-code-dev-containers), or [locally](#local-environment), you can deploy it to Azure by following the steps in the [AZD Deployment Guide](AZD_DEPLOYMENT.md). ## Post Deployment Steps diff --git a/content-gen/infra/main.parameters.json b/content-gen/infra/main.parameters.json index 051635a5..05c29445 100644 --- a/content-gen/infra/main.parameters.json +++ b/content-gen/infra/main.parameters.json @@ -49,18 +49,6 @@ }, "imageTag": { "value": "${imageTag=latest}" - }, - "enablePrivateNetworking": { - "value": "${enablePrivateNetworking}" - }, - "enableMonitoring": { - "value": "${enableMonitoring}" - }, - "enableScalability": { - "value": "${enableScalability}" - }, - "enableRedundancy": { - "value": "${enableRedundancy}" } } } diff --git a/content-gen/infra/main.waf.parameters.json b/content-gen/infra/main.waf.parameters.json new file mode 100644 index 00000000..fc60bdf8 --- /dev/null +++ b/content-gen/infra/main.waf.parameters.json @@ -0,0 +1,69 @@ +{ + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "solutionName": { + "value": "${AZURE_ENV_NAME}" + }, + "location": { + "value": "${AZURE_LOCATION}" + }, + "gptModelName": { + "value": "${gptModelName}" + }, + "gptModelVersion": { + "value": "${gptModelVersion}" + }, + "gptModelDeploymentType": { + "value": "${gptModelDeploymentType}" + }, + "gptModelCapacity": { + "value": "${gptModelCapacity}" + }, + "imageModelChoice": { + "value": "${imageModelChoice}" + }, + "dalleModelCapacity": { + "value": "${dalleModelCapacity}" + }, + "embeddingModel": { + "value": "${embeddingModel}" + }, + "embeddingDeploymentCapacity": { + "value": "${embeddingDeploymentCapacity}" + }, + "azureOpenaiAPIVersion": { + "value": "${azureOpenaiAPIVersion}" + }, + "azureAiServiceLocation": { + "value": "${azureAiServiceLocation}" + }, + "existingLogAnalyticsWorkspaceId": { + "value": "${existingLogAnalyticsWorkspaceId}" + }, + "azureExistingAIProjectResourceId": { + "value": "${azureExistingAIProjectResourceId}" + }, + "acrName": { + "value": "${acrName}" + }, + "imageTag": { + "value": "${imageTag=latest}" + }, + "enableMonitoring": { + "value": true + }, + "enablePrivateNetworking": { + "value": true + }, + "enableScalability": { + "value": true + }, + "virtualMachineAdminUsername": { + "value": "${AZURE_ENV_VM_ADMIN_USERNAME}" + }, + "virtualMachineAdminPassword": { + "value": "${AZURE_ENV_VM_ADMIN_PASSWORD}" + } + } +}