-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up Azure Storage
julianrkung edited this page May 5, 2021
·
1 revision
Important: Azure Storage only needs to be set up once for the entire organization. Onboarding developers should ask their tech lead or tenured developers where to get the AZURE_STORAGE_ACCOUNT_NAME
and AZURE_STORAGE_CONNECTION_STRING
necessary to populate the .env
file of meepanyar-node
This guide will help set up an Azure Storage account and create the necessary containers to get photo uploads to work in the backend meepanyar-node
repo.
- Log in to portal.azure.com or create an account if you don't already have one
- Navigate to the "Storage Accounts" section at the top
- Press "Create" on the top left to create a Storage Account.
- You can use an existing "Resource Group" if you already have one. If not, you can create one on the page by doing "Create New"
- Call your storage account anything. This will be the
AZURE_STORAGE_ACCOUNT_NAME
environment variable formeepanyar-node
. - Pick any region.
- "Standard" performance and any redundancy plan is fine
- In "Advanced" make sure that "Enabled blob public access" is used. Insufficient testing at scale was done to determine if the "Hot" access tier was necessary, but "Cool" worked for developers to test on. Photos will be downloaded by Airtable, so "Cool" access tier should be fine.
- In the "Networking" section, make sure the storage is accessible by all networks
- "Data Protection" and "Tabs" sections can be left to default
- Enter your storage account you created from following the above steps
- Create a container by clicking on "Containers" and then the "+" sign
- Name the container "photos" and make the "Public Access Level" of the container: "Container"
- In the Storage Account you just made, click the "Access Keys" that appear on the left hand side of the Storage Account page.
- Copy one of the "connection string"s to the
AZURE_STORAGE_CONNECTION_STRING
environment variable inmeepanyar-node
- Creating a New User and Assigning them a Site
- Adding or Updating or Deleting an Airtable Column or Table
- Testing Translations in a Production Environment