Hello,
Question based on the following documentation: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-quickstart-create-templates-use-the-portal
How do you deal with ARM templates when you have hard coded tenantId and objectId in them?
Let's say I have web apps, sql databases, key vault, storage, services bus, ... with managed identities, theses ids are therefore used.
Could the export of the templates remove the references to these ids?
As far as I investigated, it seems that the operation must be performed manually.
Many thanks for your help.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Thanks for the feedback! We are currently investigating and will update you shortly.
@bertrandpons - the export function is quite limited. It has to be done manually now.
@bertrandpons Hope that helped answer your question.
Please post this as a product feedback. We have the "Give Product Feedback" button in our documents now to take you directly to the appropriate feedback page.
We will now close this issue. If there are further questions regarding this matter, please tag me in a comment. I will reopen it and we will gladly continue the discussion.
@mumian @Karishma-Tiwari-MSFT Thank you for your replies. Do you know if some improvements are planned for this kind of use case?
I will give a feedback.
@bertrandpons We appreciate your feedback to improve our products. You can provide the feedback by going to Product feedback button on the bottom of the doc.
@bertrandpons - you can export a template from the deployment history rather than from the current state of the resource group. It will give you a template that is easier to reuse. Otherwise, when you export from the state of the resource group, you often need to customize it a bit. You could turn those values into parameters.