NOTE: The option to manage cloud accounts is available to Colony Administrators only.
To allow CloudShell Colony to provision cloud infrastructure on your behalf in your Azure cloud account, you need to grant CloudShell Colony permission to access your Azure account. You can remove this permission at any point directly from your Azure Portal.
Granting CloudShell Colony the permission to access your Azure account is done through a short authentication process, during which CloudShell Colony creates a slim management layer that keeps your data safe.
The authentication process is done by running a shell script, in your Azure account, which creates the following resources:
- Active Directory Application – This Active Directory application entry has a Contributor role and is configured to access the Azure CLI. It will be used for all communication between CloudShell Colony and your Azure account.
- Storage Account – This storage account is used for keeping your virtual machines safe. CloudShell Colony uses it to store certificates that are required in order to access your virtual machines. The certificates are kept only in your own account.
- Managed identity – This managed identity provides the Sidecar component with secured access to Azure services.
NOTE: Part of the following procedure is performed in Azure Portal. Azure Portal will open in a new browser tab.
To add an Azure cloud account:
- In the Administration area, click the Cloud Accounts tab.
- Click +Add Cloud Account.
- Select Azure. Follow the directions to Authenticate your Azure Cloud Account that display.
- Login to the Microsoft Azure Portal with your administrator permissions.
- From the Azure top-right navigation pane, launch CloudShell to run Azure’s interactive shell.
The Shell pane opens.
- If this is the first time you are running CloudShell, follow Azure’s instructions and create a storage account.
- In CloudShell, click the dropdown menu and select the Bash environment.
- Copy the following shell commands, paste them into Azure's shell, and then press Enter on your keyboard:
curl https://raw.githubusercontent.com/cloudshell-colony/setup/master/azure.sh > colony.sh && chmod +x colony.sh && ./colony.sh
The script is running. Please wait until it completes and a token is provided.
- Copy the token to your clipboard.
- At this time, the
- Return to CloudShell Colony's tab and do the following:
- Enter a name for the cloud account in the Cloud Account Name field.
- Paste the copied token into the Token field.
- Click Authenticate.
Deleting an Azure Cloud Account
You can remove CloudShell Colony's permission to access your Azure account at any time, directly from your Azure Portal. To learn how to delete your Azure cloud account, see Deleting your Azure Cloud Account.