microsoft / EntraExporter

PowerShell module to export a local copy of an Entra (Azure AD) tenant configuration.
https://aka.ms/EntraExporter
MIT License
568 stars 89 forks source link

Use export tool for B2C Tenants via MSI #44

Closed paul1384 closed 1 year ago

paul1384 commented 1 year ago

Does anyone know if it's possible to use the azureadexporter with an Azure Managed Identity? Ideally would like to set this tool up in an Azure Automation Account to run each day which can login to each B2C tenant and backup all of its settings into a storage account. I can run the tool manually and get the JSON files out but want to look at automating this instead,

merill commented 1 year ago

Yes, you can use Connect-MgGraph -Identity and then run the export.