Azure Storage

Spinnaker supports using Azure for persisting your Application settings and configured Pipelines.

Using Azure Storage (AZS) as a storage source means that Spinnaker will store all of its persistent data in a Storage Account .

Prerequisites

The next steps assume the use of the Azure CLI 2.0 in order to create a Storage Account. You can check that you have az installed by running:

  1. az --version

First, log in and set your subscription:

  1. az login
  2. az account list
  3. az account set --subscription <Insert Subscription ID>

Next, create a resource group for your Storage Account. Make sure to specify a location (e.g. westus) available in your account:

  1. az account list-locations --query [].name
  2. RESOURCE_GROUP="SpinnakerStorage"
  3. az group create --name $RESOURCE_GROUP --location <Insert Location>

Finally, create your storage account, using a globally unique name:

  1. STORAGE_ACCOUNT_NAME=<Insert name>
  2. az storage account create --resource-group $RESOURCE_GROUP --sku STANDARD_LRS --name $STORAGE_ACCOUNT_NAME
  3. STORAGE_ACCOUNT_KEY=$(az storage account keys list --resource-group $RESOURCE_GROUP --account-name $STORAGE_ACCOUNT_NAME --query [0].value | tr -d '"')

Editing your storage settings

First, edit the storage settings:

  1. hal config storage azs edit \
  2. --storage-account-name $STORAGE_ACCOUNT_NAME \
  3. --storage-account-key $STORAGE_ACCOUNT_KEY

There are more options described here if you need more control over your configuration.

Finally, set the storage source to AZS:

  1. hal config storage edit --type azs

Next steps

After you’ve set up Azure Storage as your storage service, you’re ready to deploy Spinnaker .

Last modified May 4, 2021: rest of migration (700781a)