To create and configure Chef and Microsoft Azure integration, we need to provide the Microsoft Azure account and credentials. To get Microsoft Azure credentials, download the publishsettings file and perform the following steps:
- Login to the Microsoft Azure portal using the login name and password and download a publishsettings file from https://manage.windowsazure.com/publishsettings/index?client=xplat.
- Copy it on a Chef workstation and refer to this local file by creating an entry in the knife.rb file:
knife[:azure_publish_settings_file] = "~/<name>.publishsettings"
- The following are the parameters to create a virtual machine in the Microsoft Azure public cloud: