A reference example with sample code for developers interested publishing transactable, Software as a-Service offers in the Microsoft commercial marketplace.
This pull request primarily focuses on refactoring the PowerShell scripts Deploy.ps1 and Upgrade.ps1 in the deployment directory. The changes involve repositioning the Param blocks in both scripts to be at the top of the file, right after the initial comments.
Changes in Deploy.ps1:
The Param block, which declares various parameters required for deployment, has been moved to the top of the script. This block was previously located inside an if statement. The parameters include the web application name prefix, resource group for deployment, location, publisher admin users, tenant ID, Azure subscription ID, Active Directory application ID and secret, multi-tenant Active Directory application ID for admin and landing portal, SQL database name, SQL server name, logo URLs, KeyVault name, and a quiet switch. [1][2]
Changes in Upgrade.ps1:
Similar to Deploy.ps1, the Param block in Upgrade.ps1 has been moved to the top of the script. This block declares the web application name prefix and the resource group for deployment as mandatory parameters. [1][2]
These changes enhance the readability and maintainability of the scripts by following the common practice of defining parameters at the beginning of the script.
This pull request primarily focuses on refactoring the PowerShell scripts
Deploy.ps1
andUpgrade.ps1
in thedeployment
directory. The changes involve repositioning theParam
blocks in both scripts to be at the top of the file, right after the initial comments.Changes in
Deploy.ps1
:Param
block, which declares various parameters required for deployment, has been moved to the top of the script. This block was previously located inside anif
statement. The parameters include the web application name prefix, resource group for deployment, location, publisher admin users, tenant ID, Azure subscription ID, Active Directory application ID and secret, multi-tenant Active Directory application ID for admin and landing portal, SQL database name, SQL server name, logo URLs, KeyVault name, and a quiet switch. [1] [2]Changes in
Upgrade.ps1
:Deploy.ps1
, theParam
block inUpgrade.ps1
has been moved to the top of the script. This block declares the web application name prefix and the resource group for deployment as mandatory parameters. [1] [2]These changes enhance the readability and maintainability of the scripts by following the common practice of defining parameters at the beginning of the script.