Managed Identity generation ADF

%3CLINGO-SUB%20id%3D%22lingo-sub-2255926%22%20slang%3D%22en-US%22%3EManaged%20Identity%20generation%20ADF%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2255926%22%20slang%3D%22en-US%22%3E%3CP%3EDear%20community%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20building%20an%20ADF%20using%20DevOps%20GIT%20and%20publishing%20the%20factory%2C%20it%20seems%20that%20the%20required%20tag%20for%20Managed%20Identity%20generation%20is%20not%20generated%20(%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fdata-factory-service-identity%23generate-managed-identity-using-an-azure-resource-manager-template%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fdata-factory%2Fdata-factory-service-identity%23generate-managed-identity-using-an-azure-resource-manager-template%3C%2FA%3E).%20When%20trying%20to%20release%20this%20ADF%20to%20different%20environment%20using%20DevOps%20Pipelines%2C%20then%20the%20Managed%20Identity%20is%20not%20generated%20and%20the%20release%20fails.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20could%20open%20the%20publish%20branch%20in%20VS%20Code%2C%20modify%20it%2C%20commit%2Fpull%20it%2C%20but%20I'm%20a%20bit%20afraid%20that%20upon%20further%20changes%20through%20ADF%20editor%20and%20the%20next%20publish%2C%20this%20will%20just%20be%20overwritten%20again.%20Isn't%20there%20any%20option%20somewhere%20to%20add%20this%20tag%20in%20the%20generated%20template%20consistently%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Dear community,

 

When building an ADF (using DevOps GIT for version control) and publishing the factory, it seems that the required tag for Managed Identity generation is not generated (https://docs.microsoft.com/en-us/azure/data-factory/data-factory-service-identity#generate-managed-i...). When trying to release this ADF to different environment using DevOps Pipelines, then the Managed Identity is not generated and the release fails.

 

I could open the publish branch in VS Code, modify it, commit/pull it, but I'm a bit afraid that upon further changes through ADF editor and the next publish, this will just be overwritten again. Isn't there any option somewhere to add this tag in the generated template consistently?

 

Thanks.

1 Reply
Found a workaround here: https://www.alexvolok.com/2020/adf-devops-yaml-basic/. Requires to add an extra template/parameter file for a blank ADF and deploy that one before the ADF generated template. Not an ideal solution, but it works.

Also created a topic with Microsoft to add the option to generate the MI directly in the ADF publish: https://feedback.azure.com/forums/270578-data-factory/suggestions/43088145-add-managed-identity-opti...