I have added below properties to arm template (link) to create storage accounts and encrypt them with customer managed keys.
"keySource": "Microsoft.Keyvault",
"keyvaultproperties": {
"keyname": "xxxx",
"keyversion": "xxxxxx",
"keyvaulturi": "xxxxxxx"
}
But when I try to create this resource I get
"Missing pre-requisites to enable EncryptionAtRest/Customer Managed Key for this storage account."