Azure Policy Cosmos DB Disable Synapse Link

89 Views Asked by At

I am looking to put an azure policy in place to deny the ability to enable synapse link on cosmosDB.

There are no suitable built in policies. I have tried creating my own under if Microsoft.Synapse/privateLinkHubs is true then deny creation. but it still allows creation.

I suspect as it may be enabled at cosmosdb level it may not be possible to deny this, but would be great to get confirmation.

Thanks :)

1

There are 1 best solutions below

0
On

@cavematt You can create a custom policy to deny the ability to enable synapse link on cosmosDB.

Policy Definition: enter image description here

enter image description here