You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Comment written by Cat Coache on 30/11/2020 20:13:59
Hi Alexandre! Thanks for this detailed posting. Really helpful. But I am still a little confused about how you construct "InvoiceConfiguration". From what I check from the dependency injection doc, public class MyOptions { public string MyCustomSetting { get; set; } } Will translate to the following in local.settings.json { "IsEncrypted": false, "Values": { "MyOptions:MyCustomSetting": "Foobar" } } But what we are looking for the service bus trigger connection strin is something like: { "IsEncrypted": false, "Values": { "ServiceBusConnectionString": "Foobar" } } I don't know how to construct the right MyOptions to set connectionstring.
Comment written by Alexandre on 30/11/2020 22:11:26
Hi Cat. Yes that is exactly that. Not sure to understand correctly what you want to do, but concerning the service bus trigger connection string you will not be able to use custom configuration source as it is not recommanded to use that with triggers like I say in my last paragraph: https://uploads.disquscdn.c... Just for you to understand my sample, in it the InvoiceConfiguration options are injected in my IInvoiceService and use there.
Comment written by Paweł Żółtaniecki on 01/02/2021 15:42:38
Thank you for your article. It is really helpful. But I do not understand how it helps in local development environment. On Azure it is recommended to use Managed Identity to be authorized in key vault. How you receive your secrets on local env from the key vault?
Comment written by Alexandre on 09/02/2021 09:42:52
You just have to authorize your user (the one connected to Visual Studio) to access the key vault and it works. What is nice is that the same code will work on Azure (with Managed Identity indeed) and locally (with your user identity).
changed the title [-]You almost no longer need keyvault references for Azure Functions.[/-][+]posts/azure-functions-custom-configuration[/+]on Oct 20, 2021
Repository owner locked and limited conversation to collaborators on Oct 20, 2021
Activity
TechWatching commentedon Oct 19, 2021
Comment written by Cat Coache on 30/11/2020 20:13:59
Hi Alexandre! Thanks for this detailed posting. Really helpful. But I am still a little confused about how you construct "InvoiceConfiguration". From what I check from the dependency injection doc,
public class MyOptions
{
public string MyCustomSetting { get; set; }
}
Will translate to the following in local.settings.json
{
"IsEncrypted": false,
"Values": {
"MyOptions:MyCustomSetting": "Foobar"
}
}
But what we are looking for the service bus trigger connection strin is something like:
{
"IsEncrypted": false,
"Values": {
"ServiceBusConnectionString": "Foobar"
}
}
I don't know how to construct the right MyOptions to set connectionstring.
TechWatching commentedon Oct 19, 2021
Comment written by Alexandre on 30/11/2020 22:11:26
Hi Cat. Yes that is exactly that. Not sure to understand correctly what you want to do, but concerning the service bus trigger connection string you will not be able to use custom configuration source as it is not recommanded to use that with triggers like I say in my last paragraph:
https://uploads.disquscdn.c...
Just for you to understand my sample, in it the InvoiceConfiguration options are injected in my IInvoiceService and use there.
TechWatching commentedon Oct 19, 2021
Comment written by Paweł Żółtaniecki on 01/02/2021 15:42:38
Thank you for your article. It is really helpful. But I do not understand how it helps in local development environment. On Azure it is recommended to use Managed Identity to be authorized in key vault. How you receive your secrets on local env from the key vault?
TechWatching commentedon Oct 19, 2021
Comment written by Alexandre on 09/02/2021 09:42:52
You just have to authorize your user (the one connected to Visual Studio) to access the key vault and it works. What is nice is that the same code will work on Azure (with Managed Identity indeed) and locally (with your user identity).
TechWatching commentedon Oct 19, 2021
Comment written by Paweł Żółtaniecki on 10/02/2021 12:20:01
thank you for you answer. I did not know about such possibilities of VS
TechWatching commentedon Oct 19, 2021
Comment written by John on 17/02/2021 14:28:22
Just to be extra clear... the values inside your local.settings.json, they must correspond to the names of the secrets saved in the vault, right?
[-]You almost no longer need keyvault references for Azure Functions.[/-][+]posts/azure-functions-custom-configuration[/+]