Skip to content

Commit

Permalink
Update IAC
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathanio123 committed Oct 29, 2024
1 parent 6b7dd9e commit d1972f5
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
16 changes: 16 additions & 0 deletions infrastructure/arm/environment.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,22 @@
"maxDeliveryCount": 2
}
},
{
"type": "Microsoft.ServiceBus/namespaces/queues",
"apiVersion": "2017-04-01",
"name": "[concat(variables('sb-name'), '/scheduled-weekly-project-report')]",
"location": "North Europe",
"dependsOn": [
"[resourceId('Microsoft.ServiceBus/namespaces', variables('sb-name'))]"
],
"properties": {
"maxSizeInMegabytes": 1024,
"duplicateDetectionHistoryTimeWindow": "P1D",
"defaultMessageTimeToLive": "PT1H",
"deadLetteringOnMessageExpiration": true,
"maxDeliveryCount": 2
}
},

/* SECRETS */
{
Expand Down
3 changes: 3 additions & 0 deletions pipelines/templates/deploy-summary-function-pr-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ steps:
$settings = @{
clientId = "${{ parameters.clientId }}"
departmentFilter = "PRD"
projectTypeFilter = "PRD"
secretIds = @{
clientSecret = "https://$envVaultName.vault.azure.net:443/secrets/AzureAd--ClientSecret"
serviceBus = "https://$envVaultName.vault.azure.net:443/secrets/Connectionstrings--ServiceBus"
Expand All @@ -63,12 +64,14 @@ steps:
notifications = "https://fusion-s-notification-$fusionEnvironment.azurewebsites.net"
context = "https://fusion-s-context-$fusionEnvironment.azurewebsites.net"
portal = "https://fusion-s-portal-$fusionEnvironment.azurewebsites.net"
roles = "https://fusion-s-roles-$fusionEnvironment.azurewebsites.net"
}
resources = @{
fusion = "${{ parameters.fusionResource }}"
}
queues = @{
departmentSummaryWeeklyQueue = "scheduled-weekly-department-report"
projectSummaryWeeklyQueue = "scheduled-weekly-project-report"
}
}
Expand Down
3 changes: 3 additions & 0 deletions pipelines/templates/deploy-summary-function-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ steps:
$settings = @{
clientId = "${{ parameters.clientId }}"
departmentFilter = "PRD"
projectTypeFilter = "PRD"
secretIds = @{
clientSecret = Get-SecretsId -secret AzureAd--ClientSecret
serviceBus = Get-SecretsId -secret Connectionstrings--ServiceBus
Expand All @@ -61,12 +62,14 @@ steps:
notifications = "https://fusion-s-notification-$fusionEnvironment.azurewebsites.net"
context = "https://fusion-s-context-$fusionEnvironment.azurewebsites.net"
portal = "https://fusion-s-portal-$fusionEnvironment.azurewebsites.net"
roles = "https://fusion-s-roles-$fusionEnvironment.azurewebsites.net"
}
resources = @{
fusion = "${{ parameters.fusionResource }}"
}
queues = @{
departmentSummaryWeeklyQueue = "scheduled-weekly-department-report"
projectSummaryWeeklyQueue = "scheduled-weekly-project-report"
}
}
Expand Down
12 changes: 12 additions & 0 deletions src/Fusion.Summary.Functions/Deployment/function.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@
"name": "Endpoints_summary",
"value": "[parameters('settings').endpoints.summary]"
},
{
"name": "Endpoints_roles",
"value": "[parameters('settings').endpoints.roles]"
},
{
"name": "Endpoints_Resources_Fusion",
"value": "[parameters('settings').resources.fusion]"
Expand All @@ -170,9 +174,17 @@
"name": "department_summary_weekly_queue",
"value": "[parameters('settings').queues.departmentSummaryWeeklyQueue]"
},
{
"name": "project_summary_weekly_queue",
"value": "[parameters('settings').queues.projectSummaryWeeklyQueue]"
},
{
"name": "departmentFilter",
"value": "[parameters('settings').departmentFilter]"
},
{
"name": "projectTypeFilter",
"value": "[parameters('settings').projectTypeFilter]"
}
]
}
Expand Down

0 comments on commit d1972f5

Please sign in to comment.