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
[AppConfiguration](https://docs.microsoft.com/en-us/azure/azure-app-configuration/overview) is a new offering from Azure, currently in preview. If you
221
-
wish to use this new service for managing your configuration, then use this AzureAppConfigurationBuilder. `endpoint` is
222
-
required, but all other attributes are optional.
223
-
Previous iterations of this config builder allowed for a `connectionString` to connect to the
224
-
App Configuration service. This method is no longer allowed, and this config builder now exclusively uses [DefaultAzureCredential](https://docs.microsoft.com/en-us/dotnet/api/azure.identity.defaultazurecredential)
225
-
from the Azure.Identity package to handle credentials for connecting to the service.
221
+
wish to use this new service for managing your configuration, then use this AzureAppConfigurationBuilder. Either `endpoint` or `connectionString` are
222
+
required, but all other attributes are optional. If both `endpoint` and `connectionString` are used, then preference is given to the connection string.
226
223
*`endpoint` - This specifies the AppConfiguration store to connect to.
224
+
*`connectionString` - This specifies the AppConfiguration store to connect to, along with the Id and Secret necessary to access the service. Be careful
225
+
not to expose any secrets in your code, repos, or App Configuration stores if you use this method for connecting.
227
226
*`keyFilter` - Use this to select a set of configuration values matching a certain key pattern.
228
227
*`labelFilter` - Only retrieve configuration values that match a certain label.
229
228
*`acceptDateTime` - Instead of versioning ala Azure Key Vault, AppConfiguration uses timestamps. Use this attribute to go back in time
thrownewArgumentException($"Exception encountered while creating connection to Azure App Configuration store.",ex);
106
+
}
107
+
}
108
+
else
109
+
{
110
+
thrownewArgumentException($"An endpoint URI or connection string must be provided for connecting to Azure App Configuration service via the '{endpointTag}' or '{connectionStringTag}' attribute.");
111
+
}
112
+
}
113
+
else
114
+
{
115
+
// If we get here, then we should try to connect with a connection string.
0 commit comments