great-lakes / project-egypt

MIT License
0 stars 0 forks source link

Create Blob Storage Account & CDN on Azure #6

Closed gcrev93 closed 6 years ago

gcrev93 commented 6 years ago

Parent issue: #21

saroup commented 6 years ago

Why do we need to store contents of the device? I thought we were not supposed to store any content in our static app.

gcrev93 commented 6 years ago

Blob storage is used to host the web page not store data from the device @saroup

saroup commented 6 years ago

@gcrev93 The first bullet point mentions that the storage is to store contents of the device. Can you adjust this description to mention that it is used to host the web page?

gcrev93 commented 6 years ago

Sorry! thank you for catching that @saroup

in4margaret commented 6 years ago

Commands to create resources with AzureCLI:

az login

az account set --subscription SUBSCRIPTION_ID

az group create --name GROUP_NAME --location REGION

az storage account create --kind BlobStorage --name STORAGE_NAME --resource-group GROUP_NAME --location REGION --access-tier Hot

az cdn profile create --name PROFILE_NAME -g GROUP_NAME -l REGION

az cdn endpoint create -g gl_GROUP_NAME -l eastus --name ENDPOINT_NAME --profile-name PROFILE_NAME --origin STORAGE_NAME.blob.core.windows.net --origin-host-header STORAGE_NAME.blob.core.windows.net