Hi,
I am currently trying to define a keyvalue pair in my App configuration resource via a bicep template. However, the template does not allow me to use the slash '/' character in the name of the key. For Spring Boot applications, the default key filter when using App Configuration resource is '/application/*' (see spring-cloud-starter-appconfiguration-config-readme) so the convention would be to prefix the key name with '/application/'. Is there a way to achieve such naming convention using bicep, or do I have to set the values via CLI/Powershell?
Thank you!
To replicate:
resource searchKeyConfiguration 'Microsoft.AppConfiguration/configurationStores/keyValues@2021-03-01-preview' = {
name: '/application/some.config.value' // this causes an error
parent: appConfigServer
properties: {
contentType: 'application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8'
value: '{"uri": "${vaultUri}secrets/somesecret"}'
}
}