According to Azure Key Vault
pricing, it is charged per transaction (or operation). At the time of writing this question, the pricing for secrets is: $0.03/10,000 transactions
.
It is mentioned that
Every successfully authenticated REST API call counts as one operation.
and
Examples of operations for secrets—create/update, get, list.
This is all clear. But I'm having difficulty in understanding what is meant by "Transaction" or "Operation" in context of dotnet6
web application
, where we use Azure Key Vault
as configuration provider as following:
builder.Configuration.AddAzureKeyVault(vaultUri,credentials,
new AzureKeyVaultConfigurationOptions
{
//...
});
And then inside a controller, we can simply access any secret like following:
var mySecret1 = _configuration["MySecret1"];
var mySecret2 = _configuration["MySecret2"];
I want to understand, which of the following is true:
- All they secrets are loaded at once on application startup using
list
operation. And hence all subsequent calls to_configuration["MySecret1"]
will not be counted as operation/transaction that is charged? i.e, only one operation.
OR
- Every single call to
_configuration["MySecret1"]
will be charged?
I have contacted the support in this regard, but they are not able to answer this in context of dotnet application. We are planning to use this service in a large web application, which is still growing. Hence it is important to understand at this point how we'll be charged.
Any help would be appreciated.