microsoft / EntraExporter

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

QUESTION: Is it possible to authenticate using managed identity in the Azure pipeline? #63

Closed ztrhgf closed 7 months ago

ztrhgf commented 8 months ago

I am trying to figure out whether it is possible to use "workload identity federation service connection" to authenticate instead of providing secret/certificate?

Does anyone have any experience with this topic?

berchouinard commented 7 months ago

I have used the yaml file from this website https://doitpsway.com/how-to-easily-backup-your-azure-environment-using-entraexporter-and-azure-devops-pipeline and modified it to add a task to it, refer to this website https://gotoguy.blog/2023/09/15/connect-to-microsoft-graph-in-azure-devops-pipelines-using-workload-identity-federation/ for the workload identity federation and the task to make it work.