I got stuck with this setup on Azure release variable using the classic setting. With .net i can assign the value like I tried below and it didn't work. 'AppNamespace1.Domain1.Category1.Configuration'.Endpoints.ProcessorEndpoint.EndpointURL and AppNamespace1.Domain1.Category1.Configuration.Endpoints.ProcessorEndpoint.EndpointURL
My appsettings.json look like this and I am not allowed to change "AppNamespace1.Domain1.Category1.Configuration".
appsettings.json
{
"AppNamespace1.Domain1.Category1.Configuration": {
"Endpoints": {
"ProcessorEndpoint": {
"EndpointURL": "http://localhost:50576/RequestExecutor/",
"ClientKey": "DefaultClient"
},
}
}
Expected result
"EndpointURL": "NEW VALUE HERE"
Below is a sample to update the value of
EndpointURLin theappsettings.jsonfile.You can try to run the PowerShell script mentioned here in your pipeline.
appsettings.jsonupdate-json.ps1: PowerShell script to update the JSON file.Result