Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Commit

Permalink
[Samples/Templates] Add an informative message with the summary of de…
Browse files Browse the repository at this point in the history
…ployed resources (#2317)

* Add summary message

* Add summary message in C#

* Removed line of more
  • Loading branch information
Batta32 authored and darrenj committed Sep 12, 2019
1 parent 6fe5419 commit 2588dc5
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@ if ($outputs)
# Deploy cognitive models
Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_cognitive_models.ps1')' -name $($name) -luisAuthoringRegion $($luisAuthoringRegion) -luisAuthoringKey $($luisAuthoringKey) -luisAccountName $($outputs.luis.value.accountName) -luisAccountRegion $($outputs.luis.value.region) -luisSubscriptionKey $($outputs.luis.value.key) -resourceGroup $($resourceGroup) -qnaSubscriptionKey '$($qnaSubscriptionKey)' -outFolder '$($projDir)' -languages '$($languages)'"

# Summary
Write-Host "Summary of the deployed resources:" -ForegroundColor Yellow

Write-Host "- Resource Group: $($resourceGroup)" -ForegroundColor Yellow

Write-Host "- Bot Web App: $($outputs.botWebAppName.value)`n" -ForegroundColor Yellow

# Publish bot
Invoke-Expression "& '$(Join-Path $PSScriptRoot 'publish.ps1')' -name $($outputs.botWebAppName.value) -resourceGroup $($resourceGroup) -projFolder '$($projDir)'"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@ if ($outputs)
# Deploy cognitive models
Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_cognitive_models.ps1')' -name $($name) -luisAuthoringRegion $($luisAuthoringRegion) -luisAuthoringKey $($luisAuthoringKey) -luisAccountName $($outputs.luis.value.accountName) -luisAccountRegion $($outputs.luis.value.region) -luisSubscriptionKey $($outputs.luis.value.key) -resourceGroup $($resourceGroup) -qnaSubscriptionKey '$($qnaSubscriptionKey)' -outFolder '$($projDir)' -languages '$($languages)'"

# Summary
Write-Host "Summary of the deployed resources:" -ForegroundColor Yellow

Write-Host "- Resource Group: $($resourceGroup)" -ForegroundColor Yellow

Write-Host "- Bot Web App: $($outputs.botWebAppName.value)`n" -ForegroundColor Yellow

# Publish bot
Invoke-Expression "& '$(Join-Path $PSScriptRoot 'publish.ps1')' -name $($outputs.botWebAppName.value) -resourceGroup $($resourceGroup) -projFolder '$($projDir)'"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@ if ($outputs)
# Deploy cognitive models
Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_cognitive_models.ps1')' -name $($name) -luisAuthoringRegion $($luisAuthoringRegion) -luisAuthoringKey $($luisAuthoringKey) -luisAccountName $($outputs.luis.value.accountName) -luisAccountRegion $($outputs.luis.value.region) -luisSubscriptionKey $($outputs.luis.value.key) -resourceGroup $($resourceGroup) -qnaSubscriptionKey '$($qnaSubscriptionKey)' -outFolder '$($projDir)' -languages '$($languages)'"

# Summary
Write-Host "Summary of the deployed resources:" -ForegroundColor Yellow

Write-Host "- Resource Group: $($resourceGroup)" -ForegroundColor Yellow

Write-Host "- Bot Web App: $($outputs.botWebAppName.value)`n" -ForegroundColor Yellow

# Publish bot
Invoke-Expression "& '$(Join-Path $PSScriptRoot 'publish.ps1')' -name $($outputs.botWebAppName.value) -resourceGroup $($resourceGroup) -projFolder '$($projDir)'"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@ if ($outputs)
# Deploy cognitive models
Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_cognitive_models.ps1')' -name $($name) -luisAuthoringRegion $($luisAuthoringRegion) -luisAuthoringKey $($luisAuthoringKey) -luisAccountName $($outputs.luis.value.accountName) -luisAccountRegion $($outputs.luis.value.region) -luisSubscriptionKey $($outputs.luis.value.key) -resourceGroup $($resourceGroup) -qnaSubscriptionKey '$($qnaSubscriptionKey)' -outFolder '$($projDir)' -languages '$($languages)'"

# Summary
Write-Host "Summary of the deployed resources:" -ForegroundColor Yellow

Write-Host "- Resource Group: $($resourceGroup)" -ForegroundColor Yellow

Write-Host "- Bot Web App: $($outputs.botWebAppName.value)`n" -ForegroundColor Yellow

# Publish bot
Invoke-Expression "& '$(Join-Path $PSScriptRoot 'publish.ps1')' -name $($outputs.botWebAppName.value) -resourceGroup $($resourceGroup) -projFolder '$($projDir)'"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,13 @@ if ($outputs)
# Deploy cognitive models
Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_cognitive_models.ps1')' -name $($name) -luisAuthoringRegion $($luisAuthoringRegion) -luisAuthoringKey $($luisAuthoringKey) -luisAccountName $($outputs.luis.value.accountName) -luisAccountRegion $($outputs.luis.value.region) -luisSubscriptionKey $($outputs.luis.value.key) -resourceGroup $($resourceGroup) -qnaSubscriptionKey '$($qnaSubscriptionKey)' -outFolder '$($projDir)' -languages '$($languages)'"

# Summary
Write-Host "Summary of the deployed resources:" -ForegroundColor Yellow

Write-Host "- Resource Group: $($resourceGroup)" -ForegroundColor Yellow

Write-Host "- Bot Web App: $($outputs.botWebAppName.value)`n" -ForegroundColor Yellow

# Publish bot
Write-Host "+ To publish your bot, run '$(Join-Path $PSScriptRoot 'publish.ps1')' -name $($outputs.botWebAppName.value) -resourceGroup $($outputs.resourceGroupName.value) -projFolder '$($projDir)'"-ForegroundColor Magenta
Write-Host "> Done."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,13 @@ if ($outputs)
# Deploy cognitive models
Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_cognitive_models.ps1')' -name $($name) -luisAuthoringRegion $($luisAuthoringRegion) -luisAuthoringKey $($luisAuthoringKey) -luisAccountName $($outputs.luis.value.accountName) -luisAccountRegion $($outputs.luis.value.region) -luisSubscriptionKey $($outputs.luis.value.key) -resourceGroup $($resourceGroup) -qnaSubscriptionKey '$($qnaSubscriptionKey)' -outFolder '$($projDir)' -languages '$($languages)'"

# Summary
Write-Host "Summary of the deployed resources:" -ForegroundColor Yellow

Write-Host "- Resource Group: $($resourceGroup)" -ForegroundColor Yellow

Write-Host "- Bot Web App: $($outputs.botWebAppName.value)`n" -ForegroundColor Yellow

# Publish bot
Write-Host "+ To publish your bot, run '$(Join-Path $PSScriptRoot 'publish.ps1')' -name $($outputs.botWebAppName.value) -resourceGroup $($outputs.resourceGroupName.value) -projFolder '$($projDir)'" -ForegroundColor Magenta
Write-Host "> Done."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,13 @@ if ($outputs)
# Deploy cognitive models
Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_cognitive_models.ps1')' -name $($name) -luisAuthoringRegion $($luisAuthoringRegion) -luisAuthoringKey $($luisAuthoringKey) -luisAccountName $($outputs.luis.value.accountName) -luisAccountRegion $($outputs.luis.value.region) -luisSubscriptionKey $($outputs.luis.value.key) -resourceGroup $($resourceGroup) -qnaSubscriptionKey '$($qnaSubscriptionKey)' -outFolder '$($projDir)' -languages '$($languages)'"

# Summary
Write-Host "Summary of the deployed resources:" -ForegroundColor Yellow

Write-Host "- Resource Group: $($resourceGroup)" -ForegroundColor Yellow

Write-Host "- Bot Web App: $($outputs.botWebAppName.value)`n" -ForegroundColor Yellow

# Publish bot
Write-Host "+ To publish your bot, run '$(Join-Path $PSScriptRoot 'publish.ps1')' -name $($outputs.botWebAppName.value) -resourceGroup $($outputs.resourceGroupName.value) -projFolder '$($projDir)'"-ForegroundColor Magenta
Write-Host "> Done."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,13 @@ if ($outputs)
# Deploy cognitive models
Invoke-Expression "& '$(Join-Path $PSScriptRoot 'deploy_cognitive_models.ps1')' -name $($name) -luisAuthoringRegion $($luisAuthoringRegion) -luisAuthoringKey $($luisAuthoringKey) -luisAccountName $($outputs.luis.value.accountName) -luisAccountRegion $($outputs.luis.value.region) -luisSubscriptionKey $($outputs.luis.value.key) -resourceGroup $($resourceGroup) -qnaSubscriptionKey '$($qnaSubscriptionKey)' -outFolder '$($projDir)' -languages '$($languages)'"

# Summary
Write-Host "Summary of the deployed resources:" -ForegroundColor Yellow

Write-Host "- Resource Group: $($resourceGroup)" -ForegroundColor Yellow

Write-Host "- Bot Web App: $($outputs.botWebAppName.value)`n" -ForegroundColor Yellow

# Publish bot
Write-Host "+ To publish your bot, run '$(Join-Path $PSScriptRoot 'publish.ps1')' -name $($outputs.botWebAppName.value) -resourceGroup $($outputs.resourceGroupName.value) -projFolder '$($projDir)'" -ForegroundColor Magenta
Write-Host "> Done."
Expand Down

0 comments on commit 2588dc5

Please sign in to comment.