Azure 成本控管
By Alan Tsai
@Alan Tsai 的學習筆記
簡單自我介紹
• Alan Tsai
• 蔡孟玹
• 後端工程師
• .NET 技術爲主
• 喜歡學習不同東西
• Azure
• Data Science、Chatbot
• Container
• DevOps
• 架構、加强開發的Tools
• 看小說 2
@Alan Tsai 的學習筆記
教就是最好的學習方式 -喜歡考證驗證所學
3
@Alan Tsai 的學習筆記
喜歡技術分享
▰台灣智慧自動化與機器人協會
機器學習基礎理論課程及人工智慧 – ML.NET
▰Microsoft Insider DevTour Taipei
Future proof your desktop apps
with .NET core
▰.NET Conf 2019
用 Bot Framework 開發 Chatbot =
支援多平臺 + 包含平臺客制功能 - 以Line爲例
▰中華電信學院
使用Azure AI打造有人工智能的Line聊天機器人
DevOps與CI/CD實務研習班
▰聖森内部教育訓練
Azure DevOps CI/CD 應用
4
@Alan Tsai 的學習筆記
歡迎訂閲、按贊 + 分享
5
@Alan Tsai 的學習筆記
contact@alantsai.net
@alantsai2007Line@
• Alan Tsai 的學習筆記
• https://blog.alantsai.net
• FB粉絲頁
• http://fb.alantsai.net
• Youtube
• http://yt.alantsai.net
@Alan Tsai 的學習筆記
雲端成本管理
6
預估雲端費用
預估雲端費用
7
雲端會花多少錢?
8
看情況
9
@Alan Tsai 的學習筆記
費用估算: On-Premises 虛擬機
10
硬體
機殼
硬碟
記憶體
CPU
機架
軟體
OS
CALs
其他
電費?
維修?
運維人力?
復原人力?
備份?
保險?
@Alan Tsai 的學習筆記
雲端費用:Azure 虛擬機
11
Region
Tier
Disk Type
Traffic Zones
Redundancy
Licensing
Subscription Agreement
Reserved Instance
@Alan Tsai 的學習筆記
Azure 費用計算機
12
Demo: 預估費用
13
@Alan Tsai 的學習筆記
參考資料
14
▰Azure 計算機
▻https://azure.microsoft.com/en-us/pricing/calculator/
▰Region 有那些資源
▻https://azure.microsoft.com/en-us/global-
infrastructure/services/
@Alan Tsai 的學習筆記
參考資料
15
▰測速
▻https://www.azurespeed.com/Azure/Latency
▻https://azurespeedtest.azurewebsites.net/
▰Azure VM Size
▻https://docs.microsoft.com/en-us/azure/virtual-
machines/windows/sizes
@Alan Tsai 的學習筆記
誰應該負責雲端費用?
16
CFO CIO CTO I.T.
Manager
I.T.
Operations Developers
@Alan Tsai 的學習筆記
財務上面的考量
17
Capital Expenditure (CapEx)
資產出現在資產負債表
提高商業價值
透過折舊來減稅
營業費用 (OpEx)資本支出 (CapEx)
費用出現在損益表
減少淨利
收入變少所以稅變少
@Alan Tsai 的學習筆記
雲端費用的組成
18
@Alan Tsai 的學習筆記
架構調整
19
@Alan Tsai 的學習筆記
Serverless
20
Event-driven
scale
Sub-second
billing
Abstraction of
servers
@Alan Tsai 的學習筆記
影響到費用的設計
21
@Alan Tsai 的學習筆記
影響到費用的設計
22
@Alan Tsai 的學習筆記
影響到費用的設計
23
@Alan Tsai 的學習筆記
影響到費用的設計
24
@Alan Tsai 的學習筆記
影響到費用的設計
25
@Alan Tsai 的學習筆記
Appmigration.microsoft.com
26
@Alan Tsai 的學習筆記
Azure Migrate
27
On-prem VMware VMs
Hyper-V VMs
Physical Server
https://docs.microsoft.com/en-us/azure/migrate/concepts-assessment-calculation
@Alan Tsai 的學習筆記
Data Migration Assisant
28https://docs.microsoft.com/en-us/sql/dma/dma-assesssqlonprem?view=sql-server-ver15
雲端會比較便宜嗎?
29
@Alan Tsai 的學習筆記
擁有權總成本 (TCO) 計算機
30https://azure.microsoft.com/zh-tw/pricing/tco/calculator/
移轉 3 台 Windows Server
2008 R2 上雲
2 年會比自己買設備便宜嗎?
31
Demo:TCO
32
監控使用情況
33
@Alan Tsai 的學習筆記
Role Base Access Control (RBAC)
34
▰設定
▻誰可以建立資源
▻誰可以讀取費用
@Alan Tsai 的學習筆記
Resource Tag
35
▰把不同資源的費用放在一起看
▰常見的tag:例如使用環境
▻Development
▻Production
▰可以透過Azure Policy強制使用
@Alan Tsai 的學習筆記
Azure Policy
36
▰避免建立出錯誤的SKU
▰要求一定套用tag
如何在收到帳單之前
就知道花了太多錢?
37
@Alan Tsai 的學習筆記
Azure Budgets
38
如何知道 正式環境 的費用
比預期還要多
39
Demo:Azure Budgets
40
分析實際費用
41
@Alan Tsai 的學習筆記
Azure Cost Analysis
42
如何知道什麼 Resource Type
以及那個 Resource 花費最多
43
Demo: Azure Cost Analysis
44
可以省更多費用嗎?
45
@Alan Tsai 的學習筆記
Azure Advisor
46
Demo:Azure Advisor
47
@Alan Tsai 的學習筆記
Azure Consumption Power BI Content
Pack
48
@Alan Tsai 的學習筆記
Azure Consumption & Azure Biling APIs
49
@Alan Tsai 的學習筆記
AWS 費用 在 Azure Cost Management
50
@Alan Tsai 的學習筆記
依照情境來評估費用的使用情況
51
使用量提高了
員工效率提高了
客戶需求提高了
其他需要納入考量的人/事?
節省費用的tips
52
@Alan Tsai 的學習筆記
選擇不同類型的購買方案
53
▰使用有限制的Subscription來做學習用途
▻(例如:Visual Studio Subscriber)
▰Dev/Test Subscription 類型
▰Azure Dev/Test Labs
▰Low Priority VM
▰Azure Hybrid Benefits
▰Reserved Instances
@Alan Tsai 的學習筆記
有效的成本管理
54
RBAC & Tags
Cost Analysis,
Power BI, APIs
設計影響費用on-prem很多隱性費用
依照情境來分析
Azure Policy
@Alan Tsai 的學習筆記
更多參考資料
55
▰aka.ms/AFUN70MSLearnCollection
@Alan Tsai 的學習筆記
歡迎訂閲、按讚 + 分享
• FB 粉絲頁
• http://fb.alantsai.net
• Youtube 頻道
• http://yt.alantsai.net
• Alan Tsai 的學習筆記
• https://blog.alantsai.net
@alantsai2007Line@
56
57
Q&A
感謝大家
CREDITS
Special thanks to all the people who made
and released these awesome resources for
free:
▰ Presentation template by SlidesCarnival
▰ Photographs by Startup Stock Photos
58

