Skip to content

Commit c810995

Browse files
authoredJul 24, 2024
Merge pull request #738 from code4clouds/Deploy-fix
Deploy fix
2 parents 3f37d01 + 7031ed4 commit c810995

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed
 

‎deployment/Deploy.ps1

+19-20
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,25 @@
1010
# -Location "<region>" `
1111
# -PublisherAdminUsers "<your@email.address>"
1212

13+
Param(
14+
[string][Parameter(Mandatory)]$WebAppNamePrefix, # Prefix used for creating web applications
15+
[string][Parameter()]$ResourceGroupForDeployment, # Name of the resource group to deploy the resources
16+
[string][Parameter(Mandatory)]$Location, # Location of the resource group
17+
[string][Parameter(Mandatory)]$PublisherAdminUsers, # Provide a list of email addresses (as comma-separated-values) that should be granted access to the Publisher Portal
18+
[string][Parameter()]$TenantID, # The value should match the value provided for Active Directory TenantID in the Technical Configuration of the Transactable Offer in Partner Center
19+
[string][Parameter()]$AzureSubscriptionID, # Subscription where the resources be deployed
20+
[string][Parameter()]$ADApplicationID, # The value should match the value provided for Active Directory Application ID in the Technical Configuration of the Transactable Offer in Partner Center
21+
[string][Parameter()]$ADApplicationSecret, # Secret key of the AD Application
22+
[string][Parameter()]$ADMTApplicationIDAdmin, # Multi-Tenant Active Directory Application ID for the Admin Portal
23+
[string][Parameter()]$ADMTApplicationIDPortal, #Multi-Tenant Active Directory Application ID for the Landing Portal
24+
[string][Parameter()]$SQLDatabaseName, # Name of the database (Defaults to AMPSaaSDB)
25+
[string][Parameter()]$SQLServerName, # Name of the database server (without database.windows.net)
26+
[string][Parameter()]$LogoURLpng, # URL for Publisher .png logo
27+
[string][Parameter()]$LogoURLico, # URL for Publisher .ico logo
28+
[string][Parameter()]$KeyVault, # Name of KeyVault
29+
[switch][Parameter()]$Quiet #if set, only show error / warning output from script commands
30+
)
31+
1332
# Define the warning message
1433
$message = @"
1534
The SaaS Accelerator is offered under the MIT License as open source software and is not supported by Microsoft.
@@ -33,26 +52,6 @@ if ($response -ne 'Y' -and $response -ne 'y') {
3352

3453
# Proceed if the user agrees
3554
Write-Host "Thank you for agreeing. Proceeding with the script..." -ForegroundColor Green
36-
37-
38-
Param(
39-
[string][Parameter(Mandatory)]$WebAppNamePrefix, # Prefix used for creating web applications
40-
[string][Parameter()]$ResourceGroupForDeployment, # Name of the resource group to deploy the resources
41-
[string][Parameter(Mandatory)]$Location, # Location of the resource group
42-
[string][Parameter(Mandatory)]$PublisherAdminUsers, # Provide a list of email addresses (as comma-separated-values) that should be granted access to the Publisher Portal
43-
[string][Parameter()]$TenantID, # The value should match the value provided for Active Directory TenantID in the Technical Configuration of the Transactable Offer in Partner Center
44-
[string][Parameter()]$AzureSubscriptionID, # Subscription where the resources be deployed
45-
[string][Parameter()]$ADApplicationID, # The value should match the value provided for Active Directory Application ID in the Technical Configuration of the Transactable Offer in Partner Center
46-
[string][Parameter()]$ADApplicationSecret, # Secret key of the AD Application
47-
[string][Parameter()]$ADMTApplicationIDAdmin, # Multi-Tenant Active Directory Application ID for the Admin Portal
48-
[string][Parameter()]$ADMTApplicationIDPortal, #Multi-Tenant Active Directory Application ID for the Landing Portal
49-
[string][Parameter()]$SQLDatabaseName, # Name of the database (Defaults to AMPSaaSDB)
50-
[string][Parameter()]$SQLServerName, # Name of the database server (without database.windows.net)
51-
[string][Parameter()]$LogoURLpng, # URL for Publisher .png logo
52-
[string][Parameter()]$LogoURLico, # URL for Publisher .ico logo
53-
[string][Parameter()]$KeyVault, # Name of KeyVault
54-
[switch][Parameter()]$Quiet #if set, only show error / warning output from script commands
55-
)
5655

5756
# Make sure to install Az Module before running this script
5857
# Install-Module Az

‎deployment/Upgrade.ps1

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
# Powershell script to deploy the resources - Customer portal, Publisher portal and the Azure SQL Database
66
#
77

8+
Param(
9+
[string][Parameter(Mandatory)]$WebAppNamePrefix, # Prefix used for creating web applications
10+
[string][Parameter(Mandatory)]$ResourceGroupForDeployment # Name of the resource group to deploy the resources
11+
)
12+
813
# Define the message
914
$message = @"
1015
The SaaS Accelerator is offered under the MIT License as open source software and is not supported by Microsoft.
@@ -29,11 +34,6 @@ if ($response -ne 'Y' -and $response -ne 'y') {
2934
# Proceed if the user agrees
3035
Write-Host "Thank you for agreeing. Proceeding with the script..." -ForegroundColor Green
3136

32-
Param(
33-
[string][Parameter(Mandatory)]$WebAppNamePrefix, # Prefix used for creating web applications
34-
[string][Parameter(Mandatory)]$ResourceGroupForDeployment # Name of the resource group to deploy the resources
35-
)
36-
3737
Function String-Between
3838
{
3939
[CmdletBinding()]

0 commit comments

Comments
 (0)
Please sign in to comment.