Skip to content

Commit 195deb5

Browse files
Enhance AVM Post Deployment Guide with command options for different deployment methods
1 parent d5f3eed commit 195deb5

File tree

6 files changed

+19
-3
lines changed

6 files changed

+19
-3
lines changed

Deployment/resourcedeployment.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,11 @@ class DeploymentResult {
349349
[void]MapResultAz([string]$resourceGroupName) {
350350
# Get deployment outputs
351351
$deploymentName=$(az group show --name "$resourceGroupName" --query "tags.DeploymentName" -o tsv)
352+
if (!$deploymentName) {
353+
Write-Error "Deployment name not found in the resource group tags."
354+
exit 1
355+
}
356+
352357
$deploymentOutputs=$(az deployment group show --resource-group "$resourceGroupName" --name "$deploymentName" --query "properties.outputs" -o json | ConvertFrom-Json)
353358

354359
$this.TenantId = $deploymentOutputs.azurE_TENANT_ID.value

docs/AVMPostDeploymentGuide.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,21 @@ The post-deployment process is automated through a single PowerShell script that
8383
cd .\Deployment\
8484
```
8585

86-
2. Run the post-deployment script with your resource group name:
86+
2. **Choose the appropriate command based on your deployment method:**
87+
88+
**If you deployed using custom templates, ARM/Bicep deployments, or `az deployment group` commands:**
8789
```powershell
8890
.\resourcedeployment.ps1 -ResourceGroupName "<your-resource-group-name>"
8991
```
9092

91-
> **Note**: Replace `<your-resource-group-name>` with the actual name of the resource group containing your AVM-deployed resources.
93+
**If you deployed using `azd up` command:**
94+
```powershell
95+
.\resourcedeployment.ps1
96+
```
97+
98+
> **Note**: Replace `<your-resource-group-name>` with the actual name of the resource group containing your deployed Azure resources.
99+
100+
> **💡 Tip**: Since this guide is for AVM deployments, you'll most likely use the first command with the `-ResourceGroupName` parameter.
92101
93102
3. **If you encounter execution policy issues**, use this alternative command:
94103
```powershell
@@ -132,7 +141,7 @@ Upon successful completion, you'll see a success message with important informat
132141

133142
| Model Name | Recommended TPM | Minimum TPM |
134143
|------------------------|----------------|-------------|
135-
| GPT-4o-mini | 100K TPM | 10K TPM |
144+
| gpt-4.1-mini | 100K TPM | 10K TPM |
136145
| text-embedding-3-large | 200K TPM | 50K TPM |
137146

138147
> **⚠️ Warning**: Insufficient quota will cause failures during document upload and processing. Ensure adequate capacity before proceeding.

docs/DeploymentGuide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ cd .\Deployment\
179179
180180
> **Note:** Replace `<your-resource-group-name>` with the actual name of the resource group containing your deployed Azure resources.
181181
182+
> **💡 Tip**: Since this guide is for azd deployment, you'll typically use the first command without the `-ResourceGroupName` parameter.
183+
182184
If you run into issue with PowerShell script file not being digitally signed, you can execute below command:
183185
184186
```
14.8 KB
Loading
-12.2 KB
Loading
-172 Bytes
Loading

0 commit comments

Comments
 (0)