Forum Discussion
luistorres
Apr 21, 2023Copper Contributor
Error BCP109: The type "Microsoft.KeyVault/vaults/secrets" does not contain function "getSecret"
Hi, I am trying to pass the secret value as a secure parameter to a Bicep module, but I am getting the error: Error BCP109: The type "Microsoft.KeyVault/vaults/secrets" does not contain function "get...
MattLunzer
Microsoft
Apr 24, 2023Perhaps I'm wrong, but I do not publicly see an API version 2023-02-01 for the Microsoft.KeyVault resource type, https://learn.microsoft.com/en-us/azure/templates/microsoft.keyvault/allversions. Regardless, in my case, this example worked for me https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/bicep-functions-resource#getsecret. HTH.