feat(azure): subscription as parameter (#1526)

This commit is contained in:
Nacho Rivera
2022-11-29 13:46:38 +01:00
committed by GitHub
parent 8f802f1241
commit e5e01e51a9
4 changed files with 32 additions and 8 deletions

View File

@@ -468,6 +468,7 @@ def display_summary_table(
entity_type = "Account"
elif provider == "azure":
entity_type = "Tenant Domain"
if findings:
current = {
"Service": "",
@@ -533,6 +534,10 @@ def display_summary_table(
print(
f"\n{entity_type} {Fore.YELLOW}{audit_info.audited_account}{Style.RESET_ALL} Scan Results (severity columns are for fails only):"
)
if provider == "azure":
print(
f"\nSubscriptions scanned: {Fore.YELLOW}{' '.join(audit_info.subscriptions.keys())}{Style.RESET_ALL}"
)
print(tabulate(findings_table, headers="keys", tablefmt="rounded_grid"))
print(
f"{Style.BRIGHT}* You only see here those services that contains resources.{Style.RESET_ALL}"