Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is EntraExporter compatible with Azure Automation+Managed Identity+Storage Account? #77

Open
FlowRush opened this issue Aug 9, 2024 · 2 comments

Comments

@FlowRush
Copy link

FlowRush commented Aug 9, 2024

Hi, I saw that this PowerShell module can be integrated with an Azure DevOps pipeline and repository, but is this module also compatible with Azure Automation+Managed Identity+Storage Account? What I am trying to achieve as a goal is to create a scheduled runbook within Azure Automation than can dump the JSON files of the Entra settings inside a file share of a storage account.

So far, I have created these resources, configured the authentication and combined the scripts of Connect-EntraExporter and Export-Entra into a runbook of the AA account. When I test it, it seems to connect via MS Graph towards the subscription, but it does not export or transfer the JSON files to the file share within the storage account then.

Is what I am doing here, supported with EntraExporter? If yes, can anyone help me out further?

I have added the code as an attachment.
I have also added the test result of the runbook, at the very end of if, there is one error message popping up: "No active connection. Run Connect-EntraExporter or Connect-MgGraph to sign in and then retry."

Connect-EntraExporter.txt

RunbookTestresult.txt

@FlowRush
Copy link
Author

Hello, can anyone of the developers of EntraExporter respond?
I have tried to make it run as a script and to schedule it under a runbook via Azure Automation, but I kept running against numerous error messages, and sometimes the exports of JSON files towards the storage account would not happen.

I am now trying to make a workable script of EntraExporter by combining Connect-EntraExporter.ps1 and Export-Entra.ps1 into one, but that does not seem to work either.

I could use some help, thanks.

@merill
Copy link
Contributor

merill commented Sep 12, 2024

Have you tried to run locally and view the export of json files?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants