-
Notifications
You must be signed in to change notification settings - Fork 336
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
Add support for Microsoft Azure Compute Resources #554
Conversation
# Please enter a commit message to explain why this merge is necessary, # especially if it merges an updated upstream into a topic branch. # # Lines starting with '#' will be ignored, and an empty message aborts # the commit.
# Conflicts: # cartography/intel/azure/__init__.py # cartography/intel/azure/compute.py # cartography/intel/azure/tenant.py
# Conflicts: # cartography/cli.py # cartography/config.py
# Conflicts: # README.md # setup.py # tests/integration/cartography/data/jobs/test_syntax.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super exciting to see another cloud added to cartography :-)
Mostly left comments on exception handling but this is looking great so far.
@achantavy Thanks for reviewing the pull request. All the feedback has been incorporated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nearly there! Some nitpicky doc stuff
@achantavy Updated code to resolve all the comments above. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One final minor comment from me. Ship it :)
setup.py
Outdated
"python-digitalocean>=1.16.0", | ||
"PyJWT==1.7.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be pinned? Can it be >=1.7.1
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
azure-cli-core has pinned it to 1.7.1. I tried with >=1.7.1
and it works. But, there's an error notice in logs while installing the dependencies. I did not want to be the cause of someone's CI/CD pipeline failure :)
What do you recommend? @achantavy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pin it to 1.7.1 and add a comment on why -- that should be good enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@achantavy I have added a comment and pinned the version. Please review and merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥂
This PR is to add initial support of Azure. This intel module currently support only a limited set of Compute related resources like VirtualMachines, DataDisks, Disks and Snapshots. In future, we will extend this furture to include other compute related resources
Currently, the hierarchy is AzureTenant -> AzureSubscription -> VirtualMachine
Also, once reviewed, we want to open pull requests for other resources like Azure Storage, SQL and CosmosDB.