![](/img/trans.png)
[英]How to log an error when Azure App Configuration reload fails
我正在使用 Azure 應用程序配置,並啟用了使用輪詢 model 的動態配置,如此處所述。 我的目標是在由於任何原因重新加載配置失敗時記錄一條錯誤消息,例如不正確的密鑰庫引用。 這是添加 Azure App Configuration 作為配置源的方法。 請注意, AddAzureAppConfi ...
[英]How to log an error when Azure App Configuration reload fails
我正在使用 Azure 應用程序配置,並啟用了使用輪詢 model 的動態配置,如此處所述。 我的目標是在由於任何原因重新加載配置失敗時記錄一條錯誤消息,例如不正確的密鑰庫引用。 這是添加 Azure App Configuration 作為配置源的方法。 請注意, AddAzureAppConfi ...
[英]Fetching KeyVault values through App Configuration
我想直接從 IConfiguration 獲取 App Configuration 和 KeyVault 值。 這是來自 .Net 7 中的控制台應用程序程序.cs: 擴展方法: 通過此設置,我可以像這樣獲取我的 KeyVault 密鑰: 但我寧願使用 IConfiguration 獲取我的密鑰,如 ...
[英]Overriding NLog settings with Azure Configuration
我有一個應用程序在 Azure 中運行並記錄到數據庫。 我有來自 appsettings.json 文件的 NLog 設置,一切似乎都運行良好。 但是,現在我想通過向 Azure 中的應用程序配置添加應用程序設置來覆蓋日志記錄規則,但它失敗了。 這是應用程序設置中的 NLog 條目。json: 這一 ...
[英]Refreshing Azure App Configuration Based on Label
我創建了一個 Azure 應用程序配置並向其添加了幾個功能門按照文檔,我向每個添加了不同的 label 以表示不同的環境。 當我沒有定義標簽和功能時,Program.cs 中的以下代碼片段有效 我所說的工作是指功能加載和更改 Azur 應用程序配置中的功能會導致在 10 到 15 秒內更改為熱更改。 ...
[英]Why is my Azure App Configuration instance is being throttled?
我有一個 Azure 應用程序配置的基本實例。 它應該每天允許 1000 個請求。 前一天的使用圖表如下所示: 但我無法再打開 Configuration Explorer 或 Feature Manager。 收到這些錯誤: 我不明白為什么請求開始受到限制,因為每天的使用量遠不及 1000。 ...
[英]How to use Service Principal/Managed Identity to access Azure App Configuration?
我需要為 Azure 應用程序配置存儲禁用本地身份驗證方法(訪問密鑰)。 目前對於 ASP.NET Framework 應用程序,我正在使用以下內容從我的應用程序訪問 App Configuration Store: ${ConnectionString} = "Endpoint=https:/ ...
[英]Forbidden Error When JSON From A File Imported Using Azure CLI
我正在嘗試使用 Azure CLI 導入 JSON 文件的內容,但我不斷收到禁止錯誤,如下面的快照所示。 任何指針/建議將不勝感激。 我使用了下面給出的命令。 該命令很簡單,並顯示在下面給出的代碼片段中。 ...
[英]Signed-in user claims missing under Profile page in ASP.NET Core Web App calling the Microsoft Graph
我有一個帶有重定向 uri 和前端通道注銷 url 作為 https://localhost:44321/signin-oidc 的單租戶應用程序我可以對應用程序進行身份驗證,但在選擇配置文件后,它不顯示登錄用戶聲明而是拋出異常 應用設置.json :{ "AzureAd": { "Instance ...
[英]How can I configure an Azure Function to work with dynamic configuration using Azure App Configuration?
我正在嘗試編寫一個作為多租戶工作的 Azure Function。 當 clientId 作為參數來自客戶端時,我需要使用標簽從 Azure App Configuration 獲取其配置。 讓我用偽代碼解釋一下; 我正在使用.Net 6 Azure Function 隔離。 我在 Program ...
[英]Setting up User Secrets in dot net core throws exception
我在 secret.json 中設置用戶機密,這會引發錯誤。 首先我執行了這個成功的 - 但是當我執行dotnet user-secrets set "MySecret" "12345" 收到以下異常 - ...
[英]Use Newtonsoft.Json in isolated-process Azure Functions in .Net 6.0
我目前使用 Azure App Configuration 來存儲所有配置數據。 當我讀取數據時,我想使用Newtonsoft.Json而不是默認的System.Text.Json將我的數據正確轉換為自定義類型。 不幸的是,我找不到告訴Program.cs文件中的HostBuilder使用Newto ...
[英]Dynamically update ASP.NET config on demand using Azure App Configuration
我想做什么:我正在嘗試使用 Azure 應用程序配置作為源並使用 WebHook 端點訂閱鍵值修改事件的 EventGrid 按需配置 ASP.Net 配置的更新。 我的問題是:當事件到達端點時,代碼執行無誤,但配置畢竟沒有刷新。 背景信息,以及我嘗試過的內容:我還嘗試使用帶有哨兵密鑰的輪詢方法,效 ...
[英]Azure - Reading App Config directly from Function App's Configuration in azure
TLDR 我可以通過 Function App Configuration variables 部分自動從 App Configuration 檢索值,類似於 AWS 檢索 App Config/Secret 值我來自 AWS 背景,我習慣做的一件事是將我的敏感信息存儲在 App Config/ ...
[英]accessing azure app configuration service values during dependency injection in a Function App
按照下面的代碼,我連接到 program.cs 中的 azure 應用程序配置服務。 這已經過測試,我可以使用 function 應用程序中的配置設置。 但我還想配置其他服務,例如 blob 容器客戶端。 我可以訪問 ConfigureServices 中的應用程序配置值嗎? ...
[英]Caching options for Azure App Configuration with JS sdk
在使用 Azure App Config 進行功能標記時緩存或以其他方式減少請求數量的任何想法? .NET sdk 文檔確實提供了一些選項,包括用於設置緩存過期時間的.SetCacheExpiration方法,但在 js sdk 中似乎沒有任何類似的東西。 任何指針將不勝感激 - 謝謝! 上下文: ...
[英]Dynamic Configuration Change from Azure App Configuration of azure functions
我使用在 java 上編寫的 azure http 函數來處理基於 webhook 的不同事件。 這些功能的許多配置都存儲在 azure 應用程序配置中,因此我們可以在不重新啟動 function 應用程序的情況下動態更改配置。 作為事件的處理程序,我有一個事件網格觸發了 function,它僅在配 ...
[英]How to use multiple Azure App Configurations in one client application
假設我們有 2 個 azure 應用程序配置(TeamConfig 和 CommonConfig)和一個客戶端應用程序(ClientApp)。 案例一: ClientApp 可以同時使用 TeamConfig 和 CommonConfig 嗎? 案例 2: TeamConfig 可以直接鏈接到 Co ...
[英]How to assign an App Service system managed identity App Configuration Data Reader role for a specific App Configuration resource in ARM
我想將角色分配從我的應用配置添加到我的應用服務。 在Azure portal中,我可以這樣做: App Configuration -> Access control (IAM) -> Add role assigment -> App Configuration Data Rea ...
[英]How can i use modules with AppConfiguration, to only get the KeyValues?
我有這個模塊 AppService AppServicePlan AppConfiguration AppConfigurationKeyValues(這個模板只有值代碼和一些參數,沒有資源,應用配置) Main.Bicep 中我調用 AppConfigurations 配置的部分是: 模塊 A ...
[英]How do I set json file(json file's path) to a value in Azure App settings?
如何將 json 文件(json 文件的路徑)設置為 Azure 應用程序設置中的值? 我將 Firebase SDK 添加到服務器。 我將“/my-json-file.json”定義為 GOOGLE_APPLICATION_CREDENTIALS 鍵的值。 因為“/”表示“\site\wwwr ...