Azure_Audit_Info' object has no attribute 'audit_resources' #1889
Labels
bug
severity/medium
Results in some unexpected or undesired behavior.
status/waiting-for-revision
Waiting for maintainer's revision
After successful Prowler installation trying to scan Azure environment using --sp-env-auth authentication method, where on Azure side we created Enterprise application and assigned all needed roles in Subscription scope and AAD scope according to your documentation. After successful authentication we get this error message:
/usr/local/bin/python3.9 prowler.py azure --sp-env-auth -M json
Traceback (most recent call last):
File "/opt/prowler2/prowler/prowler.py", line 8, in
sys.exit(prowler())
File "/opt/prowler2/prowler/prowler/main.py", line 106, in prowler
checks_to_execute = load_checks_to_execute(
File "/opt/prowler2/prowler/prowler/lib/check/checks_loader.py", line 28, in load_checks_to_execute
if audit_info.audit_resources:
AttributeError: 'Azure_Audit_Info' object has no attribute 'audit_resources'
python prowler azure --sp-env-auth
Date: 2023-02-13 07:20:14 Traceback (most recent call last):
File "/home/kali/.local/bin/prowler", line 8, in
sys.exit(prowler())
File "/home/kali/.local/lib/python3.10/site-packages/prowler/main.py", line 106, in prowler
checks_to_execute = load_checks_to_execute(
File "/home/kali/.local/lib/python3.10/site-packages/prowler/lib/check/checks_loader.py", line 28, in load_checks_to_execute
if audit_info.audit_resources:
AttributeError: 'Azure_Audit_Info' object has no attribute 'audit_resources'
Environment:
On both installations we get the same error message AttributeError: 'Azure_Audit_Info' object has no attribute 'audit_resources'
Please help us understand our issue
The text was updated successfully, but these errors were encountered: