-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.bicep
58 lines (44 loc) · 1.32 KB
/
main.bicep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
module logic './logicapps.bicep' = {
name: 'logicAppsDeploy'
params: {
microsoftforms_displayName: email
office365_displayName: email
visualstudioteamservices_displayName: email
azureDevOpsAccount: azureDevOpsAccount
buildId: buildId
}
}
module staticapp './staticapp.bicep' = {
name: 'staticAppDeploy'
params: {
token: token
repositoryUrl: repo
namePrefix: namePrefix
branch: branch
appArtifactLocation: appArtifactLocation
}
}
// Deployment Scope
targetScope = 'resourceGroup'
// Parameters
@description('Enter your O365 email address')
param email string
@description('In the format of: https://github.com/account/reponame')
param repo string
@description('Which branch in the repo are you deploying from? e.g. main')
param branch string
@description('Where are the app artifacts located? e.g. public')
param appArtifactLocation string
@description('Enter your GitHub PAT')
@secure()
param token string
@description('Enter a unique prefix - e.g. mecweb')
param namePrefix string
@description('Your Azure DevOps Account Name')
param azureDevOpsAccount string
@description('Your Build Id')
param buildId string
// Outputs
output siteName string = staticapp.outputs.siteName
output siteUrl string = staticapp.outputs.siteUrl
output endpoint string = logic.outputs.LogicAppEndPoint