Skip to content

Commit eb6be87

Browse files
enhance deployment guide with appropiate script usage instructions
1 parent 50c38ba commit eb6be87

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

Deployment/resourcedeployment.ps1

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ param (
99
[string]$ResourceGroupName
1010
)
1111

12-
Write-Host "DEBUG: ResourceGroupName parameter received: '$ResourceGroupName'" -ForegroundColor Magenta
13-
1412
function startBanner() {
1513
Write-Host " _____ _ "
1614
Write-Host " | __ \ | | "
@@ -448,14 +446,10 @@ try {
448446
Write-Host "Retrieving the deployment details.....`r`n" -ForegroundColor Yellow
449447

450448
# Map the deployment result to DeploymentResult object from .env file
451-
Write-Host "Mapping the deployment details.....`r`n" -ForegroundColor Yellow
452-
Write-Host "Resource Group Name: $ResourceGroupName" -ForegroundColor Yellow
453449
if ($ResourceGroupName) {
454-
Write-Host "Using provided resource group name: $ResourceGroupName" -ForegroundColor Yellow
455450
$deploymentResult.MapResultAz($ResourceGroupName.Trim())
456451
}
457452
else {
458-
Write-Host "Using azd environment." -ForegroundColor Yellow
459453
$deploymentResult.MapResultAzd()
460454
}
461455

docs/DeploymentGuide.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,21 @@ Open PowerShell, change directory where you code cloned, then run the deploy scr
164164
```
165165
cd .\Deployment\
166166
```
167+
168+
#### Choose the appropriate command based on your deployment method:
169+
170+
**If you deployed using `azd up` command:**
167171
```
168172
.\resourcedeployment.ps1
169173
```
170174
175+
**If you deployed using custom templates, ARM/Bicep deployments, or `az deployment group` commands:**
176+
```
177+
.\resourcedeployment.ps1 -ResourceGroupName "<your-resource-group-name>"
178+
```
179+
180+
> **Note:** Replace `<your-resource-group-name>` with the actual name of the resource group containing your deployed Azure resources.
181+
171182
If you run into issue with PowerShell script file not being digitally signed, you can execute below command:
172183
173184
```

0 commit comments

Comments
 (0)