简体   繁体   English

如何在一个客户端应用程序中使用多个 Azure 应用程序配置

[英]How to use multiple Azure App Configurations in one client application

Lets say we have 2 azure application configurations (TeamConfig and CommonConfig) and one client application (ClientApp).假设我们有 2 个 azure 应用程序配置(TeamConfig 和 CommonConfig)和一个客户端应用程序(ClientApp)。

Case 1: Can ClientApp use both TeamConfig and CommonConfig at the same time?案例一: ClientApp 可以同时使用 TeamConfig 和 CommonConfig 吗?

Case 2: Can TeamConfig link directly to CommonConfig?案例 2: TeamConfig 可以直接链接到 CommonConfig 吗?

Side note: I have seen the possibility that TeamConfig can import from CommonConfig.旁注:我已经看到 TeamConfig 可以从 CommonConfig 导入的可能性。 But, what I am looking for is a dynamic link and not a import.但是,我正在寻找的是动态链接而不是导入。 When CommonConfig is updated it is automatically updated all the way down to the ClientApp.当 CommonConfig 更新时,它会一直自动更新到 ClientApp。

For case 1, yes.对于案例 1,是的。

For case 2, no.对于案例 2,没有。

In your application, you can load configuration from multiple App Configuration stores.在您的应用程序中,您可以从多个应用配置商店加载配置。 For example,例如,

configBuilder.AddAzureAppConfiguration("Connection string of CommonConfig");
configBuilder.AddAzureAppConfiguration("Connection string of TeamConfig");

In this sample, what's in TeamConfig will overwrite what's in CommonConfig if there are overlapping keys.在此示例中,如果键重叠,TeamConfig 中的内容将覆盖 CommonConfig 中的内容。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在运行时在 Blazor WebAssembly 客户端应用程序中使用 Azure 应用程序设置作为 appsettings.json 配置? - How to use Azure App Settings in a Blazor WebAssembly Client side application at runtime as appsettings.json configuration? Azure缓存的多种配置 - multiple configurations for azure cache 如何将 Azure 应用程序洞察与 nextjs 应用程序结合使用 - How to use Azure application insights with nextjs app 一个Azure Function应用程序,多个区域:一个或多个Azure Application Insights实例? - One Azure Function App, multiple regions: One or multiple Azure Application Insights instances? 2个域名能否将一个Azure Web应用程序与应用程序网关一起使用,如何使用? - is it possible for 2 domain names to use one azure web app with application gateway and how? 如何使多个租户可以使用Azure本机客户端应用程序? - How to make Azure Native Client Application available to multiple tenants ionic? Azure Signalr + Azure函数+ wpf客户端-如何使用azure函数和自托管的Azure SignalR App创建wpf客户端应用程序 - Azure Signalr +Azure function + wpf client - how to have a wpf client application using azure funtion and self hosted Azure SignalR App Azure 资源管理器模板:如何应用多个 DSC 配置? - Azure resource manager templates: How to apply multiple DSC configurations? 将一个客户端应用程序用于不同的Azure活动目录中的多个Web API - Using one client application for multiple web api's in different azure active directories 如何配置【Azure】应用程序网关以支持多个App服务? - How to configure 【Azure】Application Gateway to support multiple App services?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM