O'Reilly logo

DevOps for Web Development by Mitesh Soni

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating and configuring a virtual machine in Microsoft Azure

For the knife azure plugin to communicate with Azure's REST API, we need to provide information to knife regarding our Azure account and credentials:

  1. Sign in into the Azure portal and download a publish-settings file by visiting https://manage.windowsazure.com/publishsettings/index?client=xplat.
  2. Store it on a Chef workstation on the a local filesystem and refer to this local file by creating an entry in knife.rb:

    knife[:azure_publish_settings_file] = "~/<name>.publishsettings" 
    

    Creating and configuring a virtual machine in Microsoft Azure

  3. Here are the parameters used to create a virtual machine in Microsoft Azure:

    Parameter

    Value

    Description ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required