Download Free Ebook-Microsoft Azure & Automation

Contents of the book :

  • Reference Architecture- Automating Microsoft Azure virtual machine deployment with Chef.
  • Create Hosted Chef Account.
  • Install Ruby on CentOS based Chef Workstation .
  • Install and configure Chef Workstation and Chef Development Kit.
  • Chef: Install Knife-azure Plugin.
  • Creating a cookbook for Microsoft Azure Virtual Machine .
  • Creating a Template for Chef Cookbook.
  • Execute knife-azure to create Virtual Machine on Microsoft Azure.

Continue reading “Download Free Ebook-Microsoft Azure & Automation”

Knife-azure to create VM on Microsoft Azure

In the last article, we discussed about Creating Cookbook
In this post we will create Virtual machine by using knife-azure command:
–azure-publish-settings-file Path to publishsettingsfile
–azure-service-location Location at which new virtual machine needs to be created
–azure-source-image Image ID for Source Window Image
–winrm-user – Username for Windows Virtual Machine
–winrm-password Password for Windows Virtual Machine Continue reading “Knife-azure to create VM on Microsoft Azure”

Creating a Template for Chef Cookbook

In the last article, we discussed about Install Knife-azure Plugin

In this article we will create a template that will be used by a cookbook.

As we mentioned previously, we need to generate a template file which will be used as default.html page.
First of all we will execute the following command to generate the template:
chef generate template webserver Default.htm

Continue reading “Creating a Template for Chef Cookbook”

Creating a cookbook for Microsoft Azure VM

In the last article, we discussed about Creating a Template for Chef Cookbook
In this article we will discuss about cookbooks. A Cookbook is used by Chef – Configuration management tool to define a set of instructions or commands that need to be executed on managed node. In this post we will create a simple cookbook to install IIS Server on Windows Machine. In Our case, Windows Machine will be on Microsoft Azure IaaS. Continue reading “Creating a cookbook for Microsoft Azure VM”

Chef: Install Knife-azure Plugin

In the last article we discussed about Install and Configure Chef Workstation and Chef Development Kit

In this article we will discuss about knife-azure plugin.

knife-azure plugin is distributed as a Ruby Gem. We have already installed Ruby and Chef Development Kit as well.
To install knife-azure plugin, run: gem install knife-azure
Depending on your virtual machine’s configuration run this command with root/administrator privileges.

Continue reading “Chef: Install Knife-azure Plugin”

Create a VM on Microsoft Azure using Chef

Let’s go through some of the basic details of Chef.
Chef, open source configuration management tool has three architectural components. The Chef Server or Hosted Chef, the Chef Workstation, and Chef Client (Node):
The Chef Server/Hosted Chefis central management console and there are two options for the Chef Server: a hosted Chef solution or an on-premises installation. We will be using a hosted solution to avoid installation of Chef server ion premise. Continue reading “Create a VM on Microsoft Azure using Chef”