Skip to content

Commit 6480ba9

Browse files
commit
1 parent 604ff86 commit 6480ba9

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

infra/scripts/post-provision/post_deploy.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,16 @@ if ($script:hasErrors) {
899899
$frontendHost = $(azd env get-value webSiteDefaultHostname 2>$null)
900900
if ($frontendHost) { Write-Host "Frontend: https://$frontendHost" }
901901
Write-Host ""
902+
Write-Host "To re-run ONLY the post-deployment step (without redeploying infra/app):" -ForegroundColor Yellow
903+
Write-Host " azd hooks run postdeploy" -ForegroundColor Yellow
904+
Write-Host ""
905+
Write-Host "Or run the script directly:" -ForegroundColor Yellow
906+
Write-Host " PowerShell : pwsh ./infra/scripts/post-provision/post_deploy.ps1" -ForegroundColor Yellow
907+
Write-Host " Bash : bash ./infra/scripts/post-provision/post_deploy.sh" -ForegroundColor Yellow
908+
Write-Host ""
909+
Write-Host "Common fixes before retry:" -ForegroundColor Yellow
910+
Write-Host " - Ensure 'az login' / 'azd auth login' are current" -ForegroundColor Yellow
911+
Write-Host ""
902912
exit 1
903913
} else {
904914
Write-Host ""

infra/scripts/post-provision/post_deploy.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,16 @@ main() {
883883
echo "Frontend: https://$frontend_host"
884884
fi
885885
echo ""
886+
echo "To re-run ONLY the post-deployment step (without redeploying infra/app):"
887+
echo " azd hooks run postdeploy"
888+
echo ""
889+
echo "Or run the script directly:"
890+
echo " Bash : bash ./infra/scripts/post-provision/post_deploy.sh"
891+
echo " PowerShell : pwsh ./infra/scripts/post-provision/post_deploy.ps1"
892+
echo ""
893+
echo "Common fixes before retry:"
894+
echo " - Ensure 'az login' / 'azd auth login' are current"
895+
echo ""
886896
exit 1
887897
else
888898
echo "========================================"

0 commit comments

Comments
 (0)