Azure Data Factory Old Security->Credential not clear after deploy

Lee, Steven Hong Sing 1 Reputation point


I was testing with the UserAssignedManagedIdentity credential and I created 2 credentials with the same UserAssignedManagedIdentity but different names(UserAssignedManagedIdentity & credentialUAMI). I ran my pipeline to deploy using the dev branch and the live instance show the 2 credentials.

Now I decided to clean up the credentials as both are the same. In fact I just want to rename the credential but this can't be done. That's why I end up created another with the new name. I merge my dev branch to master branch after clean up and my master branch now show only 1 credential(credentialUAMI). I redeploy using my pipeline with my master branch, everything was ok except the live instance still

showing 2 credentials. The deleted credential(UserAssignedManagedIdentity) is still there.

Live Instance showing 2 credentials

master branch 1 credential

I've check the ARMTemplateForFactory.json from the generated artifacts in the pipeline and it show only 1 credential. I'm using the following code in my deploy taskUser's image

I try to manually delete the credential in live instance and was not able to publish it as my ADF was connected to the Git. Any idea what I can do to get rid of the unwanted credential?

Should I set the deploymentMode for the AzureResourceManagerTemplateDeployment@3 task to 'Complete' as the default is 'Incremental'? Will this help?

Thanks in advance.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,782 questions
{count} votes

1 answer

Sort by: Most helpful
  1. BhargavaGunnam-MSFT 27,741 Reputation points Microsoft Employee

    The issue was resolved with a workaround: disconnecting from Git, performing cleanup in the live instance, and then reconnecting afterward.

    Please refer to the following Microsoft document for instructions on how to perform this:"

    0 comments No comments