Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure应用程序服务应用程序设置未覆盖.NET Core 3.1应用程序的application.json数组设置_.net_Azure_Configuration_Core_Appsettings - Fatal编程技术网

Azure应用程序服务应用程序设置未覆盖.NET Core 3.1应用程序的application.json数组设置

Azure应用程序服务应用程序设置未覆盖.NET Core 3.1应用程序的application.json数组设置,.net,azure,configuration,core,appsettings,.net,Azure,Configuration,Core,Appsettings,我们在Microsoft Azure上部署了一个.NET Core 3.1应用程序。 在应用程序的application.json文件中,我们有以下内容: { "Settings": { "ServicesURIs": [ { "Name": "Features", "URL": "https://abc.azurewebsites.n

我们在Microsoft Azure上部署了一个.NET Core 3.1应用程序。 在应用程序的application.json文件中,我们有以下内容:

{
"Settings": {
    "ServicesURIs": [
      {
        "Name": "Features",
        "URL": "https://abc.azurewebsites.net",
        "Port": "443",
        "ScopeUri": "api://xxxxxx",
        "enabled": "true"
      },
      {
        "Name": "Questions",
        "URL": "https://def.azurewebsites.net",
        "Port": "443",
        "ScopeUri": "api://XXXXX",
        "enabled": "true"
      }
    ]
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "AllowedHosts": "*",
  "pwa": {
    "cacheId": "v1.3",
    "strategy": "networkFirst",
    "registerWebmanifest": true,
    "routesToPreCache": "/"
  }
} 
我希望覆盖Azure中应用程序服务配置中应用程序设置部分的URL属性

根据文档和大量在线博客,我目前正在配置刀片服务器中指定以下应用程序设置:

Name= Settings:ServicesURIs:0:URL
Value= https://Somevalidurl.azurewebsites.net
但是我发现应用程序没有使用门户配置中的值,并且总是尝试使用.json文件中的值

我已尝试将名称指定为

Settings__ServicesURIs__0__URL
(其中“:”替换为双下划线)

在Azure中注册设置后,我已重新启动应用程序服务

我在Incognito中使用Chrome进行测试,以确保缓存不起作用

亲切问候,, 里安