Azure Resource Manager (ARM)
To add your Azure ARM cloud you will need to create a client id and specify it to mist.io, along with a few other IDs. You will have to use both the old (manage.windowsazure.com) and the new (portal.azure.com) Azure portals because the functionality to get these credentials is under development on the new portal.
Assuming you follow the steps below this process should not take more than 5 minutes.
With your Azure Administrator account login to the old portal on https://manage.windowsazure.com.
On the left side bar select ACTIVE DIRECTORY
then select Default Directory
then select the APPLICATIONS tab and select ADD to add a new one. On the popup dialog select 'Add an application my organization is developing', give it a unique name, select 'WEB APPLICATION AND/OR WEB API' and on the last dialog of the popup specify https://mist.io as the SIGN-ON URL and APP ID URI. These values won't be used, they just need to be unique if you're having multiple Azure clients.
In our case the client name is ' mistio add'.
Save the app, this takes a few seconds and you get informed that the App has been added.
Click on the ' VIEW ENDPOINTS' link on the bottom of this page and you will see all endpoints have a unique ID after the URL part. Make sure you copy this, it is the Tenant ID field you specify on the mist.io add cloud wizard and in our case this is '35a32b70-7f55-4520-9c67-63e9b5db8166'
Close this dialog and select the Configure tab on the Application page we are in. The default settings are just fine for us, and we need to copy the CLIENT ID which will be the Client key field you specify on the mist.io add cloud wizard., in our case this is '8e86ab2c-2aff-4f54-8278-75875bdee6c2'
Scroll on the bottom of the page, on the keys section. We will create a new key for this client id. Set the duration as 2 years and press ' SAVE' on the bottom of the page. After a few seconds the secret appears for this key and you have to save it. This is the Client secret field you specify on the mist.io add cloud wizard. This is h6D0hVplz1rZnfNId9zPKkLsGGVDZ8c+00/JviXvYM8= in our case.
We now have to login to the new portal on https://portal.azure.com and authorize the client id to be used on our account. Of course we need to login with the same account as we did on the old portal.
Login and select ' SUBSCRIPTIONS' on the left side bar. Copy the SUBSCRIPTION ID that you are going to add to mist.io, in case you have more than one. This will be Subscription ID field you specify on the mist.io add cloud wizard. In our case this is 3101d491-f614-47b6-b1c6-f50a0ec1f277.
Then click on the Subscription, next click on Acces Control (IAM) on the Overview section.
On the new tab that opens click Add, select Owner as role and select the account by specifying the client name (this has been mist.io add for our case).You just need to start typing the name on the Select field and it will appear, so you may click on it.
Make sure you click on ' Select' on the bottom of the page, then OK. This takes a few seconds before it informs you that the user has been added!
You can now see the client name on the users, for this subscription of yours. With all the credentials in place, enter the mist.io add cloud wizard and provide them
Upon pressing ADD CLOUD you will have the Azure ARM account added on your mist.io accounts and will be able to
- list existing Virtual Machines
- see status, public and private ips, metadata as location, resource group, disk image. Soon you will be able to see pricing information.
- run actions (reboot, shutdown, start, destroy),
- associate an ssh key and open the web shell,
- run scripts through ssh and see the output
- enable mist.io monitoring and see diagrams/set rules to get alerted
- add/edit mist.io tags
Deployment of new VMs is going to be added soon.