Reputation: 421
Adding Customer managed key to brand new Data factory failing with below error message. Same error when i tried from Azure Portal or REST API (PUT https://management.azure.com/subscriptions/#####/resourceGroups/####/providers/Microsoft.DataFactory/factories/ )
I just created Data factory and it is empty. Following below link https://learn.microsoft.com/en-us/azure/data-factory/enable-customer-managed-key
{
"error": {
"code": "AddCMKToExistingFactoriesWithEntities",
"message": "Update factory failed. You cannot add CMK settings for factories with existing entities",
"target": null,
"details": null
}
}
Upvotes: 1
Views: 1320
Reputation: 3715
I also encounter this issue, and nobody gives me a satisfactory answer in the community.
After a while, I found I shouldn't believe Azure UI in some situations. Especially for some unimportant features.
az datafactory create --location "Japan East" \
--name "ADF-CMK" \
--resource-group "<YOUR GROUP>"
Upvotes: 0
Reputation: 421
Microsoft resolved this issue last week. Able to add CMK keys to new data factories with no entities.
Upvotes: 0
Reputation: 1786
Can I suggest you to please try and create a new test ADF and select the Enable encryption using CMK ? It should work that way .
Upvotes: 0