Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
67ed511
Upgrade to .NET 10.0 and update NuGet packages
Jul 7, 2026
65f33bb
Update Terraform, .NET, and pipeline versions to latest
Jul 15, 2026
bbb624a
Add -upgrade flag to terraform init in deployment script
Jul 22, 2026
b7d7ac6
Add -upgrade flag to terraform init in deployment scripts
Jul 22, 2026
de1b3b2
Merge pull request #534 from UKHO/feature/290759-dotnet-10-upgrade-de…
ganpat-tech Jul 24, 2026
39c82f0
Merge branch 'feature/290759/main' into feature/290759-dotnet-10-upgr…
Jul 24, 2026
4d7fdf8
AB#290759-resolve snyk issue
amren1502129 Aug 3, 2026
349e6e5
Fix azurerm dashboard (#537)
ganpat-tech Aug 6, 2026
52a920c
Merge branch 'feature/290759/main' into feature/290759-dotnet-10-upgr…
amren1502129 Aug 6, 2026
a533bba
AB#290759-upgrade nuget package and sdk vesrion
amren1502129 Aug 10, 2026
6cae2b3
Testing az cli inline script
mattwin1 Aug 20, 2026
cedcbf8
fixed parameters.AzureSubscription formatting
mattwin1 Aug 20, 2026
543a997
Merge branch 'feature/290759/main' into fix/dotnet10Fix
mattwin1 Aug 20, 2026
7ed8dd2
Merge pull request #539 from UKHO/fix/dotnet10Fix
mattwin1 Aug 20, 2026
af968c2
adding missing az command
mattwin1 Aug 20, 2026
a75b885
changed az execution path
mattwin1 Aug 20, 2026
4cef5de
moved az to slots and added default webapp
mattwin1 Aug 20, 2026
a9a1579
added v2 webapp scripts
mattwin1 Aug 20, 2026
e7bbd62
Merge branch 'feature/290759/main' into feature/290759-dotnet-10-upgr…
amren1502129 Aug 25, 2026
420773a
AB#290759-removed comments
amren1502129 Aug 26, 2026
82da456
AB#290759-remove unused comments
amren1502129 Aug 26, 2026
3ca621d
Downgrade App Insights packages and clean up usings
Sep 1, 2026
3d24783
Remove SharpCompress and Snappier from test project
Sep 1, 2026
47efda8
AB#290759-fixed review & comments
amren1502129 Sep 4, 2026
e053816
Merge branch 'feature/290759-dotnet-10-upgrade-devchanges' of https:/…
amren1502129 Sep 4, 2026
d179c46
AB#290759-reverted back hashing algorithm
amren1502129 Sep 9, 2026
0fb19bd
AB#290759-refactor the santizeinput code
amren1502129 Sep 10, 2026
783a81d
Merge pull request #541 from UKHO/feature/290759-dotnet-10-upgrade-de…
amren1502129 Sep 11, 2026
7493b18
AB#290759-minor azurerm changes
amren1502129 Sep 17, 2026
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
4 changes: 2 additions & 2 deletions Deployment/src/Modules/APIM/azure.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=3.116.0"
version = ">=4.54.0"
Comment thread
amren1502129 marked this conversation as resolved.
}
}

required_version = "=1.9.6"
required_version = "=1.15.8"
backend "azurerm" {
container_name = "tfstate"
}
Expand Down
4 changes: 2 additions & 2 deletions Deployment/src/Modules/FulfilmentStorage/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ resource "azurerm_storage_account" "large_exchange_set_storage" {

resource "azurerm_storage_container" "large_exchange_set_storage_container" {
name = "ess-fulfilment"
storage_account_name = azurerm_storage_account.large_exchange_set_storage.name
storage_account_id = azurerm_storage_account.large_exchange_set_storage.id
Comment thread
amren1502129 marked this conversation as resolved.
}

resource "azurerm_storage_queue" "large_exchange_set_storage_queue" {
count = var.exchange_set_config.LargeExchangeSetInstance
name = "ess-${sum([1,count.index])}-fulfilment"
storage_account_name = azurerm_storage_account.large_exchange_set_storage.name
storage_account_id = azurerm_storage_account.large_exchange_set_storage.id
}

resource "azurerm_storage_management_policy" "large_exchange_set_storage_policy" {
Expand Down
12 changes: 6 additions & 6 deletions Deployment/src/Modules/FulfilmentWebapps/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ resource "azurerm_windows_web_app" "small_exchange_set_webapp" {
site_config {
application_stack {
current_stack = "dotnet"
dotnet_version = "v8.0"
dotnet_version = "v10.0"
}

always_on = true
Expand Down Expand Up @@ -70,7 +70,7 @@ resource "azurerm_windows_web_app_slot" "small_exchange_set_staging" {
site_config {
application_stack {
current_stack = "dotnet"
dotnet_version = "v8.0"
dotnet_version = "v10.0"
}

always_on = true
Expand Down Expand Up @@ -124,7 +124,7 @@ resource "azurerm_windows_web_app" "medium_exchange_set_webapp" {
site_config {
application_stack {
current_stack = "dotnet"
dotnet_version = "v8.0"
dotnet_version = "v10.0"
}

always_on = true
Expand Down Expand Up @@ -164,7 +164,7 @@ resource "azurerm_windows_web_app_slot" "medium_exchange_set_staging" {
site_config {
application_stack {
current_stack = "dotnet"
dotnet_version = "v8.0"
dotnet_version = "v10.0"
}

always_on = true
Expand Down Expand Up @@ -218,7 +218,7 @@ resource "azurerm_windows_web_app" "large_exchange_set_webapp" {
site_config {
application_stack {
current_stack = "dotnet"
dotnet_version = "v8.0"
dotnet_version = "v10.0"
}

always_on = true
Expand Down Expand Up @@ -258,7 +258,7 @@ resource "azurerm_windows_web_app_slot" "large_exchange_set_staging" {
site_config {
application_stack {
current_stack = "dotnet"
dotnet_version = "v8.0"
dotnet_version = "v10.0"
}

always_on = true
Expand Down
1 change: 1 addition & 0 deletions Deployment/src/Modules/KeyVault/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resource "azurerm_key_vault" "kv" {
resource_group_name = var.resource_group_name
enabled_for_disk_encryption = true
tenant_id = var.tenant_id
rbac_authorization_enabled = false

sku_name = "standard"

Expand Down
4 changes: 2 additions & 2 deletions Deployment/src/Modules/Webapp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ resource "azurerm_windows_web_app" "webapp_service" {
site_config {
application_stack {
current_stack = "dotnet"
dotnet_version = "v8.0"
dotnet_version = "v10.0"
}

always_on = true
Expand Down Expand Up @@ -73,7 +73,7 @@ resource "azurerm_windows_web_app_slot" "staging" {
site_config {
application_stack {
current_stack = "dotnet"
dotnet_version = "v8.0"
dotnet_version = "v10.0"
}

always_on = true
Expand Down
4 changes: 2 additions & 2 deletions Deployment/src/Modules/azuredashboard/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ data "azurerm_subscription" "current" {
}


resource "azurerm_dashboard" "azure-dashboard" {
resource "azurerm_portal_dashboard" "azure-dashboard" {
Comment thread
amren1502129 marked this conversation as resolved.
name = var.name
resource_group_name = var.resource_group.name
location = var.resource_group.location
Expand All @@ -12,4 +12,4 @@ resource "azurerm_dashboard" "azure-dashboard" {
subscription_id = data.azurerm_subscription.current.subscription_id,
environment = var.environment
})
}
}
6 changes: 3 additions & 3 deletions Deployment/src/azure.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=3.116.0"
version = "=4.81.0"
Comment thread
amren1502129 marked this conversation as resolved.
}
}

required_version = "=1.9.6"
required_version = "=1.15.8"
backend "azurerm" {
container_name = "tfstate"
}
Expand All @@ -20,4 +20,4 @@ provider "azurerm" {
features {}
alias = "build_agent"
subscription_id = var.agent_subscription_id
}
}
2 changes: 1 addition & 1 deletion Deployment/src/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ output "web_app_slot_name" {

output "web_app_slot_default_site_hostname" {
value = module.webapp_service.slot_default_site_hostname
}
}
51 changes: 51 additions & 0 deletions Deployment/templates/continuous-deployment-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,57 @@ steps:
TF_VAR_asp_control_webapp: $(appServicePlanControlWebApp)
TF_VAR_scs_response_retention: $(SalesCatalogueResponseRetentionInDays)

- task: AzureCLI@2
displayName: 'Run windows_fx_version Update AZ Script Against All Webapps'
inputs:
azureSubscription: ${{parameters.AzureSubscription}}
scriptType: 'pscore'
scriptLocation: 'inlineScript'
inlineScript: |
cd $(Pipeline.Workspace)/terraformartifact/src

$rg = terraform output -raw web_app_resource_group
Comment thread
amren1502129 marked this conversation as resolved.

#Update webapp slot windows_fx_version
az webapp config set `
--resource-group $rg `
--name "$env:WEB_APP_NAME" `
--slot "$env:WEB_APP_SLOT_NAME" `
--windows-fx-version "DOTNET|10.0"

#Update small fulfilment webapp slots windows_fx_version
$smallWebapps = terraform output -json small_exchange_set_webapps | ConvertFrom-Json
foreach ($item in $smallWebapps) {
Write-Host "Processing small webapp: $($item.webappname)"
az webapp config set `
--resource-group $rg `
--name $item.webappname `
--slot "staging" `
--windows-fx-version "DOTNET|10.0"
}

#Update medium fulfilment webapp slots windows_fx_version
$mediumWebapps = terraform output -json medium_exchange_set_webapps | ConvertFrom-Json
foreach ($item in $mediumWebapps) {
Write-Host "Processing medium webapp: $($item.webappname)"
az webapp config set `
--resource-group $rg `
--name $item.webappname `
--slot "staging" `
--windows-fx-version "DOTNET|10.0"
}

# #Update large fulfilment webapp slots windows_fx_version
$largeWebapps = terraform output -json large_exchange_set_webapps | ConvertFrom-Json
foreach ($item in $largeWebapps) {
Write-Host "Processing large webapp: $($item.webappname)"
az webapp config set `
--resource-group $rg `
--name $item.webappname `
--slot "staging" `
--windows-fx-version "DOTNET|10.0"
}

- template: fulfilment-webjob-deployment.yml
parameters:
AzureSubscription: ${{parameters.AzureSubscription}}
Expand Down
51 changes: 51 additions & 0 deletions Deployment/templates/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,57 @@ steps:
TF_VAR_asp_control_webapp: $(appServicePlanControlWebApp)
TF_VAR_scs_response_retention: $(SalesCatalogueResponseRetentionInDays)

- task: AzureCLI@2
displayName: 'Run windows_fx_version Update AZ Script Against All Webapps'
inputs:
azureSubscription: ${{parameters.AzureSubscription}}
scriptType: 'pscore'
scriptLocation: 'inlineScript'
inlineScript: |
cd $(Pipeline.Workspace)/terraformartifact/src

$rg = terraform output -raw web_app_resource_group
Comment thread
amren1502129 marked this conversation as resolved.

#Update webapp slot windows_fx_version
az webapp config set `
--resource-group $rg `
--name "$env:WEBAPPNAME" `
Comment thread
amren1502129 marked this conversation as resolved.
--slot "$env:WEB_APP_SLOT_NAME" `
--windows-fx-version "DOTNET|10.0"

#Update small fulfilment webapp slots windows_fx_version
$smallWebapps = terraform output -json small_exchange_set_webapps | ConvertFrom-Json
foreach ($item in $smallWebapps) {
Write-Host "Processing small webapp: $($item.webappname)"
az webapp config set `
--resource-group $rg `
--name $item.webappname `
--slot "staging" `
--windows-fx-version "DOTNET|10.0"
}

#Update medium fulfilment webapp slots windows_fx_version
$mediumWebapps = terraform output -json medium_exchange_set_webapps | ConvertFrom-Json
foreach ($item in $mediumWebapps) {
Write-Host "Processing medium webapp: $($item.webappname)"
az webapp config set `
--resource-group $rg `
--name $item.webappname `
--slot "staging" `
--windows-fx-version "DOTNET|10.0"
}

# #Update large fulfilment webapp slots windows_fx_version
$largeWebapps = terraform output -json large_exchange_set_webapps | ConvertFrom-Json
foreach ($item in $largeWebapps) {
Write-Host "Processing large webapp: $($item.webappname)"
az webapp config set `
--resource-group $rg `
--name $item.webappname `
--slot "staging" `
--windows-fx-version "DOTNET|10.0"
}

- template: fulfilment-webjob-deployment.yml
parameters:
AzureSubscription: ${{parameters.AzureSubscription}}
Expand Down
36 changes: 36 additions & 0 deletions Deployment/templates/fulfilment-webapp-az.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
parameters:
- name: AzureSubscription
type: string
- name: BatchSize
type: string
- name: NewBatchThreshold
type: string
- name: ExchangeSetSize
type: string
values:
- 'small'
- 'medium'
- 'large'

steps:
Comment thread
amren1502129 marked this conversation as resolved.
- powershell: |
Write-Host "##vso[task.setvariable variable=QueuesOptions.batchSize;]${{ parameters.BatchSize }}"
Write-Host "##vso[task.setvariable variable=QueuesOptions.newBatchThreshold;]${{ parameters.NewBatchThreshold }}"
displayName: Set QueuesOptions values - ${{ parameters.ExchangeSetSize }} WebJob

- task: FileTransform@2
displayName: File transform - ${{ parameters.ExchangeSetSize }} WebJob
inputs:
folderPath: '$(Pipeline.Workspace)/ExchangeSetService/*.zip'
enableXmlTransform: false
xmlTransformationRules: ''
jsonTargetFiles: '**/appsettings.json'

- task: AzureCLI@2
displayName: Fulfilment deployment - ${{ parameters.ExchangeSetSize }} WebJob
inputs:
azureSubscription: "${{ parameters.AzureSubscription }}"
scriptType: pscore
scriptLocation: scriptPath
scriptPath: '$(Pipeline.Workspace)/terraformartifact/fulfilment_webjob_deployment.ps1'
arguments: '-terraformJsonOutputFile $(Pipeline.Workspace)/terraformartifact/terraform_output.json -packagePath "$(Pipeline.Workspace)/ExchangeSetService" -packageName "ExchangeSetFulFilmentService.zip" -exchangeSetSize ${{ parameters.ExchangeSetSize }}'
8 changes: 5 additions & 3 deletions Deployment/terraform_conditional_run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cd $env:AGENT_BUILDDIRECTORY/terraformartifact/src
terraform --version

Write-output "Executing terraform scripts for deployment in $workSpace enviroment"
terraform init -backend-config="resource_group_name=$deploymentResourceGroupName" -backend-config="storage_account_name=$deploymentStorageAccountName" -backend-config="key=terraform.deployment.tfplan"
terraform init -upgrade -backend-config="resource_group_name=$deploymentResourceGroupName" -backend-config="storage_account_name=$deploymentStorageAccountName" -backend-config="key=terraform.deployment.tfplan"
if ( !$? ) { echo "Something went wrong during terraform initialization"; throw "Error" }

Write-output "Selecting workspace"
Expand Down Expand Up @@ -65,6 +65,8 @@ Write-Host "##vso[task.setvariable variable=WEB_APP_SLOT_HOST_NAME]$($terraformO
Write-Host "##vso[task.setvariable variable=RESOURCEGROUPNAME;isOutput=true]$($terraformOutput.web_app_resource_group.value)"
Write-Host "##vso[task.setvariable variable=WEBAPPNAME;isOutput=true]$($terraformOutput.web_app_name.value)"
Write-Host "##vso[task.setvariable variable=EssURL;isOutput=true]$env:SERVICE_DNS_URL"
Write-Host "##vso[task.setvariable variable=small_exchange_set_webapps;isOutput=true]$env:small_exchange_set_webapps"
Write-Host "##vso[task.setvariable variable=medium_exchange_set_webapps;isOutput=true]$env:medium_exchange_set_webapps"
Write-Host "##vso[task.setvariable variable=large_exchange_set_webapps;isOutput=true]$env:large_exchange_set_webapps"
Comment thread
amren1502129 marked this conversation as resolved.


$terraformOutput | ConvertTo-Json -Depth 5 > $terraformJsonOutputFile
$terraformOutput | ConvertTo-Json -Depth 5 > $terraformJsonOutputFile
2 changes: 1 addition & 1 deletion Deployment/terraform_conditional_run_apim.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Write-output "Executing terraform scripts for APIM deployment in $workSpace envi

$backendConfigKey = "terraform.deployment.apim.ess.tfplan"
Write-output "Using plan $backendConfigKey"
terraform init -backend-config="resource_group_name=$deploymentResourceGroupName" -backend-config="storage_account_name=$deploymentStorageAccountName" -backend-config="key=$backendConfigKey"
terraform init -upgrade -backend-config="resource_group_name=$deploymentResourceGroupName" -backend-config="storage_account_name=$deploymentStorageAccountName" -backend-config="key=$backendConfigKey"
if ( !$? ) { echo "Something went wrong during terraform initialization"; throw "Error" }

Write-output "Selecting workspace..."
Expand Down
2 changes: 1 addition & 1 deletion Deployment/terraform_conditional_run_apim_v2.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Write-output "Executing terraform scripts for APIM deployment in $workSpace envi

$backendConfigKey = "terraform.deployment.apim.ess.v2.tfplan"
Write-output "Using plan $backendConfigKey"
terraform init -backend-config="resource_group_name=$deploymentResourceGroupName" -backend-config="storage_account_name=$deploymentStorageAccountName" -backend-config="key=$backendConfigKey"
terraform init -upgrade -backend-config="resource_group_name=$deploymentResourceGroupName" -backend-config="storage_account_name=$deploymentStorageAccountName" -backend-config="key=$backendConfigKey"
if ( !$? ) { echo "Something went wrong during terraform initialization"; throw "Error" }

Write-output "Selecting workspace..."
Expand Down
8 changes: 5 additions & 3 deletions Deployment/terraform_conditional_run_v2.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ cd $env:AGENT_BUILDDIRECTORY/terraformartifact/src
terraform --version

Write-output "Executing terraform scripts for deployment in $workSpace enviroment"
terraform init -backend-config="resource_group_name=$deploymentResourceGroupName" -backend-config="storage_account_name=$deploymentStorageAccountName" -backend-config="key=terraform.deployment.v2.tfplan"
terraform init -upgrade -backend-config="resource_group_name=$deploymentResourceGroupName" -backend-config="storage_account_name=$deploymentStorageAccountName" -backend-config="key=terraform.deployment.v2.tfplan"
if ( !$? ) { echo "Something went wrong during terraform initialization"; throw "Error" }

Write-output "Selecting workspace"
Expand Down Expand Up @@ -62,6 +62,8 @@ Write-Host "##vso[task.setvariable variable=ESSManagedIdentity.ClientId]$($terra
Write-Host "##vso[task.setvariable variable=RESOURCE_GROUP_NAME]$($terraformOutput.web_app_resource_group.value)"
Write-Host "##vso[task.setvariable variable=WEB_APP_SLOT_NAME]$($terraformOutput.web_app_slot_name.value)"
Write-Host "##vso[task.setvariable variable=WEB_APP_SLOT_HOST_NAME]$($terraformOutput.web_app_slot_default_site_hostname.value)"
Write-Host "##vso[task.setvariable variable=small_exchange_set_webapps;isOutput=true]$env:small_exchange_set_webapps"
Write-Host "##vso[task.setvariable variable=medium_exchange_set_webapps;isOutput=true]$env:medium_exchange_set_webapps"
Write-Host "##vso[task.setvariable variable=large_exchange_set_webapps;isOutput=true]$env:large_exchange_set_webapps"
Comment thread
amren1502129 marked this conversation as resolved.


$terraformOutput | ConvertTo-Json -Depth 5 > $terraformJsonOutputFile
$terraformOutput | ConvertTo-Json -Depth 5 > $terraformJsonOutputFile
6 changes: 3 additions & 3 deletions MockApiDeployment/src/Modules/Webapp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resource "azurerm_windows_web_app" "fulfillment_webapp" {
site_config {
application_stack {
current_stack = "dotnet"
dotnet_version = "v8.0"
dotnet_version = "v10.0"
}

always_on = true
Expand All @@ -43,7 +43,7 @@ resource "azurerm_windows_web_app" "scs_fss_mock_webapp" {
site_config {
application_stack {
current_stack = "dotnet"
dotnet_version = "v8.0"
dotnet_version = "v10.0"
}

always_on = true
Expand All @@ -69,7 +69,7 @@ resource "azurerm_windows_web_app" "ess_webapp" {
site_config {
application_stack {
current_stack = "dotnet"
dotnet_version = "v8.0"
dotnet_version = "v10.0"
}

always_on = true
Expand Down
Loading
Loading