-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #734 from code4clouds/code4clouds-support-message
Add support messaging
- Loading branch information
Showing
2 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters