Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy fix #738

Merged
merged 2 commits into from
Jul 24, 2024
Merged

Deploy fix #738

merged 2 commits into from
Jul 24, 2024

Conversation

code4clouds
Copy link
Contributor

@code4clouds code4clouds commented Jul 24, 2024

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.

image

@code4clouds code4clouds added the enhancement A request for new functionality or improvement label Jul 24, 2024
Copy link
Contributor

@santhoshb-msft santhoshb-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed and approving

@santhoshb-msft santhoshb-msft merged commit c810995 into Azure:main Jul 24, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement A request for new functionality or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants