iT邦幫忙

2021 iThome 鐵人賽

DAY 2
0
自我挑戰組

菜鳥全端養成日誌系列 第 2

Azure - 儲存體帳戶 (Storage Accounts)

  • 分享至 

  • twitterImage
  •  
  • Home -> 資源群組(Resource Groups) -> 儲存體帳戶(Storage Accounts)

    • 可在這路徑下建立 儲存體帳戶(Storage Accounts)

    • Storage Accounts 是所有資源裡面最便宜的

    • Storage Accounts 其實就是一個儲存體

  • Home -> Resource Groups -> Access control(IAM)

    • 可在這路徑下查看User權限
    • role一定要是contributor才可以create resource
  • Create a storage account 操作步驟:

    < Basics >

    1. 建立 Resource Groups
    • 所有環境都會是一個resource group
      (ex: 開發環境會是一個resource group、正式環境會是一個resource group)
    • 每個project都有自己的resource group (ps.要小心建錯)
    1. 建立 Storage Accounts
    • Storage account name 不能有 _ 和 -
      測試環境要用test開頭好區分 (ex: testlifeweb1)

    • Region 自己目前用 (Asia Pacific) Southeast Asia
      如果其他資源例如DB不在同一個區域,就會延遲...,所以一定要建立在同一個區域

    • Performance:
      選 Standard for 測試環境

    • Redundancy:
      (普通) Locally-redundant storage (LRS) for 測試環境 (跟費用有關)
      (高級一點) Geo-redundant storage (GRS) for 正式環境

    < Tags > 以後有問題才知道要找誰處理

    • Service testlifeweb1
    • Owner life
  • Static Website (開1個靜態網站)

    • Index document name: index.html
    • Error document path: err.html (隨便填)
    • 輸入完上面兩項後再按Save會取得Primary endpoint
  • 下載storage explorer

    • https://azure.microsoft.com/zh-tw/features/storage-explorer/
    • 會連接azure上面所有的專案
    • testlifeweb1 -> Blob Containers -> $web (代表開啟靜態網站的目錄)
    • ps.自己在電腦上面的命名 (Dev/project name/testlifeweb1/dist)
    • 把npm run build好的dist資料夾下的東西拖拉上去
    • 把vue build好,把東西拖到blob裡面去

上一篇
大家好~
下一篇
Azure證照
系列文
菜鳥全端養成日誌3
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言