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

How tom configure for Azure #21

Closed
challs1 opened this issue Aug 29, 2018 · 4 comments
Closed

How tom configure for Azure #21

challs1 opened this issue Aug 29, 2018 · 4 comments

Comments

@challs1
Copy link

challs1 commented Aug 29, 2018

I'm trying to run this tool to audit my Azure cloud environment and my server is running in AWSEc2 instance. This is working satisfactorily with AWS. now, i wan to generate same kind of report for azure as well.
Did anybody worked to make this tool to generate the report for Azure cloud ?
i'm getting this error
[ec2-user@ip-172-31-27-131 cs-suite]$ python cs.py -env azure
Traceback (most recent call last):
File "cs.py", line 55, in
main()
File "cs.py", line 50, in main
from modules import azureaudit
File "/home/ec2-user/cs-suite/modules/azureaudit.py", line 8, in
subprocess.call(['az', 'login'])
File "/usr/lib64/python2.7/subprocess.py", line 168, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib64/python2.7/subprocess.py", line 390, in init
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1025, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
[ec2-user@ip-172-31-27-131 cs-suite]$

@shivankar-madaan
Copy link
Contributor

Hi @challs1
For azure, the first command az login requires a browser interaction to authenticate with Azure subscription
Could try running on your local system, since AWS instances won't have browser capabilities if it is a Linux box.

@shivankar-madaan
Copy link
Contributor

@challs1 did it work on the local system.

@challs1
Copy link
Author

challs1 commented Sep 6, 2018

@shivankar-madaan : Yes it works

@challs1 challs1 closed this as completed Sep 6, 2018
@exrme18
Copy link

exrme18 commented Mar 8, 2019

Hey @challs1 @shivankar-madaan
can you please tell what exact command do I need to run from command line as I am getting the same error on running following command:
python cs.py -env azure

"For azure, the first command az login requires a browser interaction to authenticate with Azure subscription" What exactly you are referring here.
thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants