diff --git a/pipelines/templates/deploy-summary-function-pr-template.yml b/pipelines/templates/deploy-summary-function-pr-template.yml index b641db472..55de5ca6b 100644 --- a/pipelines/templates/deploy-summary-function-pr-template.yml +++ b/pipelines/templates/deploy-summary-function-pr-template.yml @@ -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" diff --git a/src/Fusion.Summary.Functions/Deployment/function.template.json b/src/Fusion.Summary.Functions/Deployment/function.template.json index d82958fd2..a02cfc552 100644 --- a/src/Fusion.Summary.Functions/Deployment/function.template.json +++ b/src/Fusion.Summary.Functions/Deployment/function.template.json @@ -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", @@ -171,8 +171,8 @@ "value": "[parameters('settings').queues.departmentSummaryWeeklyQueue]" }, { - "name": "department_filter", - "value": "[parameters('settings').department_filter]" + "name": "departmentFilter", + "value": "[parameters('settings').departmentFilter]" } ] } diff --git a/src/Fusion.Summary.Functions/Functions/DepartmentResourceOwnerSync.cs b/src/Fusion.Summary.Functions/Functions/DepartmentResourceOwnerSync.cs index c745326c2..5013797ac 100644 --- a/src/Fusion.Summary.Functions/Functions/DepartmentResourceOwnerSync.cs +++ b/src/Fusion.Summary.Functions/Functions/DepartmentResourceOwnerSync.cs @@ -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); diff --git a/src/Fusion.Summary.Functions/local.settings.template.json b/src/Fusion.Summary.Functions/local.settings.template.json index 0f3e838e9..8ba435774 100644 --- a/src/Fusion.Summary.Functions/local.settings.template.json +++ b/src/Fusion.Summary.Functions/local.settings.template.json @@ -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",