Skip to content

Update fork #3

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

Merged
merged 85 commits into from
Feb 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
da002ae
Initializes slsart and creates temporary performance test
Feb 3, 2021
adb23d9
merges upstream development
Feb 3, 2021
ce97d16
Merge pull request #3 from North-Seattle-College/development
farhadbahrehmandhenry Feb 3, 2021
9e60018
Merge branch 'development' of https://github.com/North-Seattle-Colleg…
farhadbahrehmandhenry Feb 3, 2021
647c4b3
Merge pull request #4 from North-Seattle-College/development
farhadbahrehmandhenry Feb 3, 2021
ff31043
Merge branch 'development' of https://github.com/North-Seattle-Colleg…
farhadbahrehmandhenry Feb 3, 2021
8511194
updates gitignore
Feb 5, 2021
305a2fd
Merge remote-tracking branch 'nsc/development' into SG-artillery-perf
Feb 5, 2021
59a72b6
Changes test to hit temporary endpoint
Feb 5, 2021
263018e
Merge pull request #5 from North-Seattle-College/development
farhadbahrehmandhenry Feb 5, 2021
6f1105f
Merge branch 'development' of https://github.com/ahmadafrasiyab/ad440…
farhadbahrehmandhenry Feb 5, 2021
2a83969
auto deploy
farhadbahrehmandhenry Feb 6, 2021
18d75c6
auto deploy
farhadbahrehmandhenry Feb 6, 2021
fe43704
Merge branch 'development' into feature/team1-issue133-github-actions…
farhadbahrehmandhenry Feb 6, 2021
119bddb
Merge pull request #6 from farhadbahrehmandhenry/feature/team1-issue1…
farhadbahrehmandhenry Feb 6, 2021
512118c
azure
farhadbahrehmandhenry Feb 6, 2021
63bb226
Merge pull request #7 from North-Seattle-College/development
farhadbahrehmandhenry Feb 6, 2021
7d0357f
yaml file
farhadbahrehmandhenry Feb 6, 2021
0304215
yaml file
farhadbahrehmandhenry Feb 6, 2021
ac8575e
yaml file
farhadbahrehmandhenry Feb 6, 2021
d5a0c8d
yaml file
farhadbahrehmandhenry Feb 6, 2021
6aaa796
yaml file
farhadbahrehmandhenry Feb 6, 2021
de90342
app file
farhadbahrehmandhenry Feb 6, 2021
21b7e27
app file
farhadbahrehmandhenry Feb 6, 2021
f9629e0
app file
farhadbahrehmandhenry Feb 6, 2021
776e1e7
app file
farhadbahrehmandhenry Feb 6, 2021
7821231
app file
farhadbahrehmandhenry Feb 7, 2021
7b51ae0
app file
farhadbahrehmandhenry Feb 7, 2021
40d41a2
app file
farhadbahrehmandhenry Feb 7, 2021
70b65a4
app file
farhadbahrehmandhenry Feb 7, 2021
33faa44
app file
farhadbahrehmandhenry Feb 7, 2021
73f6e77
app file
farhadbahrehmandhenry Feb 7, 2021
7ced44a
app file
farhadbahrehmandhenry Feb 7, 2021
30b85fc
app file
farhadbahrehmandhenry Feb 7, 2021
f619ddd
app file
farhadbahrehmandhenry Feb 7, 2021
5d279b7
app file
farhadbahrehmandhenry Feb 7, 2021
207d4cf
app file
farhadbahrehmandhenry Feb 7, 2021
2f94912
app file
farhadbahrehmandhenry Feb 7, 2021
53f012a
Merge pull request #8 from North-Seattle-College/development
farhadbahrehmandhenry Feb 7, 2021
ee601e6
app file
farhadbahrehmandhenry Feb 7, 2021
23025be
app file
farhadbahrehmandhenry Feb 7, 2021
f6ed8c5
Merge pull request #9 from farhadbahrehmandhenry/feature/issue133-dep…
farhadbahrehmandhenry Feb 7, 2021
3b61fb1
app file
farhadbahrehmandhenry Feb 7, 2021
9e5c8d2
app file
farhadbahrehmandhenry Feb 7, 2021
b8e6e25
app file
farhadbahrehmandhenry Feb 7, 2021
e225882
app file
farhadbahrehmandhenry Feb 7, 2021
d970d43
app file
farhadbahrehmandhenry Feb 7, 2021
765105f
app file
farhadbahrehmandhenry Feb 7, 2021
067e8fb
app file
farhadbahrehmandhenry Feb 7, 2021
09da81b
Merge pull request #19 from North-Seattle-College/development
theKunte Feb 7, 2021
f53ab20
app file
farhadbahrehmandhenry Feb 7, 2021
f961f44
app file
farhadbahrehmandhenry Feb 7, 2021
f885421
app file
farhadbahrehmandhenry Feb 7, 2021
ac2395d
app file
farhadbahrehmandhenry Feb 7, 2021
309e3c8
app file
farhadbahrehmandhenry Feb 7, 2021
cd597fe
app file
farhadbahrehmandhenry Feb 7, 2021
604711b
app file
farhadbahrehmandhenry Feb 7, 2021
223bb54
app file
farhadbahrehmandhenry Feb 7, 2021
d5f92ee
Merge pull request #10 from North-Seattle-College/development
farhadbahrehmandhenry Feb 7, 2021
4c9795f
Merge branch 'development' into feature/issue133-team1-deploy-web-app
farhadbahrehmandhenry Feb 7, 2021
11c4bc9
auto deploy
farhadbahrehmandhenry Feb 7, 2021
7c383c5
Merge pull request #20 from North-Seattle-College/development
theKunte Feb 8, 2021
cded666
test commit
David-Prism Feb 9, 2021
da28d84
updated the script to create functionapp resources
theKunte Feb 10, 2021
b559001
init commit for a GitHub action to deploy functions to the new functi…
David-Prism Feb 11, 2021
2e5a314
bug fix for deploying functions to new function app
David-Prism Feb 11, 2021
ab95aeb
clean up the code
farhadbahrehmandhenry Feb 12, 2021
62bb56a
clean up the code
farhadbahrehmandhenry Feb 12, 2021
01370ba
clean up the code
farhadbahrehmandhenry Feb 12, 2021
07946fb
update functions urls
farhadbahrehmandhenry Feb 12, 2021
808308f
added interactive tags
nataliagourova Feb 12, 2021
458779f
added server name input
nataliagourova Feb 13, 2021
dde9b38
added script to create storage and db resources
nataliagourova Feb 14, 2021
ab09c94
added storage name as input, since Azure does not permit duplicate sq…
nataliagourova Feb 14, 2021
f21baa8
clean up to only keep server and db
nataliagourova Feb 14, 2021
9d10a7e
updated function resource deployment script
theKunte Feb 14, 2021
ed22827
ARM Template to create a key vault
jak-ashuraliev Feb 16, 2021
bd4d80a
Merge pull request #137 from farhadbahrehmandhenry/feature/issue133-t…
farhadbahrehmandhenry Feb 16, 2021
da9817b
Merge pull request #156 from nataliagourova/thirdSprint
nataliagourova Feb 17, 2021
7b35fb8
Merge pull request #142 from theKunte/team1-issue-131-redeployResourc…
theKunte Feb 17, 2021
d3b3d19
renamed deploy-functions file to deploy-apis
David-Prism Feb 17, 2021
57e399a
Merge pull request #139 from David-Prism/git-hub-actions
David-Prism Feb 17, 2021
4b0c4e0
Merge pull request #158 from theKunte/feature/team1-issue130-key-vaul…
jak-ashuraliev Feb 17, 2021
c678ab1
merges upstream development
Feb 17, 2021
59a0451
Merge pull request #129 from gillilands19/SG-artillery-perf
gillilands19 Feb 17, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
27 changes: 0 additions & 27 deletions .github/workflows/AzureDeploy.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ jobs:
with:
app-name: ${{ secrets.AZURE_FUNCTIONAPP_NAME }} # this is the name of the function established in the env portion
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }} # this is the path established in the env portion
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }} # this is the secret we've created on GitHub that contains the details necessary to push to Azure
publish-profile: ${{ secrets.AZURE_FUNCTIONAPP_PUBLISH_PROFILE }} # this is the secret we've created on GitHub that contains the details necessary to push to Azure

# This file was used as reference for deployment of the function app
# (getting values for app-name and publish-profile for the function app)
# Feb-10-2021
31 changes: 31 additions & 0 deletions .github/workflows/deploy-ui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# deploy to blob storage =>
name: Build and deploy the app to the Azure Blob Storage

on:
push:
branches:
- development
env:
AZURE_WEBAPP_PACKAGE_PATH: ui/react-ui
NODE_VERSION: '10.x'

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Set up Node.js version
uses: actions/setup-node@v1
with:
node-version: ${{env.NODE_VERSION}}
- name: npm install and build
run: |
cd ${{env.AZURE_WEBAPP_PACKAGE_PATH}}
npm install
npm run build
- name: Upload To Azure Blob Storage
uses: bacongobbler/[email protected]
with:
source_dir: ${{env.AZURE_WEBAPP_PACKAGE_PATH}}/build
container_name: $web
connection_string: ${{secrets.BLOB_STORAGE_CONNECTION_STRING}}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,6 @@ DS_Store

# ignore .vscode
.vscode/

package-lock.json

192 changes: 119 additions & 73 deletions Automation/SQL/azureDeploy.json
Original file line number Diff line number Diff line change
@@ -1,90 +1,136 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"serverName": {
"type": "string",
"defaultValue": "[concat('nsc-sqlsrv-', resourceGroup().location, '-acbc')]",
"metadata": {
"description": "The name of the SQL logical server."
}
},
"location": {
"type": "string",
"defaultValue": "westus2",
"metadata": {
"description": "Location for all resources."
}
},
"administratorLogin": {
"type": "string",
"metadata": {
"description": "The administrator username of the SQL logical server."
}
},
"administratorLoginPassword": {
"type": "securestring",
"metadata": {
"description": "The administrator password of the SQL logical server."
}
},
"allowAzureIPs": {
"defaultValue": true,
"type": "bool",
"metadata": {
"description": "Allow Azure services to access server."
}
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Sql/servers",
"apiVersion": "2020-02-02-preview",
"name": "[parameters('serverName')]",
"location": "[parameters('location')]",
"properties": {
"administratorLogin": "[parameters('administratorLogin')]",
"administratorLoginPassword": "[parameters('administratorLoginPassword')]",
"version": "12.0",
"publicNetworkAccess": "Enabled"
}
},
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"serverName": {
"type": "string",
"defaultValue": "[concat('nsc-sqlsrv-dev-', resourceGroup().location, '-thursday')]",
"metadata": {
"description": "The name of the SQL logical server."
}
},
"location": {
"type": "string",
"defaultValue": "westus2",
"metadata": {
"description": "Location for all resources."
}
},
"administratorLogin": {
"type": "string",
"metadata": {
"description": "The administrator username of the SQL logical server."
}
},
"administratorLoginPassword": {
"type": "securestring",
"metadata": {
"description": "The administrator password of the SQL logical server."
}
},
"allowAzureIPs": {
"defaultValue": true,
"type": "bool",
"metadata": {
"description": "Allow Azure services to access server."
}
},
"sqlDBName": {
"type": "string",
"defaultValue": "[concat('nsc-sqldb-dev-', resourceGroup().location, '-thursday')]",
"metadata": {
"description": "The name of the SQL Database."
}
},
"createdBy": {
"type": "string",
"metadata": {
"description": "Indicate who is creating the resource."
}
},
"creatorsEmail": {
"type": "string",
"metadata": {
"description": "Indicate creator's email address."
}
},
"resourceTags": {
"type": "object",
"defaultValue": {
"NCSYear": 2021,
"NSCCohort": "Thursday",
"Owner": "[parameters('createdBy')]",
"OwnerEmail": "[parameters('creatorsEmail')]"
}
}
},
"variables": {},
"resources": [
{
"type": "Microsoft.Sql/servers/auditingPolicies",
"apiVersion": "2014-04-01",
"name": "[concat(parameters('serverName'), '/Default')]",
"type": "Microsoft.Sql/servers",
"apiVersion": "2020-02-02-preview",
"name": "[parameters('serverName')]",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', parameters('serverName'))]"
],
"tags": "[parameters('resourceTags')]",
"properties": {
"auditingState": "Disabled"
"administratorLogin": "[parameters('administratorLogin')]",
"administratorLoginPassword": "[parameters('administratorLoginPassword')]",
"version": "12.0",
"publicNetworkAccess": "Enabled"
}
},
{
"type": "Microsoft.Sql/servers/firewallRules",
"condition": "[parameters('allowAzureIPs')]",
"apiVersion": "2015-05-01-preview",
"name": "[concat(parameters('serverName'), '/AllowAllWindowsAzureIps')]",
"type": "Microsoft.Sql/servers/databases",
"apiVersion": "2020-08-01-preview",
"name": "[concat(parameters('serverName'), '/', parameters('sqlDBName'))]",
"location": "[parameters('location')]",
"sku": {
"name": "Standard",
"tier": "Standard"
},
"tags": "[parameters('resourceTags')]",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', parameters('serverName'))]"
],
"properties": {
"startIpAddress": "0.0.0.0",
"endIpAddress": "0.0.0.0"
}
]
},
{
"type": "Microsoft.Sql/servers/securityAlertPolicies",
"apiVersion": "2020-02-02-preview",
"type": "Microsoft.Sql/servers/auditingPolicies",
"apiVersion": "2014-04-01",
"name": "[concat(parameters('serverName'), '/Default')]",
"location": "[parameters('location')]",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', parameters('serverName'))]"
],
"tags": "[parameters('resourceTags')]",
"properties": {
"state": "Enabled"
"auditingState": "Disabled"
}
}
]
}
},
{
"type": "Microsoft.Sql/servers/firewallRules",
"condition": "[parameters('allowAzureIPs')]",
"apiVersion": "2015-05-01-preview",
"name": "[concat(parameters('serverName'), '/AllowAllWindowsAzureIps')]",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', parameters('serverName'))]"
],
"tags": "[parameters('resourceTags')]",
"properties": {
"startIpAddress": "0.0.0.0",
"endIpAddress": "0.0.0.0"
}
},
{
"type": "Microsoft.Sql/servers/securityAlertPolicies",
"apiVersion": "2020-02-02-preview",
"name": "[concat(parameters('serverName'), '/Default')]",
"dependsOn": [
"[resourceId('Microsoft.Sql/servers', parameters('serverName'))]"
],
"tags": "[parameters('resourceTags')]",
"properties": {
"state": "Enabled"
}
}
]
}
35 changes: 20 additions & 15 deletions Automation/SQL/azureDeploy.ps1
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
# Creates resource group and Azure SQL logical server

param(
# Login parameters
[string] [Parameter(Mandatory=$true)] $tenantId,
[string] [Parameter(Mandatory=$true)] $applicationId,
[string] [Parameter(Mandatory=$true)] $secret,
[string] [Parameter(Mandatory=$true)] $subscriptionId,
# Azure SQL server parameters
[string] [Parameter(Mandatory=$true)] $location,
[string] [Parameter(Mandatory=$true)] $resourceGroupName,
[string] [Parameter(Mandatory=$true)] $serverName,
[string] [Parameter(Mandatory=$true)] $administratorLogin,
[string] [Parameter(Mandatory=$true)] $administratorLoginPassword
# Login parameters
[string] [Parameter(Mandatory=$true)] $tenantId,
[string] [Parameter(Mandatory=$true)] $applicationId,
[string] [Parameter(Mandatory=$true)] $secret,
[string] [Parameter(Mandatory=$true)] $subscriptionId,
# Azure SQL server parameters
[string] [Parameter(Mandatory=$true)] $location,
[string] [Parameter(Mandatory=$true)] $resourceGroupName,
[string] [Parameter(Mandatory=$true)] $serverName,
[string] [Parameter(Mandatory=$true)] $administratorLogin,
[string] [Parameter(Mandatory=$true)] $administratorLoginPassword,
# Azure SQL db parameters
[string] [Parameter(Mandatory=$false)] $sqlDBName,
# Tag parameters
[string] [Parameter(Mandatory=$true)] $createdBy,
[string] [Parameter(Mandatory=$true)] $creatorsEmail
)

[securestring] $administratorLoginPassword = ConvertTo-SecureString $administratorLoginPassword -AsPlainText -Force

# Log in and set the SubscriptionId in which to create these objects
Expand All @@ -31,14 +35,15 @@ if (!$resourceGroupExists) {
New-AzResourceGroup -Name $resourceGroupName -Location "$location" -Force
Write-Host "Created resource group $resourceGroupName"
} else {
Write-Host "Resource group already exists."
Write-Host "Resource group $resourceGroupName already exists."
}

# Deploy template
Write-host "Creating primary server..."
Write-host "Creating primary server and db..."
New-AzResourceGroupDeployment -ResourceGroupName $resourceGroupName `
-TemplateFile $pathToAzSqlTemplate -administratorLogin $administratorLogin `
-administratorLoginPassword $administratorLoginPassword
-administratorLoginPassword $administratorLoginPassword -serverName $serverName `
-sqlDBName $sqlDBName -location $location -createdBy $createdBy -creatorsEmail $creatorsEmail


# Clear deployment
Expand Down
Loading