Rancher supports provisioning Microsoft Azure hosts using Docker Machine.
Before you can launch a host on Azure, you will need to gather your Subscription ID, Client ID and Client Secret. The Client ID and Client Secret are created by creating an App registration. You can find more information on this at the Microsoft documentation site.
Go to https://portal.azure.com and login with your credentials.
To retrieve the Subscription ID, go to More services, search for Subscriptions and open it. The Subscription ID should be shown in the SUBSCRIPTION ID column next to your Subscription name.
Follow the steps below to create an App registration and the corresponding Client ID and Client Secret.
Web app / APIas Application Type and a Sign-on URL which can be anything in this case.
In the App registrations view, you should see your created App registration. The value shown in the column APPLICATION ID is what you need to use as Client ID. The next step is to generate the Client Secret:
Last thing you will need to do, is assign the appropriate permissions to your App registration.
AzurePublicCloudbut if you are using any government cloud, you should change this here.
docker-machinesupports for Azure is also supported by Rancher. If you change this, don’t forget to update the SSH User to the correct value for the image.
docker-machine createcommand with Docker engine options.
Once you click on create, Rancher will create the Azure virtual machine and launch the rancher-agent container. In a couple of minutes, the host will be active and available to start adding services.