Skip to content

Refresh Functions v4 #43

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 100 commits into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
3b24783
Bump websocket-extensions in /web/serverless-microservices-web
dependabot[bot] Jun 7, 2020
d1f8aa0
Bump bootstrap-vue in /web/serverless-microservices-web
dependabot[bot] Sep 2, 2020
80bfcf6
Bump lodash.defaultsdeep in /web/serverless-microservices-web
dependabot[bot] Sep 4, 2020
50c669e
Bump http-proxy in /web/serverless-microservices-web
dependabot[bot] Sep 10, 2020
6397bd2
Bump axios from 0.18.0 to 0.21.1 in /web/serverless-microservices-web
dependabot[bot] Jan 5, 2021
7f94b20
Bump elliptic
dependabot[bot] Mar 9, 2021
87d6864
Bump elliptic from 6.4.1 to 6.5.4 in /web/serverless-microservices-web
dependabot[bot] Mar 9, 2021
4e1d777
Bump msgpack5 from 3.6.0 to 3.6.1 in /web/serverless-microservices-web
dependabot[bot] Mar 12, 2021
ff5b7f8
Bump y18n in /nodejs/serverless-microservices-functionapp-triparchiver
dependabot[bot] Mar 30, 2021
047f6d2
Bump y18n from 3.2.1 to 3.2.2 in /web/serverless-microservices-web
dependabot[bot] Mar 31, 2021
8d1a6cf
Bump lodash in /nodejs/serverless-microservices-functionapp-triparchiver
dependabot[bot] May 8, 2021
e2c86cf
Bump hosted-git-info
dependabot[bot] May 10, 2021
09cd523
Bump lodash from 4.17.10 to 4.17.21 in /web/serverless-microservices-web
dependabot[bot] May 10, 2021
f2c0edc
Bump hosted-git-info in /web/serverless-microservices-web
dependabot[bot] May 11, 2021
b22c9f3
Bump dns-packet from 1.3.1 to 1.3.4 in /web/serverless-microservices-web
dependabot[bot] May 28, 2021
827647d
Bump path-parse from 1.0.6 to 1.0.7 in /web/serverless-microservices-web
dependabot[bot] Aug 11, 2021
64b6277
+Badges
DanielLarsenNZ Nov 8, 2021
d55a84e
#36 upgrade drivers => v3
DanielLarsenNZ Nov 8, 2021
a95a578
#36 upgrade Orchestrators => v3
DanielLarsenNZ Nov 8, 2021
4e03c7e
Add bicep for IaC
Nov 11, 2021
2d48734
#36 upgrade Passengers & Trips
DanielLarsenNZ Nov 12, 2021
24f58be
#36 upgrade shared libs => dotnet 3.1
DanielLarsenNZ Nov 12, 2021
5e78db2
#36 upgrade nugets - low risk
DanielLarsenNZ Nov 12, 2021
d99f9d0
#36 refactor for new Storage Queue client SDK
DanielLarsenNZ Nov 12, 2021
75cf99f
#36 fix storage dependency
DanielLarsenNZ Nov 12, 2021
c2f8963
#36 remove Newtonsoft
DanielLarsenNZ Nov 12, 2021
157b24c
#36 upgrade SignalR
DanielLarsenNZ Nov 12, 2021
744b6e3
Update setup doc for Bicep
Nov 12, 2021
470dd83
#36 upgrade SignalR client
DanielLarsenNZ Nov 12, 2021
e7568ad
#36 upgrade SignalR server
DanielLarsenNZ Nov 12, 2021
6f4d28c
#36 upgrade identity model
DanielLarsenNZ Nov 12, 2021
55ec80f
update bicep fild and setup doc
Nov 12, 2021
f9e88e3
update arm template deployment link
Nov 12, 2021
51a5e48
add .vscode folder to gitignore
Nov 12, 2021
1c1462b
Delete vulsCount.txt
wviriya Nov 12, 2021
5e1ce3d
Update Bicep section setup.md
Nov 12, 2021
0ca9dd1
Merge pull request #44 from wviriya/refresh-functions-v4-bicep
wviriya Nov 12, 2021
2d55c71
remove location from parameter to variable
Nov 12, 2021
61bd6c5
Merge pull request #46 from wviriya/refresh-functions-v4-bicep
wviriya Nov 12, 2021
82e8752
Merge branch 'main' into 36-functions-v3
DanielLarsenNZ Nov 14, 2021
d94eba7
#36 upgrade Event Grid
DanielLarsenNZ Nov 14, 2021
cae9913
#36 upgrade Dapper
DanielLarsenNZ Nov 14, 2021
e994f4e
#36 upgrade Cosmos and refactor service
DanielLarsenNZ Nov 15, 2021
ab57452
Merge pull request #47 from wviriya/dependabot/npm_and_yarn/web/serve…
wviriya Nov 15, 2021
f4ef64a
Merge pull request #48 from wviriya/dependabot/npm_and_yarn/web/serve…
wviriya Nov 15, 2021
abe8978
Merge pull request #49 from wviriya/dependabot/npm_and_yarn/web/serve…
wviriya Nov 15, 2021
97409f7
Merge pull request #50 from wviriya/dependabot/npm_and_yarn/web/serve…
wviriya Nov 15, 2021
1500acb
Merge pull request #51 from wviriya/dependabot/npm_and_yarn/nodejs/se…
wviriya Nov 15, 2021
1139d71
Merge branch 'refresh-functions-v4' into dependabot/npm_and_yarn/web/…
wviriya Nov 15, 2021
af90f88
Merge pull request #52 from wviriya/dependabot/npm_and_yarn/web/serve…
wviriya Nov 15, 2021
f28eeeb
Merge pull request #53 from wviriya/dependabot/npm_and_yarn/web/serve…
wviriya Nov 15, 2021
064ab42
Merge pull request #54 from wviriya/dependabot/npm_and_yarn/web/serve…
wviriya Nov 15, 2021
e103344
Merge pull request #55 from wviriya/dependabot/npm_and_yarn/nodejs/se…
wviriya Nov 15, 2021
85ac365
Merge pull request #56 from wviriya/dependabot/npm_and_yarn/web/serve…
wviriya Nov 15, 2021
59b2b75
Merge pull request #57 from wviriya/dependabot/npm_and_yarn/nodejs/se…
wviriya Nov 15, 2021
32da242
Merge pull request #58 from wviriya/dependabot/npm_and_yarn/nodejs/se…
wviriya Nov 15, 2021
db2fa02
Merge pull request #59 from wviriya/dependabot/npm_and_yarn/web/serve…
wviriya Nov 15, 2021
bd262a2
Merge pull request #60 from wviriya/dependabot/npm_and_yarn/web/serve…
wviriya Nov 15, 2021
080e55d
Merge pull request #61 from wviriya/dependabot/npm_and_yarn/web/serve…
wviriya Nov 15, 2021
f071c29
Merge pull request #62 from wviriya/dependabot/npm_and_yarn/web/serve…
wviriya Nov 15, 2021
68f2e31
Merge branch 'main' into 36-functions-v3
DanielLarsenNZ Nov 16, 2021
2c59d97
Merge branch 'refresh-functions-v4' into 36-functions-v3
DanielLarsenNZ Nov 16, 2021
d88af24
#36 run local
DanielLarsenNZ Nov 17, 2021
8242329
#36 run local
DanielLarsenNZ Nov 17, 2021
7757d5e
#36 Test local
DanielLarsenNZ Nov 22, 2021
00a659f
#36 getting started
DanielLarsenNZ Nov 23, 2021
b4dacea
#36 test local - done
DanielLarsenNZ Nov 23, 2021
f38b8c0
#36 upgrade nodejs function -> v3
DanielLarsenNZ Nov 24, 2021
389b4be
#36 Build and run SPA on localhost
DanielLarsenNZ Nov 24, 2021
967afed
Merge pull request #64 from Azure-Samples/36-functions-v3
wviriya Nov 24, 2021
529549f
Local SPA
DanielLarsenNZ Nov 24, 2021
6d929b7
Local SPA
DanielLarsenNZ Nov 24, 2021
fe22805
Merge branch '36-functions-v3' into refresh-functions-v4
DanielLarsenNZ Nov 24, 2021
a1115d6
Upgrade Vue and dependencies
Nov 25, 2021
101063c
Remove eslent
Nov 25, 2021
ae46509
Merge remote-tracking branch 'upstream/refresh-functions-v4' into ref…
Nov 25, 2021
904f51a
fix package-lock.json conflict
Nov 25, 2021
1e57738
Merge pull request #65 from wviriya/refresh-functions-v4
wviriya Nov 25, 2021
81f920f
package.lock
DanielLarsenNZ Dec 7, 2021
93bd815
Upgrade MSAL and packages
Dec 8, 2021
4453385
Merge pull request #67 from wviriya/refresh-functions-v4
wviriya Dec 8, 2021
d98c5da
dont need http-server
DanielLarsenNZ Dec 8, 2021
d3ce0c7
merge conflict
DanielLarsenNZ Dec 8, 2021
429912e
Change SPA port
DanielLarsenNZ Dec 8, 2021
ac59632
Fix MSAL errors after upgrade. Change from idToken to idTokenClaims
Dec 8, 2021
f91b8e4
Merge pull request #68 from wviriya/refresh-functions-v4
wviriya Dec 8, 2021
3060efb
Refactoring Auth in both JavaScript and dotnet
Dec 13, 2021
21a4376
package.lock
DanielLarsenNZ Dec 7, 2021
4aeb3ee
Refactoring Auth in both JavaScript and dotnet
Dec 13, 2021
18c066a
Merge pull request #70 from wviriya/refresh-functions-v4
wviriya Dec 13, 2021
7648334
Update npm
wviriya Dec 13, 2021
3e32b0e
Update getToken function and create a separate application with a new…
wviriya Dec 14, 2021
a50600a
Start the storage emulator
DanielLarsenNZ Dec 14, 2021
7f15147
Merge branch 'refresh-functions-v4' of https://github.com/Azure-Sampl…
DanielLarsenNZ Dec 14, 2021
cc9560c
Update for local testing
wviriya Dec 15, 2021
de70b3e
Get passenger info from claims
DanielLarsenNZ Dec 16, 2021
d6bf89c
Merge branch 'refresh-functions-v4' of https://github.com/Azure-Sampl…
DanielLarsenNZ Dec 16, 2021
01ec060
Use azurite
DanielLarsenNZ Jan 11, 2022
67dce3a
Getting started docs
DanielLarsenNZ Jan 11, 2022
fadac47
v3 upgrade complete
DanielLarsenNZ Jan 11, 2022
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
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/Docs/*
#.vscode/
.vscode/

# Exclude temporary files:
*.tmp
Expand All @@ -17,3 +17,9 @@

# Build temp package lock
pipelines/package-lock.json

bicep/parameters.local.json
local.settings.json
test/settings.example.dan.js

__azurite__
9 changes: 8 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,12 @@
"azureFunctions.projectRuntime": "~1",
"azureFunctions.projectLanguage": "JavaScript",
"appService.zipIgnorePattern": ["node_modules{,/**}"],
"appService.deploySubpath": "serverless-microservices-web"
"appService.deploySubpath": "serverless-microservices-web",
"WhiteSource Advise.Diff.BaseBranch": "main",
"markdownlint.config": {
"MD028": false,
"MD025": {
"front_matter_title": ""
}
}
}
79 changes: 43 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ description: "This architecture walks you through the process involved in develo

# Serverless Microservices reference architecture

[![.NET](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/actions/workflows/dotnet.yml/badge.svg)](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/actions/workflows/dotnet.yml)
[![Node.js CI](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/actions/workflows/nodejs.yml/badge.svg)](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/actions/workflows/nodejs.yml)
[![spa build](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/actions/workflows/spa.yml/badge.svg)](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/actions/workflows/spa.yml)

> This sample has been upgraded to Azure Functions v3. An upgrade to Azure Functions v4 is in progress. See [PR #43](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/pull/43) for details.

## The reference architecture

![RideShare Macro Architecture](documentation/media/macro-architecture.png)
Expand All @@ -34,48 +40,49 @@ During their initial research phase consisting of comparing serverless offerings

## Explore Relecloud's solution using serverless and microservices

[Read about Relecloud's solution](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/introduction.md) and overall architecture design and decisions. The article will briefly explain the concepts around both serverless and microservices, and how they can be used together to build solutions with little to no infrastructure overhead. It will then walk you through the sample solution you will deploy in the lab, broken down into its architectural components.
[Read about Relecloud's solution](/documentation/introduction.md) and overall architecture design and decisions. The article will briefly explain the concepts around both serverless and microservices, and how they can be used together to build solutions with little to no infrastructure overhead. It will then walk you through the sample solution you will deploy in the lab, broken down into its architectural components.

## Deploy Relecloud's solution today with a hands-on lab

After learning about Relecloud's [serverless microservices architecture](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/introduction.md), deploy the companion solution by following the step-by-step [hands-on lab](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/setup.md), or take the shortcut and deploy with a few clicks [using our templates](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/setup.md#cake-provision).
After learning about Relecloud's [serverless microservices architecture](/documentation/introduction.md), deploy the companion solution by following the step-by-step [hands-on lab](/documentation/setup.md), or take the shortcut and deploy with a few clicks [using our templates](/documentation/setup.md#cake-provision).

Each section of the lab will briefly explain what you are trying to accomplish and why. It will also link you to the relative portion of the [architecture document](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/introduction.md).
Each section of the lab will briefly explain what you are trying to accomplish and why. It will also link you to the relative portion of the [architecture document](/documentation/introduction.md).

## Detailed documentation

Use the table of contents below for detailed documentation of each component of the reference architecture.

- [Introduction to serverless microservices](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/introduction.md)
- [What are microservices?](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/introduction.md#what-are-microservices)
- [What is serverless?](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/introduction.md#what-is-serverless)
- [Architecture overview](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/architecture-overview.md)
- [Macro architecture](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/architecture-overview.md#macro-architecture)
- [Data flow](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/architecture-overview.md#data-flow)
- [Initial setup](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/setup.md)
- [API endpoints using Azure Functions](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/api-endpoints.md)
- [RideShare APIs](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/api-endpoints.md#rideshare-apis)
- [Durable Orchestrators](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/api-endpoints.md#durable-orchestrators)
- [Services intercommunication using Event Grid](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/services-intercommunication.md)
- [Logic App handler](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/services-intercommunication.md#logic-app-handler)
- [SignalR handler](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/services-intercommunication.md#signalr-handler)
- [.NET SignalR client](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/services-intercommunication.md#dotnet-signalr-client)
- [JavaScript SignalR client](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/services-intercommunication.md#javascript-signalr-client)
- [Power BI handler](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/services-intercommunication.md#power-bi-handler)
- [Trip Archiver handler](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/services-intercommunication.md#trip-archiver-handler)
- [Gateway with API Management](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/api-management.md)
- [Data storage](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/data-storage.md)
- [Client application](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/client-application.md)
- [Passengers page](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/client-application.md#passengers-page)
- [Drivers page](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/client-application.md#drivers-page)
- [Authentication](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/client-application.md#authentication)
- [Wrapping HTTP calls with authentication token](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/client-application.md#wrapping-http-calls-with-authentication-token)
- [Monitoring and testing](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/monitoring-testing.md)
- [Integration testing](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/monitoring-testing.md#integration-testing)
- [Monitoring](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/monitoring-testing.md#monitoring)
- [Telemetry correlation](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/monitoring-testing.md#telemetry-correlation)
- [Monitoring for different audiences](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/monitoring-testing.md#monitoring-for-different-audiences)
- [Source code structure](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/source-code-structure.md)
- [.NET](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/source-code-structure.md#net)
- [Node.js](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/source-code-structure.md#nodejs)
- [Web](https://github.com/Azure-Samples/Serverless-microservices-reference-architecture/blob/master/documentation/source-code-structure.md#web)
- [Introduction to serverless microservices](/documentation/introduction.md)
- [What are microservices?](/documentation/introduction.md#what-are-microservices)
- [What is serverless?](/documentation/introduction.md#what-is-serverless)
- [Architecture overview](/documentation/architecture-overview.md)
- [Macro architecture](/documentation/architecture-overview.md#macro-architecture)
- [Data flow](/documentation/architecture-overview.md#data-flow)
- [Initial setup](/documentation/setup.md)
- [Getting started](/documentation/setup.md#getting-started)
- [API endpoints using Azure Functions](/documentation/api-endpoints.md)
- [RideShare APIs](/documentation/api-endpoints.md#rideshare-apis)
- [Durable Orchestrators](/documentation/api-endpoints.md#durable-orchestrators)
- [Services intercommunication using Event Grid](/documentation/services-intercommunication.md)
- [Logic App handler](/documentation/services-intercommunication.md#logic-app-handler)
- [SignalR handler](/documentation/services-intercommunication.md#signalr-handler)
- [.NET SignalR client](/documentation/services-intercommunication.md#dotnet-signalr-client)
- [JavaScript SignalR client](/documentation/services-intercommunication.md#javascript-signalr-client)
- [Power BI handler](/documentation/services-intercommunication.md#power-bi-handler)
- [Trip Archiver handler](/documentation/services-intercommunication.md#trip-archiver-handler)
- [Gateway with API Management](/documentation/api-management.md)
- [Data storage](/documentation/data-storage.md)
- [Client application](/documentation/client-application.md)
- [Passengers page](/documentation/client-application.md#passengers-page)
- [Drivers page](/documentation/client-application.md#drivers-page)
- [Authentication](/documentation/client-application.md#authentication)
- [Wrapping HTTP calls with authentication token](/documentation/client-application.md#wrapping-http-calls-with-authentication-token)
- [Monitoring and testing](/documentation/monitoring-testing.md)
- [Integration testing](/documentation/monitoring-testing.md#integration-testing)
- [Monitoring](/documentation/monitoring-testing.md#monitoring)
- [Telemetry correlation](/documentation/monitoring-testing.md#telemetry-correlation)
- [Monitoring for different audiences](/documentation/monitoring-testing.md#monitoring-for-different-audiences)
- [Source code structure](/documentation/source-code-structure.md)
- [.NET](/documentation/source-code-structure.md#net)
- [Node.js](/documentation/source-code-structure.md#nodejs)
- [Web](/documentation/source-code-structure.md#web)
133 changes: 133 additions & 0 deletions bicep/main.bicep
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
param applicationName string = 'Rideshare'

@allowed([
'centralus'
'eastus2'
'eastasia'
'westeurope'
'westus2'
])
param staticWebAppLocation string
param sqlAdminLogin string

@secure()
param sqlAdminPassword string
param resourceTags object = {
ProjectType: 'Azure Serverless Microservices'
Purpose: 'Sample'
}

var location = resourceGroup().location
var functionAppServicePlanName = '${applicationName}Plan'
var keyVaultName = '${applicationName}KeyVault'
var cosmosdbName = '${applicationName}Cosmos'
var eventGridName = '${applicationName}TripExternalizations'
var signalRName = applicationName
var applicationInsightsName = '${applicationName}Insights'
var apimName = '${applicationName}Apim'
var sqlServerName = '${applicationName}-db'
var staticWebAppName = '${applicationName}Web'
var storageAccountName = take(toLower(replace('${applicationName}func', '-', '')), 24)
var functionsApps = [
'Trips'
'Drivers'
'Passengers'
'TripArchiver'
'Orchestrators'
]

module cosmos 'modules/cosmosdb.bicep' = {
name: cosmosdbName
params: {
accountName: cosmosdbName
location: location
databaseName: applicationName
resourceTags: resourceTags
}
}

module sqlDb 'modules/sqldb.bicep' = {
name: 'sqldb'
params: {
sqlServerName: sqlServerName
sqlDatabaeName: applicationName
administratorLogin: sqlAdminLogin
administratorPassword: sqlAdminPassword
location: location
resourceTags: resourceTags
}
}

module eventGrid 'modules/eventgrid.bicep' = {
name: eventGridName
params: {
eventGridTopicName: eventGridName
location: location
resourceTags: resourceTags
}
}

module signalR 'modules/signalr.bicep' = {
name: signalRName
params: {
signalRName: signalRName
location: location
resourceTags: resourceTags
}
}

module applicationInsights 'modules/applicationInsights.bicep' = {
name: applicationInsightsName
params: {
applicationInsightsName: applicationInsightsName
location: location
resourceTags: resourceTags
}
}

module apim 'modules/apim.bicep' = {
name: apimName
params: {
apimName: apimName
appInsightsName: applicationInsights.outputs.appInsightsName
appInsightsInstrumentationKey: applicationInsights.outputs.appInsightsInstrumentationKey
resourceTags: resourceTags
}
}

module staticeWebApp 'modules/staticwebapp.bicep' = {
name: staticWebAppName
params: {
staticWebAppName: staticWebAppName
location: staticWebAppLocation
resourceTags: resourceTags
}
}

module functions 'modules/functions.bicep' = {
name: 'functions'
params: {
storageAccountName: storageAccountName
functionAppPrefix: applicationName
functionApps: functionsApps
appServicePlanName: functionAppServicePlanName
location: location
staticWebAppURL: staticeWebApp.outputs.staticWebAppURL
appInsightsInstrumentationKey: applicationInsights.outputs.appInsightsInstrumentationKey
resourceTags: resourceTags
}
}

module keyVault 'modules/keyvault.bicep' = {
name: keyVaultName
params: {
keyVaultName: keyVaultName
functionAppPrefix: applicationName
functionApps: functionsApps
resourceTags: resourceTags
}
dependsOn: [
functions
]
}

Loading