Link Microsoft Azure Cloud Services to Docker CloudEstimated reading time: 3 minutes
You can link your Microsoft Azure Cloud Services account so that Docker Cloud can provision and manage swarms on your behalf.
For this, you will need an SSH key and your Azure subscription ID to authenticate Docker to your service provider. Also, you need to enable your Azure subscription on behalf of Docker Cloud.
Create or locate the SSH key you want to use
When you are ready to create and deploy swarms, you must have an SSH key to authenticate Docker Cloud to your Azure account. See the topic Set up SSH keys to learn how to check for existing keys or set up a new one, and copy the public key.
Find your Azure subscription ID
You will also need your Azure Cloud Services subscription ID to provide to Docker Cloud. There are a few ways to navigate to it on Azure.
You can click a resource from the Dashboard and find the subscription ID under “Essentials” on the resulting display. Alternatively, from the left menu, go to Billing -> Subscriptions -> Subscription ID or simply click Subscriptions, then click a subscription in the list to drill down.
When you are ready to add your subscription ID to Docker Cloud, copy it from your Azure Dashboard.
Add your Azure account credentials to Docker Cloud
Go to Docker Cloud to connect the account.
- In Docker Cloud, click the account menu at upper right and select Cloud settings.
In the Service Providers section, click the plug icon next to Microsoft Azure.
Provide your subscription ID and click Save.
This grants Docker Cloud access to your Microsoft Azure account, and links the two accounts. Your Azure login credentials will automatically populate to Docker Cloud under Service Providers -> Microsoft Azure.
Enable your Azure subscription for Docker Cloud
Tip: If your Azure subscription is not enabled first, the swarm deployment will fail. The error will show up on your Azure portal -> resource groups -> ResourceGroupForYourSwarm -> deployments.
Go to the Microsoft Azure Marketplace and search for Docker, or specifically Docker for Azure CE.
Select Docker for Azure CE and click the option on the lower right to deploy programmatically.
Verify that your subscription is enabled.
Go to Dashboard -> Subscriptions to view details on your current subscriptions. Docker for Azure CE should be listed as enabled Programmatic deployment.
You are now ready to deploy a swarm!
Where to go next
Ready to create swarms on Azure? See Create a new swarm on Microsoft Azure in Docker Cloud.
You’ll need an SSH key to provide to Docker Cloud during the swarm create process. If you haven’t done so yet, check out how to Set up SSH keys.
You can get an overivew of topics on swarms in Docker Cloud.Azure, Cloud, link