Azure Taiwan - Keep azure cost down (Azure 成本管控)

Editor's Notes

  • #14 介紹 Bandwidth – 在 pricing detail 裡面的egress 介紹 SLA – 在 pricing detail 最下面 介紹 Region – 可以看region支援那些資源以及speed test 介紹 acu 的概念 – A1 v2 以及 D1 v2
  • #22 Design decisions can have an impact on cost. Managed disks come in a variety of shapes and sizes, Premium SSD, Standard SSD, Standard HDD, or Ultra. Each offer different performance points but come with different prices. Everyone will want the fastest but it’s not always necessary. Managed disks are pay per allocated space. Start small, increase as needed.  Ultra, Standard SSD, Premium SSD, Standard HDD
  • #23 Storage tiers come in three sizes, Archive, cool or hot. Archive is great for storing data you need to keep but don’t need to access very often or fast. Hot is great for data you access all the time and need to retrieve very quickly.
  • #24 Choose your replication needs wisely. Locally redundant storage Zone redundant storage Geo redundant storage Read-access geo redundant storage
  • #25 When looking at pricing you will notice that some regions can be cheaper than others, and this is due to differing costs for running those datacenters (eg land, electricity)
  • #26 BUT be wary of putting everything in the cheapest region, as you could end up incurring latency and network traffic costs
  • #27 https://appmigration.microsoft.com/assessment/https://demo20190922.azurewebsites.net/
  • #28 https://www.christiaanbrinkhoff.com/2017/12/01/how-to-lift-and-shift-on-premise-vmware-workloads-to-the-microsoft-azure-cloud-with-the-new-azure-migrate-service/