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

[Bug]: [File: azure_provider.py:333] [Module: azure_provider] CRITICAL: It was not possible to retrieve any subscriptions, please check your permission assignments #4152

Closed
parinitachandan opened this issue Jun 1, 2024 · 3 comments
Labels
bug provider/azure Issues/PRs related with the Azure provider status/needs-triage Issue pending triage

Comments

@parinitachandan
Copy link

Steps to Reproduce

Screenshot 2024-06-01 at 12 20 05 PM

Expected behavior

I expected the script or command to successfully retrieve the Azure subscriptions after configuring the permissions.

Actual Result with Screenshots or Logs

Screenshot 2024-06-01 at 12 20 05 PM

How did you install Prowler?

From pip package (pip install prowler)

Environment Resource

Pycharm (Terminal)

OS used

MacOs

Prowler version

4.2.1

Pip version

21.3.1

Context

I have followed the prowler documentation and have given both Microsoft Entra ID permissions and Subscription scope permissions. Upon running "prowler azure --sp-env-auth" I am encountering the above error.

@parinitachandan parinitachandan added bug status/needs-triage Issue pending triage labels Jun 1, 2024
@jfagoagas jfagoagas added the provider/azure Issues/PRs related with the Azure provider label Jun 3, 2024
@puchy22
Copy link
Contributor

puchy22 commented Jun 4, 2024

Hi @parinitachandan, I will work on your issue.

When I test this case on similar environment than yours the error did not appear, seeing the error I could say that possibly is a permission problem listing subscriptions or there is no subscription to audit in your Azure account. Only with the Directory.Read.All and Policy.Read.All application permissions should it be necessary to list the subscriptions.

To give me more information you could send me a photo with the service principal permissions (like first next example), permissions in the subscription that you want to audit (like second one, to reach that inside subscription/s to audit -> IAM -> click on Check access and type the name of your SP) and a run of Prowler with the --log-level ERROR flag.

image image

I await your reply, thank you for using Prowler 🚀

@puchy22
Copy link
Contributor

puchy22 commented Jun 11, 2024

Hi @parinitachandan, are you still having problems with Azure scan? Let me know if the problems persist or if everything has been solved and we can close this issue. I'll keep an eye out for new messages 👍

@jfagoagas
Copy link
Member

Hi @parinitachandan I'll close this issue since we didn't receive any feedback. Please feel free to reopen it if you notice the same behaviour again. You can also let us know if everything is solved now.

Thanks for using Prowler 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug provider/azure Issues/PRs related with the Azure provider status/needs-triage Issue pending triage
Projects
None yet
Development

No branches or pull requests

3 participants