Skip to content

Commit

Permalink
Update deployment template
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathanio123 committed Sep 2, 2024
1 parent 9d5fdd1 commit e23f4a8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ steps:
$settings = @{
clientId = "${{ parameters.clientId }}"
departmentFilter = "PRD"
secretIds = @{
clientSecret = "https://$envVaultName.vault.azure.net:443/secrets/AzureAd--ClientSecret"
serviceBus = "https://$envVaultName.vault.azure.net:443/secrets/Connectionstrings--ServiceBus"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"type": "object",
"defaultValue": {
"clientId": "",
"departmentFilter": "",
"secretIds": {
"clientSecret": "",
"serviceBus": ""
},
"department_filter": "PRD",
"endpoints": {
"lineorg": "https://fusion-s-lineorg-ci.azurewebsites.net",
"org": "https://fusion-s-org-ci.azurewebsites.net",
Expand Down Expand Up @@ -171,8 +171,8 @@
"value": "[parameters('settings').queues.departmentSummaryWeeklyQueue]"
},
{
"name": "department_filter",
"value": "[parameters('settings').department_filter]"
"name": "departmentFilter",
"value": "[parameters('settings').departmentFilter]"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public async Task RunAsync(
{
_serviceBusConnectionString = configuration["AzureWebJobsServiceBus"];
_weeklySummaryQueueName = configuration["department_summary_weekly_queue"];
_departmentFilter = configuration["department_filter"]?.Split(',', StringSplitOptions.RemoveEmptyEntries) ?? [];
_departmentFilter = configuration["departmentFilter"]?.Split(',', StringSplitOptions.RemoveEmptyEntries) ?? [];

var client = new ServiceBusClient(_serviceBusConnectionString);
var sender = client.CreateSender(_weeklySummaryQueueName);
Expand Down
2 changes: 1 addition & 1 deletion src/Fusion.Summary.Functions/local.settings.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"AzureAd_Secret": "[REPLACE WITH SECRET]",
"department_summary_weekly_queue": "department-summary-weekly-queue-[REPLACE WITH DEV QUEUE]",
"AzureWebJobsServiceBus": "[REPLACE WITH SB CONNECTION STRING]",
"department_filter": "PRD",
"departmentFilter": "PRD",
"Endpoints_lineorg": "https://fusion-s-lineorg-ci.azurewebsites.net",
"Endpoints_people": "https://fusion-s-people-ci.azurewebsites.net",
"Endpoints_org": "https://fusion-s-org-ci.azurewebsites.net",
Expand Down

0 comments on commit e23f4a8

Please sign in to comment.