foreman_azure_rm
adds Microsoft Azure Resource Manager as a Compute Resource for The Foreman
Add the following to bundler.d/Gemfile.local.rb
in your Foreman installation directory /usr/share/foreman
$ gem 'foreman_azure_rm'
Or simply:
$ echo "gem 'foreman_azure_rm'" > /usr/share/foreman/bundler.d/Gemfile.local.rb
Then run bundle install
from the same directory
# yum install tfm-rubygem-foreman_azure_rm
# foreman-installer --enable-foreman-plugin-azure
Clone the repo from github:
git clone https://github.com/theforeman/foreman_azure_rm.git
Add the following to bundler.d/Gemfile.local.rb in your Foreman development directory
gem 'foreman_azure_rm', :path => 'path to foreman_azure_rm directory'
Then run bundle install
from the same directory
Go to Infrastructure > Compute Resources and click on "New Compute Resource".
Choose the Azure Resource Manager provider, and fill in all the fields. You need a Subscription ID, Tenant ID, Client ID and a Client Secret which you can generate from your Microsoft Azure subscription
That's it. You're now ready to create and manage Azure resources in your new Azure Resource Manager Compute Resource. You should see something like this in the Compute Resource page: