synapse bicep code failing with Values for request parameters are invalid: keyvaultproperties.keyvaulturi

MrFlinstone 581 Reputation points
2024-07-16T22:45:29.1566667+00:00

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'

  }



}
Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,994 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.