Giter VIP home page Giter VIP logo

xplatcli-scripts-'s Introduction

  • Install [Python2.7][0] and make sure python is added in env variabales

  • config.py is the config file

  • change the following in config.py

    • PUBLISHSETTINGS_FILE <<path of publish setting file>> Hint: Downloaded path of publishsetting file
    • LOG_FILE <<path for the log file>> Hint: C:\log files\log.json
    • FILE_PATH <<path for the Json log file>> Hint: C:\json files\export.json
    • CERT_FILE <<path for the .pem file>>
    • SUBSCRIPTION_ID <<Subscription id of azure account>> Hint: Subscription id mentioned in .publishsettings
    • IMAGE_NAME <<Valid linux Image name>> Hint: Image name obtained from vm image list and OS is LINUX
    • WIN_IMAGE_NAME <<Valid windows Image name>> Hint: Image name obtained from vm image list and OS is WINDOWS
    • VM_COMM_IMAGE_NAME <<Valid community Image name>> Hint: VMDepo image url obtained from vmdepo in virtual mach->images from portal
    • VM_DISK_SOURCE_PATH <<source disk path for vm>> Hint: media link obtained from vm disk show diskname
    • IMAGE_BLOB_URL <<destination image path for images creation>> Hint: conatinerUrl/vm-images/image.vhd
    • DISK_IMAGE_BLOB_URL <<destination disk path for disk creation>> Hint: conatinerUrl/disks/disk.vhd
    • VM_DISK_ATTACH_BLOB_URL <<destination disk path for disk attach>> Hint: conatinerUrl/disks/disk.vhd
  • open cmd prompt and cd to proj folder(where AutomationScript.py and config.py are present)

  • run the script using following command "python AutomationScript.py"

Note

  • if GLOBAL_FLAG=0 then only those command which has its flag value as 1 will execute
  • if GLOBAL_FLAG=1 the all the commands will execute
  • in GLOBAL_FLAG=0 mode change flag variables(present below #FLAG VALUES) to run or skip commands
  • If Azure_AD_Login_FLAG=1 mode ,azure login will be enabled to work with AD else account import commands will be executed for authentication.
    [0]: http://www.python.org/download/releases/2.7.3/

xplatcli-scripts-'s People

Contributors

vikasmathod avatar

Watchers

 avatar  avatar

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.