Error provisioning Azure AppConfiguration, wrong tenant id #5696
-
When I start my application I get the following Azure AppConfiguration error:
Apparently, my application sends the wrong tenant id, not sure why. There is nothing in the Aspire documentation that says the tenant id must be added to the configuration, but to overcome the problem I have added my Azure tenant id to the appsettings.json file (edited for privacy)
My Program.cs calls a method to configure AppConfiguration the following way:
The problem is that I do not know how to configure AppConfiguration with the correct credentials. So, I tried a different approach I have found somewhere:
The method AddAzureAppConfiguration is part of the Microsoft.Extensions.Configuration.AzureAppConfiguration library. This doesn't work. An additional problem is that this AddAzureAppConfiguration returns IConfigurationBuilder, while I need IResourceBuilder. Any idea on how to resolve this issue? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That approch doesn't look like it'll help with aspire. Can you share more information about what application is throwing the error? Does the dashboard load and show errors? Which errors and what resource does it come from? Can you share? |
Beta Was this translation helpful? Give feedback.
Update:
it turns out that my Azure account was no longer the resource owner. it's all working now.