prismacloud-api-python icon indicating copy to clipboard operation
prismacloud-api-python copied to clipboard

The script is unable to pick the Azure container registries deployed on the subscription

Open aditya-mnscorp opened this issue 2 years ago • 1 comments

We have created two container registries under one subscription for which we have already configured a reader role assigned service principle. Post running the script we are seeing below result where the script is only identifying the already onboarded Registries on Prisma cloud but unable to pick the new one from Azure. Please find the below output after script is run. The filtering all discovered registries is empty. root@aks-agentpool-67258545-vmss000000:/# python3 test.py API - Getting all cloud discovered assets ...[{'credentialId': 'ACR-auto-Onboarding-Test', 'provider': 'azure', 'serviceType': 'azure-aks', 'region': 'northeurope', 'defended': 0, 'total': 2, 'collections': ['All', 'Resources collection 1'], 'accountID': 'xxxx', 'agentless': True, 'nodes': 2, 'accountName': 'ACR-auto-Onboarding-Test', 'undefended': 2, 'defenseCoverage': 0}, {'credentialId': 'ACR-auto-Onboarding-Test', 'provider': 'azure', 'serviceType': 'azure-vm', 'region': 'northeurope', 'defended': 0, 'total': 3, 'collections': ['All', 'Resources collection 1'], 'accountID': 'xxxx', 'agentless': True, 'nodes': 0, 'accountName': 'ACR-auto-Onboarding-Test', 'undefended': 3, 'defenseCoverage': 0}] Success. API - Getting all cloud discovered assets ... Success. INFO - Filtering all discovered registries ...[] Success. INFO - Discovered registries ... 0 API - Getting all configured registries ... Success. INFO - Configured registries ... 91 INFO - No registries to add.

aditya-mnscorp avatar Jun 14 '23 13:06 aditya-mnscorp

:tada: Thanks for opening your first issue here! Welcome to the community!