Hi
I have an ASP.Core website that I’m trying to apply a JSON Variable replacement transform on, however it’s not working. The appsettings.json file that i’m trying to change is:
{
"HttpClientSettings": {
"LgApiUri": "http://localhost:6010/api/lg",
"ManagerApiUri": "http://localhost:49285/api",
"BingMapUrl": "http://www.bing.com/api/maps/mapcontrol?callback=GetMap"
},
"IdentitySettings": {
"Authority": "https://auth-test.example.co.uk/identity",
"ClientId": "dev",
"ClientSecret": "localexample",
"SignedOutRedirectUri": "http://localhost:4008/"
},
"Logging": {
"IncludeScopes": false,
"LogLevel": {
"Default": "Warning"
}
}
}
most of the config correctly changes upon deployment, however, this one does not:
"IdentitySettings": {
"Authority": "https://auth-test.example.co.uk/identity",
"ClientId": "dev",
"ClientSecret": "localexample",
"SignedOutRedirectUri": "http://localhost:4008/"
},
the “Authority” field should change to “https://auth.example.co.uk/identity”, but instead it doesn’t change. I have set up a project variable like so:
However, when i create a release and deploy the site, it still shows as auth-test.
Any help would be greatly appreciated.