Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Azure入門(AzureBlobStarage)
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Yuta Kujirai
January 17, 2019
180
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Azure入門(AzureBlobStarage)
Yuta Kujirai
January 17, 2019
More Decks by Yuta Kujirai
See All by Yuta Kujirai
azure入門(Azure Resource Manager)
yuta0910
0
260
Azure入門(Azure Virtual Machine、Azure App Service)
yuta0910
0
220
Featured
See All Featured
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
Building the Perfect Custom Keyboard
takai
2
890
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
240
Build your cross-platform service in a week with App Engine
jlugia
234
19k
Heart Work Chapter 1 - Part 1
lfama
PRO
10
36k
Ethics towards AI in product and experience design
skipperchong
2
390
Odyssey Design
rkendrick25
PRO
2
820
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
The SEO identity crisis: Don't let AI make you average
varn
0
560
Transcript
Azure blob storageͰ੩తͳWebαΠτΛ࡞͢Δ
1.രͰ੩తͳwebαΠτΛ࡞ • ετϨʔδΞΧϯτΛ࡞ • ੩తͳwebαΠτ༻ͷίϯςφ($web)ͷ࡞ • ίϯςφʹσϑΥϧταΠτ(index.html)ͷσϓϩΠ(ϑΝΠϧͷΞοϓϩʔυ) • webαΠτͷσϓϩΠ֬ೝ 2.BLOB+CDNߏͰ੩తͳwebαΠτΛ࡞
• CDN ϓϩϑΝΠϧͷ࡞ • CDNΤϯυϙΠϯτͷ࡞ • webαΠτͷσϓϩΠ֬ೝ
3.blob storageΛϑΝΠϧαʔόͱͯ͠͏ • ετϨʔδΞΧϯτͷ࡞ • AzureΞΧϯτͱͷඥ͚Λߦ͏
Azure blob storageͱ Կʁ (※ެࣜΑΓҾ༻) Blob Storage ʹ͍ͭͯ ɾMicrosoft ͷΫϥυετϨʔδ
ɾHTTP/HTTPS ܦ༝Ͱ Blob Storage ͷΦϒδΣΫτ ʹΞΫηε ɾAzure Storage REST APIɺAzure PowerShellɺAzure CLIɺ·ͨ Azure Storage ΫϥΠΞϯτ ϥΠϒϥϦΛ ༻ͯ͠ɺBlob Storage ͷΦϒδΣΫτʹΞΫηε
1ͷߏਤ blob storage/web/index.html Πϯλʔωοτ ίϯςϯπΛฦ͢ ΞΫηε
Ϧιʔεͷ࡞Λબ
Storage AccountΛબ
ϦιʔεάϧʔϓɺετϨʔδΞΧϯτ໊ɺϨϓϦέʔγϣϯΛೖྗ
ϦιʔεάϧʔϓɺετϨʔδΞΧϯτ໊ɺϨϓϦέʔγϣϯΛೖྗ
ϦιʔεʹҠಈΛΫϦοΫ
੩తͳWebαΠτΛΫϦοΫ
༗ޮΛΫϦοΫ
index.html,error.htmlΛೖྗͯ͠อଘ
$webΛΫϦοΫ
Index.htmlΛ࡞ <!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>blob static
site</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/ dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous"> </head> <body> <h2 class="text-center mt-3 mb-5”>BLOBͰ੩తαΠτΛ࡞Ε·ͨ͠ʂ</h2> <div class="container"> <div class="mb-5 text-center"> BLOBͰ੩తαΠτΛ࡞Ε·ͨ͠ʂ<br> BLOBͰ੩తαΠτΛ࡞Ε·ͨ͠ʂ </div> </div> </body> </html>
error.htmlΛ࡞ <!DOCTYPE html> <html lang="ja"> <head> <meta charset="UTF-8"> <title>blob static
site</title> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/ dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous"> </head> <body> <h2 class="text-center mt-3 mb-5”>error.html͕ΈΕͯ·͢ʂ</h2> <div class="container"> <div class="mb-5 text-center"> errorͰ͢Α<br> errorͰ͢Α </div> </div> </body> </html>
ΞοϓϩʔυΛΫϦοΫ
index.htmlͱerror.htmlΛબͯ͠Ξοϓϩʔυ͢Δ
ετϨʔδΞΧϯτ੩తͳwebαΠτͷ֓ཁͰϓϥΠϚϦΤϯυϙΠϯτΛίϐʔ
ϒϥβͰϓϥΠϚϦΤϯυϙΠϯτʹΞΫηε
ϒϥβͰϓϥΠϚϦΤϯυϙΠϯτͷҟͳΔϑΝΠϧύεʹΞΫηε
BLOB+CDN ߏ $%/ʹ͍ͭͯ ɾCDN͕͋Δ͜ͱͰɺߴ͍ύϑΥʔϚϯεɻ ɹblob storageଆʹෛՙ͕͔͔Βͳ͍ ɹΞΫηεٸ૿ʹରԠͰ͖Δɻ ɾCDNෳڌੑΞοϓ ྫΛ͋͛ΔͱɺBLOB+CDNҰ࣌తʹΞΫηε͕ٸ૿͢ΔΩϟ ϯϖʔϯαΠτͰ͏ͱޮՌతͳߏͱͳΔɻ
ʢCDNʹ͍ͭͯͷࢀߟࢿྉɿCDNͰػձଛࣦΛճආʂCDNͷ Έ͔ΒಋೖޮՌͷࢼࢉ·Ͱ͔Γ͘͢͝հ URL:https://knowledge.sakura.ad.jp/7085/ʣ
2ͷߏਤ Πϯλʔωοτ ίϯςϯπΛฦ͢ ΞΫηε blob storage/web/index.html CDN ίϯςϯπө
Ϧιʔεͷ࡞Λબ
CDNΛબ
ϦιʔεάϧʔϓɺετϨʔδΞΧϯτ໊ɺϨϓϦέʔγϣϯΛೖྗ Ұҙɿҙ ඪ४
CDNͷϓϩϑΝΠϧΤϯυϙΠϯτΤϯυϙΠϯτͷϗετ໊Λίϐʔ
ϒϥβͰϓϥΠϚϦΤϯυϙΠϯτʹΞΫηε CDNͷө10΄Ͳ͔͔Δʢࠓճඪ४MS※CDNͷछྨʹΑͬͯө࣌ؒҧ͏ʣ
10ޙ͘Β͍ʹ࠶ϒϥβͰϓϥΠϚϦΤϯυϙΠϯτʹΞΫηε
ϒϥβͰϓϥΠϚϦΤϯυϙΠϯτͷҟͳΔϑΝΠϧύεʹΞΫηε
ࠓճΓ·ͤΜ͕ɺڵຯ͕Θ͍ͨΒҎԼ ௐͯͬͯΈ͍ͯͩ͘͞ɻ • ࣗͰऔಘͨ͠υϝΠϯΛ༻͢Δ https://docs.microsoft.com/ja-jp/azure/storage/blobs/storage-https-custom-domain-cdn • HTTPHTTPSͷϦμΠϨΫτ https://docs.microsoft.com/ja-jp/azure/cdn/cdn-rules-engine
blob storageΛ ϑΝΠϧαʔ όͱͯ͠͏ ɾετϨʔδ ΞΧϯτͷίϯςϯπΛ؆୯ʹཧ
ϒϥβͰϓϥΠϚϦΤϯυϙΠϯτͷҟͳΔϑΝΠϧύεʹΞΫηε azure storage explorerͰݕࡧ͠ɺμϯϩʔυΠϯετʔϧ
CDN ϒϥβͰϓϥΠϚϦΤϯυϙΠϯτͷҟͳΔϑΝΠϧύεʹΞΫηε Azure Environment:Azure Λબ
CDN ϒϥβͰϓϥΠϚϦΤϯυϙΠϯτͷҟͳΔϑΝΠϧύεʹΞΫηε AzureΞΧϯτͱͷඥ͚Λߦ͏
CDN ϒϥβͰϓϥΠϚϦΤϯυϙΠϯτͷҟͳΔϑΝΠϧύεʹΞΫηε Ξοϓϩʔυμϯϩʔυͷૢ࡞ΛGUIͰߦ͑Δ