小编asd*_*psd的帖子

是否有解决方法可以保留 Bicep 模板中未定义的应用程序设置?

主二头肌


resource appService 'Microsoft.Web/sites@2020-06-01' = {
  name: webSiteName
  location: location
  properties: {
    serverFarmId: appServicePlan.id
    siteConfig: {
      linuxFxVersion: linuxFxVersion

      appSettings: [
        {
          name: 'ContainerName'
          value: 'FancyContainer'
        }
        {
          name: 'FancyUrl'
          value: 'fancy.api.com'
        }
      ]
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

基础结构发布过程成功运行,并且应用程序设置设置正确,之后我运行节点应用程序构建和发布,其中 Azure DevOps 发布管道将一些与应用程序相关的配置添加到应用程序设置。(例如 API 密钥、API URL),一切都运行良好。

但是,如果我必须重新发布基础架构,例如,我使用存储帐户扩展我的环境,则应用程序发布设置的应用程序设置将丢失。

是否有解决方法可以保留 Bicep 模板中未定义的应用程序设置?

azure azure-resource-manager azure-web-app-service azure-bicep

14
推荐指数
1
解决办法
7633
查看次数

Why can't connect my .net core container to the SQL Server docker container?

It fails to connect to the SQL Server container, even if the backend is running in local and the database in docker.

I tested with Azure SQL and everything worked perfectly.

Error(s):

  1. After docker-compose up, and try to add element to the list:
2021-07-13 21:43:32.79 Logon       Login failed for user 'sa'. Reason: Failed to open the explicitly specified database 'AsdDB'. [CLIENT: XXX.168.XX.3]
backend    | fail: Microsoft.EntityFrameworkCore.Database.Connection[20004]
backend    |       An error occurred using the connection to database 'AsdDB' on server 'sqlserver'. …
Run Code Online (Sandbox Code Playgroud)

sql-server entity-framework-core docker-compose asp.net-core

2
推荐指数
1
解决办法
1934
查看次数