From ca1ba69d505303b04a09956a3cf34a45c0b75b91 Mon Sep 17 00:00:00 2001 From: Julio Colon Date: Fri, 19 Jul 2024 16:56:55 -0400 Subject: [PATCH 1/2] Update Deploy.ps1 Show a message regarding supportability of the project. --- deployment/Deploy.ps1 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/deployment/Deploy.ps1 b/deployment/Deploy.ps1 index 25441b53..9dade821 100644 --- a/deployment/Deploy.ps1 +++ b/deployment/Deploy.ps1 @@ -10,6 +10,31 @@ # -Location "" ` # -PublisherAdminUsers "" +# 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 From 324d1aa16adb8230806bbba7017766f8e75aa3ef Mon Sep 17 00:00:00 2001 From: Julio Colon Date: Fri, 19 Jul 2024 16:59:33 -0400 Subject: [PATCH 2/2] Update Upgrade.ps1 --- deployment/Upgrade.ps1 | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/deployment/Upgrade.ps1 b/deployment/Upgrade.ps1 index 49971e2f..66008ef4 100644 --- a/deployment/Upgrade.ps1 +++ b/deployment/Upgrade.ps1 @@ -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 @@ -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 "#### " \ No newline at end of file +Write-host "#### "