Code Monkey home page Code Monkey logo

Comments (6)

andyt530 avatar andyt530 commented on August 22, 2024

you may need to alias "python2.7" to python - assuming the "python" command is how you get to python 2.7 on your machine. Note the "bash: az command not found" - that needs to be fixed as well before this tool has any chance of working. (VirtualBox and a Linux VM maybe?)

from py-az2tf.

coreydeli avatar coreydeli commented on August 22, 2024

checked in my powershell screen, typed in Python and it showed version 2.7.16 as the current version. So it looks like the alias is already set as is.

Ran the script in the linux subsystem (ubuntu) and recieved the following output:

Subscription ID = Redacted
Azure Resource Group Filter =
Terraform Resource Type Filter =
Get Subscription Policies & RBAC = no
Extract Key Vault Secrets to .tf files (insecure) = no
Fast Forward = no
Validate Only = yes
Debug = no

python2.7 ../../scripts/az2tf.py -s =Redaxted>&1 | tee -a import.log
Traceback (most recent call last):
  File "../../scripts/az2tf.py", line 4, in <module>
    import requests
ImportError: No module named requests
ImportError: No module named requests
Error in az2tf.py

from py-az2tf.

coreydeli avatar coreydeli commented on August 22, 2024

Note that Terraform --version spits out 0.12.9

from py-az2tf.

andyt530 avatar andyt530 commented on August 22, 2024

ok that's a little better - Try:

pip install requests

and have another go.

from py-az2tf.

coreydeli avatar coreydeli commented on August 22, 2024

Had to install Requests and Adal both it seems. It seems to be running right now though. I think my issue running wihtin PowerShell was that it was launching Git Bash and failing in that and not actually in PowerShell itself. I am going to remove GitBash and see if that works as well. I will report back when its done, may be worth adding a line or two to check for pip and Requests/Adal as well.

from py-az2tf.

coreydeli avatar coreydeli commented on August 22, 2024

Looks like that worked! Thank you!

from py-az2tf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.