-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge work from Global Hackathon 2023 (#25)
* Changes 0825-0333pm * added KV Secrets loops. * Vishal's Changes 0831-0257 * Prepare .gitignore for customer param files * Fix vnet and web app max lengths * Create sample bicepparam file * Create deployment PS script * Support for App Service Plan and App Insights * Naming cleanup: Create resource group names that match namingConvention Add parameter descriptions Remove storage FQDN hardcoding Update module names Add TODO comments * Add TODO comments * Fixes DBHostName Web App setting is incorrect kalalvishal/azure-redcap-paas #13 * Remove unnecessary default param value * Fixes #20 * Add TODO comment * Add comments * Fixes Network address parameter #24 * Add `vnetAddressSpace` param to sample param file * fixed keyvault role assignment deployment issues * feedback update * Add TODO comments * Fixes Key Vault reference in App Service #15 * Specify MySQL credentials as parameters Create Generate-Password PS module to create a strong password * Fixes #19 * Add support for UAMI and deployment scripts * Set sql_generate_invisible_primary_key OFF using deployment script * Updated WebApp and created a new module for monitoring. * parameterize redcapZipUri, redcapCommunityUserName&Password (#30) * parameterize redcapZipUri, redcapCommunityUserName&Password * store redcap credentials in kv and reference from web app settings * feedback update * Updates performed as per the comments. * Updates performed as per the comments. * Update law.bicep * Conflict fixed. * Use JSON file for deploy to support inline param Update sample param file * Update param descriptions * Create structured and unique deployment names * Update sample param file with ref to param val * github workflow added. * fixed the changes required for issue #37 * fixed the changes required for issue #36 * update Bicep-build.yml based on the comments. * Add clarifying comments to sample param file * Change webApp to app to align with recommendations * Reference MySQL username from KV secret * Fix Bicep linting * Deploy.sh support & fixes (#47) * Author: Seokwon Yang <[email protected]> Date: Fri Sep 15 07:44:52 2023 -0700 deployment enhancement & fixes * feedback upate * Perform root folder cleanup; fixes #39 Rename azDeploySecureSub to main * Update GH action from Vishal --------- Co-authored-by: Sven Aelterman <[email protected]> * Remove location list in deploy.ps1, main.bicep * Update README Add information about deploy.ps1 Remove or comment out outdated text * Exclude `/` from password characters Fixes #57 * Add additional storage-related app settings Fixes #58 * Cleanup * Fixes #55 and #56 * Addresses #63 but needs more work to ensure reliability of Key Vault refs * changed based on the last test. * added manual.md and configuration.md * Update env var names * Remove @secret attribute from KV reference params --------- Co-authored-by: Vishal Kalal <[email protected]> Co-authored-by: kalalvishal <[email protected]> Co-authored-by: Sven Aelterman <[email protected]> Co-authored-by: Seokwon Yang <[email protected]> Co-authored-by: sjyang18 <[email protected]>
- Loading branch information
1 parent
859988e
commit df8ee32
Showing
48 changed files
with
2,650 additions
and
1,387 deletions.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[config] | ||
command = bash deploy.sh | ||
SCM_COMMAND_IDLE_TIMEOUT=600 | ||
command = bash scripts/bash/deploy.sh | ||
SCM_COMMAND_IDLE_TIMEOUT=1200 |
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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
## deploy azDeploySecureSub.bicep | ||
|
||
name: Azure REDCap Deployment | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
id-token: write | ||
contents: read | ||
|
||
env: | ||
azCliVersion: 2.30.0 | ||
environment: 'env-redcap' | ||
region: 'eastus' | ||
|
||
jobs: | ||
# Validate the Bicep templates | ||
validateDeployment: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@main | ||
name: Checkout | ||
|
||
- uses: azure/login@v1 | ||
name: Azure Login | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
||
# Deploy Bicep file | ||
- name: validateTemplates | ||
uses: azure/arm-deploy@v1 | ||
with: | ||
scope: 'subscription' | ||
template: ./main.bicep | ||
deploymentMode: 'Validate' | ||
region: ${{ env.region }} | ||
|
||
- name: planDeployment | ||
uses: azure/arm-deploy@v1 | ||
with: | ||
scope: 'subscription' | ||
template: ./main.bicep | ||
additionalArguments: "--what-if" | ||
region: ${{ env.region }} | ||
|
||
# Deploy the resources | ||
deployResources: | ||
if: ( github.ref == 'refs/heads/main' ) | ||
runs-on: ubuntu-latest | ||
environment: 'nonProduction' ## Replce with your environment name | ||
needs: [ | ||
validateDeployment | ||
] | ||
|
||
steps: | ||
- uses: actions/checkout@main | ||
name: Checkout | ||
|
||
- uses: azure/login@v1 | ||
name: Azure Login | ||
with: | ||
creds: ${{ secrets.AZURE_CREDENTIALS }} | ||
|
||
# Deploy Bicep file | ||
- name: deploy | ||
uses: azure/arm-deploy@v1 | ||
with: | ||
scope: 'subscription' | ||
template: ./main.bicep | ||
region: ${{ env.region }} |
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"dotnetAcquisitionExtension.existingDotnetPath": [ | ||
"/usr/local/dotnet/current/dotnet" | ||
] | ||
], | ||
} |
This file was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.