【问题标题】:Web Config file to Azure PortalWeb Config 文件到 Azure 门户
【发布时间】:2017-10-04 14:19:57
【问题描述】:

我的 Web 应用部署在 Azure 门户中。我想从我的解决方案中删除整个 web.config 文件,并想在 Azure 中对其进行配置。是否可以这样做,如果可能的话,我需要在哪里提供 web 配置的 azure 值,例如 appSettings、system.web、azure 中的运行时。提前致谢

【问题讨论】:

    标签: azure azure-web-app-service


    【解决方案1】:

    是否可以这样做,如果可能的话,我需要在哪里提供 web 配置的 azure 值,例如 appSettings、system.web、azure 中的运行时。

    是的,我们可以使用App Service Editor (Preview) 配置它们。我们可以从以下网址访问它。但它也包含在您的 Azure 解决方案中。

    https://{yourWebsiteName}.scm.azurewebsites.net/dev/wwwroot/web.config
    

    我们还可以使用Azure appsetting 配置不想包含在 web.config 中的敏感信息。

    【讨论】:

    • 我已经浏览了应用程序服务编辑器,我基本上理解的是可以在运行时编辑 Web 配置,但这里不是我想从我的解决方案中删除 Web 配置文件的场景我将在 azure 门户中配置它,随着开发的进行,我可以将未来的设置添加到配置文件中
    • 您介意分享一下为什么要删除 web.config 文件吗?如果我们不想在 web.config 中保存敏感信息,我们可以在 Azure WebApp appsetting 中设置它。
    猜你喜欢
    • 1970-01-01
    • 2020-06-03
    • 1970-01-01
    • 2023-01-25
    • 1970-01-01
    • 1970-01-01
    • 2023-03-06
    • 2022-11-12
    • 1970-01-01
    相关资源
    最近更新 更多