Hello,
we have a pipeline in bicep which creates a Synapse workspace.
We would like to change it in order to automatize the creation of the managed private endpoint of the storage account and we followed the bicep API described here:
https://learn.microsoft.com/en-us/azure/templates/microsoft.synapse/2021-06-01/workspaces?tabs=bicep#datalakestorageaccountdetails
so in the property DataLakeStorageAccountDetails we added the flag createManagedPrivateEndpoint with value true and then we added the resourceId with the resource Id of the storage account.
The deploy doesn't work and it ends with the error:
[\r\n {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"{\\r\\n \\\"error\\\": {\\r\\n \\\"code\\\": \\\"ValidationFailed\\\",\\r\\n \\\"message\\\": \\\"Workspace request validation failed, check error details for more information\\\",\\r\\n \\\"details\\\": [\\r\\n {\\r\\n \\\"code\\\": \\\"DefaultDataLakeStorageCannotBeUpdated\\\",\\r\\n \\\"message\\\": \\\"Default data lake storage cannot be updated. resourceId: /subscriptions/............, createManagedPrivateEndpoint: \\\"\\r\\n }\\r\\n ]\\r\\n }\\r\\n}\"\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}"}]}}
Do you know the reason of this error?
Thank you
Regards