AnyCloud
Search…
Deploy to Azure

Enable programmatic Azure access for AnyCloud

1) Create an Azure Active Directory application and its Service Principal as described here. After following the previous instructions you can copy your Application (client) ID and your Directory (tenant) ID.
2) Create a secret for the service principal created above as described here. Copy the secret Value immediately since you will not be able to retrieve it again later.
3) For the subscription ID you can go to your subscriptions page in Azure portal and get the ID.
4) To be able to use Anycloud with Azure you will need to manage your subscription resource provider registration as described here. You will need to register: Microsoft.Compute, Microsoft.Network, Microsoft.Storage and Microsoft.Security.
5) Add a new Credentials by taking the values from the previous steps.
You will need to pick a name, or alias, for the Credentials. The default value will be azure. In this example, we will call it mystartup-azure.
1
$ anycloud credentials new
2
? Pick cloud provider for the new Credentials ›
3
AWS
4
GCP
5
❯ Azure
6
? Credentials Name › mystartup-azure
7
? Azure Application ID › ********-****-****-****-************
8
? Azure Directory ID › ********-****-****-****-************
9
? Azure Subscription ID › ********-****-****-****-************
10
? Azure Secret › **********************************
11
Successfully created "mystartup-azure" Credentials
Copied!

Configure your project

Define a new Deploy Config in the anycloud.json project you want to deploy to Azure using the AnyCloud CLI
You will need to pick a name, or alias, for the Deploy Config. The default value will be staging. You will also need to associate Credentials to this Deploy Config.
1
$ anycloud config new
2
Name for new Deploy Config: staging
3
? Pick Credentials to use ›
4
❯ mystartup-azure
5
Create new Credentials
6
? Do you want to choose a specific region for this Deploy Config? › y
7
? Region name › eastus
8
? Do you want to select which virtual machine type to use for this Deploy Config? › y
9
? Virtual Machine Type › Standard_D2_v4
10
? Do you want to add another region to this Deploy Config? › n
11
? Minimum number of VMs per region or cloud › 1
12
? Would you like to define a maximum number of VMs? › n
13
Successfully created "staging" Deploy Config.
Copied!
Last modified 5mo ago