Skip to content

Commit

Permalink
Merge pull request #734 from code4clouds/code4clouds-support-message
Browse files Browse the repository at this point in the history
Add support messaging
  • Loading branch information
santhoshb-msft authored Jul 19, 2024
2 parents 90223b6 + 324d1aa commit 226a1e6
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
25 changes: 25 additions & 0 deletions deployment/Deploy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,31 @@
# -Location "<region>" `
# -PublisherAdminUsers "<[email protected]>"

# Define the warning message
$message = @"
The SaaS Accelerator is offered under the MIT License as open source software and is not supported by Microsoft.
If you need help with the accelerator or would like to report defects or feature requests use the Issues feature on the GitHub repository at https://aka.ms/SaaSAccelerator
Do you agree? (Y/N)
"@

# Display the message in yellow
Write-Host $message -ForegroundColor Yellow

# Prompt the user for input
$response = Read-Host

# Check the user's response
if ($response -ne 'Y' -and $response -ne 'y') {
Write-Host "You did not agree. Exiting..." -ForegroundColor Red
exit
}

# Proceed if the user agrees
Write-Host "Thank you for agreeing. Proceeding with the script..." -ForegroundColor Green


Param(
[string][Parameter(Mandatory)]$WebAppNamePrefix, # Prefix used for creating web applications
[string][Parameter()]$ResourceGroupForDeployment, # Name of the resource group to deploy the resources
Expand Down
26 changes: 25 additions & 1 deletion deployment/Upgrade.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,30 @@
# Powershell script to deploy the resources - Customer portal, Publisher portal and the Azure SQL Database
#

# Define the message
$message = @"
The SaaS Accelerator is offered under the MIT License as open source software and is not supported by Microsoft.
If you need help with the accelerator or would like to report defects or feature requests use the Issues feature on the GitHub repository at https://aka.ms/SaaSAccelerator
Do you agree? (Y/N)
"@

# Display the message in yellow
Write-Host $message -ForegroundColor Yellow

# Prompt the user for input
$response = Read-Host

# Check the user's response
if ($response -ne 'Y' -and $response -ne 'y') {
Write-Host "You did not agree. Exiting..." -ForegroundColor Red
exit
}

# Proceed if the user agrees
Write-Host "Thank you for agreeing. Proceeding with the script..." -ForegroundColor Green

Param(
[string][Parameter(Mandatory)]$WebAppNamePrefix, # Prefix used for creating web applications
[string][Parameter(Mandatory)]$ResourceGroupForDeployment # Name of the resource group to deploy the resources
Expand Down Expand Up @@ -124,4 +148,4 @@ Write-host "#### Code deployment complete ####"
Write-host ""
Write-host "#### Warning!!! ####"
Write-host "#### If the upgrade is to >=7.5.0, MeterScheduler feature is pre-enabled and changed to DB config instead of the App Service configuration. Please update the IsMeteredBillingEnabled value accordingly in the Admin portal -> Settings page. ####"
Write-host "#### "
Write-host "#### "

0 comments on commit 226a1e6

Please sign in to comment.