Azure-docs: Hard coded tenantId and objectId in exported ARM template from Resource Group

Created on 16 Apr 2019  Â·  6Comments  Â·  Source: MicrosoftDocs/azure-docs

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.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

azure-resource-managesvc cxp product-question triaged

All 6 comments

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.

please-close

@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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

monteledwards picture monteledwards  Â·  3Comments

jebeld17 picture jebeld17  Â·  3Comments

ianpowell2017 picture ianpowell2017  Â·  3Comments

Agazoth picture Agazoth  Â·  3Comments

jamesgallagher-ie picture jamesgallagher-ie  Â·  3Comments