synapse bicep code failing with Values for request parameters are invalid: keyvaultproperties.keyvaulturi
I have got a synapse workspace bicep code below, trying to add double encryption but currently faced with the error below.Tried different things to no avail, the issue here is that the code was decompiled from an ARM template, so not sure if the key syntax is correct.
key: {
name: 'default'
keyVaultUrl: 'https://my-keyvault.vault.azure.net/keys/my-key/xxxxxxxx'
}
{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"InvalidValuesForRequestParameters","message":"Values for request parameters are invalid: keyvaultproperties.keyvaulturi."}]}
resource create_synapse_workspace 'Microsoft.Synapse/workspaces@2021-06-01' = {
name: synapse_workspace_name
location: location
tags: my_tags
identity: {
type: 'SystemAssigned,UserAssigned'
userAssignedIdentities: {
'${synapse_identity.id}': {}
}
}
properties: {
defaultDataLakeStorage: {
createManagedPrivateEndpoint: false
accountUrl: accountURL
filesystem: filesystem
}
// encryption: {}
encryption: {
cmk: {
kekIdentity: {
userAssignedIdentity: mi
useSystemAssignedIdentity: false
}
key: {
name: 'default'
keyVaultUrl: 'https://my-keyvault.vault.azure.net/keys/my-key/xxxxxxxx'
}
}
}
managedVirtualNetwork: 'default'
managedResourceGroupName: null
sqlAdministratorLogin: adminaccount
sqlAdministratorLoginPassword: adminpassword
privateEndpointConnections: [
]
managedVirtualNetworkSettings: {
preventDataExfiltration: false
}
workspaceRepositoryConfiguration: {
accountName: account_name
collaborationBranch: branch
repositoryName: repo
rootFolder: folder
type: type
}
trustedServiceBypassEnabled: false
publicNetworkAccess: 'Disabled'
}
}