OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

is it posible to access Azure App Configuration via URL or conected some how as enviroment setting of App Service?

  • Thread starter Thread starter Alejandro Barrios
  • Start date Start date
A

Alejandro Barrios

Guest
On my App Service i have several KeyVaults pinting to diferents URL's. I create a layer on App Configuration that depending if the Label point to Dev-DB, QA-DB, o Stage-DB Change the database of the App Service.

All my app services have on Environment variables, inside Connection strings all the diferent databases. Inside of the Value i have this: "@Microsoft.KeyVault(SecretUri=https://{MyKeyvault}.vault.azure.net/secrets/{MyVariable}/)+\"Application Name={UserOfDB};\"",

And i want to use somthing like this: "@Microsoft.AppConfiguration(https://{MyAppConfig}.azconfig.net;Id={IdConfig};Secret={MySecret};Key={MyVariable};Label=${MyEnviromentVariable}) + \"Application Name={UserOfDB};\"",

But it gave me this error: Identity: System assigned managed identity Status: InvalidSyntax Error details: Reference was not able to be resolved because invalid reference syntax found.

I just need a way to easy switch between Databases without losing my mind in the process.
<p>On my App Service i have several KeyVaults pinting to diferents URL's.
I create a layer on App Configuration that depending if the Label point to Dev-DB, QA-DB, o Stage-DB Change the database of the App Service.</p>
<p>All my app services have on Environment variables, inside Connection strings all the diferent databases.
Inside of the Value i have this:
<code>"@Microsoft.KeyVault(SecretUri=https://{MyKeyvault}.vault.azure.net/secrets/{MyVariable}/)+\"Application Name={UserOfDB};\"",</code></p>
<p>And i want to use somthing like this:
<code>"@Microsoft.AppConfiguration(https://{MyAppConfig}.azconfig.net;Id={IdConfig};Secret={MySecret};Key={MyVariable};Label=${MyEnviromentVariable}) + \"Application Name={UserOfDB};\"",</code></p>
<p>But it gave me this error:
<code>Identity: System assigned managed identity Status: InvalidSyntax Error details: Reference was not able to be resolved because invalid reference syntax found. </code></p>
<p>I just need a way to easy switch between Databases without losing my mind in the process.</p>
Continue reading...
 

Latest posts

M
Replies
0
Views
1
Meliodas Dragon
M
Top