...
- Login to
https://portal.azure.com/
using Microsoft Live account. - Click on Active directory in the left menu.
- Make sure you are in your Default directory (or add a new one).
- Click on App Registrations in the left menu.
- Click on New Application Registration.
- Enter the name Scalr :
- Enter the following details:
- SIGN-ON URL:
http://your-scalr-domain.com/public/xAzureToken
(Make sure to replace your-scalr-domain.com with the value of routing[:endpoint_host] that you have in your scalr-server.rb config file. It should be the IP or Domain that you use to access the Scalr Web UI.) - Save
- SIGN-ON URL:
- Click on the new application on the left
- Ensure the APP ID URI is configured correctly
- APP ID URI:
http://domain.onmicrosoft.com/scalr
(make sure that you replace domain.onmicrosoft.com with your actual Active Directory domain which can be found under "Domains" in the relevant directory - the same one from step 3).
- APP ID URI:
- Under keys, create a new key and select how many years you want this key to last. Be sure to save your Secret Key.
- Under the Required Permissions section, locate Windows Azure Active Directory.
- Under Delegated Permissions select Sign in and read user profile permission
- Click on Add permission.
- Click on Windows Azure Service Management API and finally on the check mark in the upper right cornerSelect.
- Make sure that Access Azure Service Management permission is set on Delegated Permissions for Windows Azure Service Management API.
- After clicking on Save, you should be able to locate the CLIENT-ID (Application ID) under the registered app, an should have your SECRET-KEY from step 10.
Last step is to enter the CLIENT-ID and SECRET-KEY into the Scalr configuration file (
/etc/scalr-server/scalr-server.rb
).Code Block app[:configuration] = { :scalr => { :azure => { :app_client_id => 'a85a9c74-94ec-4adc-9bca-ee4cfc613556', :app_secret_key => 'bG9/OwyRJoCvXa3XpyLdlX5E1OzBcjZ7K0F9TlaB3vQ=' } } }
- Tell Scalr to re-read the configuration file by running:
scalr-server-ctl reconfigure
...