SlideShare ist ein Scribd-Unternehmen logo
1 von 5
Downloaden Sie, um offline zu lesen
The New Open Azure & Ruby
November 27, 2012 Lightning Talk


                                   cam@glacetouch.com
    Cam Stevenson                  github: camstevenson
The New Open Azure

 • Still supports the original Microsoft flavored technologies

 • Still has the basic services you’d expect

      • Blob storage, tables, queues, etc.

 • Now expanded with a decidedly open source set of capabilities

      • Pre-packaged Linux virtual machines

      • Developer toolkits for node.js, Java, PHP, Python as well as .Net

      • Sadly, no Microsoft supplied toolkit for Ruby
Azure with Ruby

 • There isn’t a Microsoft supplied toolkit for Ruby, but there is an Open
   Source one:

 • https://github.com/johnnyhalife/waz-storage

 • Lets you work with Azure blobs, queues and tables
An Example (upload to blob storage)
 require 'waz-blobs’

 if WAZ::Storage::Base.establish_connection!(:account_name => 'ottawaruby',
      :access_key => 'G+gohTOyuXi7DBFQmTmZuxIX2nrZGJLE6KLxTK5GkS/c1kytMgIUiZsMSe9VnLBQ0+vxLVhljhvsHIo6nLhTyw==')

  # get a reference to the "root" container, create it if it doesn't exist
  container = WAZ::Blobs::Container.find('$root')
  if !container
    WAZ::Blobs::Container.create('$root')
    container = WAZ::Blobs::Container.find('$root')
  end

  # set public access on this container
  container.public_access = WAZ::Blobs::BlobSecurity::Blob

  # upload a file, supplying mime type
  file_path = 'ottawaruby.html'
  upload_file = File.open(file_path, "rb", :encoding => "BINARY")
  container.store('ottawaruby.html', upload_file.read, 'text/html')
  upload_file.close
 end
Some tips…

 -   $root is the root container of a blob storage account

 -   The stock waz-storage implementation doesn’t support this – my patched one at
     https://github.com/camstevenson/waz-storage

 -   Blob storage doesn’t support a default document (foo.com -> foo.com/index.html). You can work around this
     with a 301 redirect

 -   Azure VMs persist to their backing virtual hard disks (VHDs), so they don’t disappear when you shut down,
     only when you delete them

 -   Added bonus: you can move VHDs between local machines with Hyper-V and Azure

 -   Aside from the “commodity” services, MS has been adding new, really useful capabilities such as Azure Mobile
     Services

 -   Marc Gagne @ Microsoft is happy to be contacted with Azure questions, etc: marc.gagne@microsoft.com

Weitere ähnliche Inhalte

Andere mochten auch

Overview of the Helprace Experience
Overview of the Helprace ExperienceOverview of the Helprace Experience
Overview of the Helprace ExperienceHelprace
 
Fraternidad Arenas de San Pedro Boletín Diciembre 2011
Fraternidad Arenas de San Pedro Boletín  Diciembre 2011Fraternidad Arenas de San Pedro Boletín  Diciembre 2011
Fraternidad Arenas de San Pedro Boletín Diciembre 2011framasg
 
Trabajo5 christian bejarano-victor-gutiérrez
Trabajo5 christian bejarano-victor-gutiérrezTrabajo5 christian bejarano-victor-gutiérrez
Trabajo5 christian bejarano-victor-gutiérrezcrisbeme
 
Utazás, süti, kávé és pódium helyett - Üzleti megoldások professzionális web...
Utazás, süti, kávé és pódium helyett  - Üzleti megoldások professzionális web...Utazás, süti, kávé és pódium helyett  - Üzleti megoldások professzionális web...
Utazás, süti, kávé és pódium helyett - Üzleti megoldások professzionális web...Gloster telekom Kft.
 
Woke up in 2021
Woke up in 2021Woke up in 2021
Woke up in 2021klou
 
trabajo1soydel2do"F",ameliagallegoseducacion
trabajo1soydel2do"F",ameliagallegoseducacion trabajo1soydel2do"F",ameliagallegoseducacion
trabajo1soydel2do"F",ameliagallegoseducacion silvianaula
 
MongoDB Miami Meetup 1/26/15: Introduction to WiredTiger
MongoDB Miami Meetup 1/26/15: Introduction to WiredTigerMongoDB Miami Meetup 1/26/15: Introduction to WiredTiger
MongoDB Miami Meetup 1/26/15: Introduction to WiredTigerValeri Karpov
 

Andere mochten auch (7)

Overview of the Helprace Experience
Overview of the Helprace ExperienceOverview of the Helprace Experience
Overview of the Helprace Experience
 
Fraternidad Arenas de San Pedro Boletín Diciembre 2011
Fraternidad Arenas de San Pedro Boletín  Diciembre 2011Fraternidad Arenas de San Pedro Boletín  Diciembre 2011
Fraternidad Arenas de San Pedro Boletín Diciembre 2011
 
Trabajo5 christian bejarano-victor-gutiérrez
Trabajo5 christian bejarano-victor-gutiérrezTrabajo5 christian bejarano-victor-gutiérrez
Trabajo5 christian bejarano-victor-gutiérrez
 
Utazás, süti, kávé és pódium helyett - Üzleti megoldások professzionális web...
Utazás, süti, kávé és pódium helyett  - Üzleti megoldások professzionális web...Utazás, süti, kávé és pódium helyett  - Üzleti megoldások professzionális web...
Utazás, süti, kávé és pódium helyett - Üzleti megoldások professzionális web...
 
Woke up in 2021
Woke up in 2021Woke up in 2021
Woke up in 2021
 
trabajo1soydel2do"F",ameliagallegoseducacion
trabajo1soydel2do"F",ameliagallegoseducacion trabajo1soydel2do"F",ameliagallegoseducacion
trabajo1soydel2do"F",ameliagallegoseducacion
 
MongoDB Miami Meetup 1/26/15: Introduction to WiredTiger
MongoDB Miami Meetup 1/26/15: Introduction to WiredTigerMongoDB Miami Meetup 1/26/15: Introduction to WiredTiger
MongoDB Miami Meetup 1/26/15: Introduction to WiredTiger
 

Mehr von ottawaruby

Zhifu Ge - How To Be Weird In Ruby - With Notes
Zhifu Ge - How To Be Weird In Ruby - With NotesZhifu Ge - How To Be Weird In Ruby - With Notes
Zhifu Ge - How To Be Weird In Ruby - With Notesottawaruby
 
Working With Legacy Rails Apps - Ahmed Omran
Working With Legacy Rails Apps - Ahmed OmranWorking With Legacy Rails Apps - Ahmed Omran
Working With Legacy Rails Apps - Ahmed Omranottawaruby
 
TDD for Coding Practices - by Zhifu Ge
TDD for Coding Practices - by Zhifu GeTDD for Coding Practices - by Zhifu Ge
TDD for Coding Practices - by Zhifu Geottawaruby
 
Ruby Under The Hood - By Craig Lehmann and Robert Young - Ottawa Ruby Novembe...
Ruby Under The Hood - By Craig Lehmann and Robert Young - Ottawa Ruby Novembe...Ruby Under The Hood - By Craig Lehmann and Robert Young - Ottawa Ruby Novembe...
Ruby Under The Hood - By Craig Lehmann and Robert Young - Ottawa Ruby Novembe...ottawaruby
 
Canarie and dair in 10 minutes sept 2014 f
Canarie and dair in 10 minutes sept 2014 fCanarie and dair in 10 minutes sept 2014 f
Canarie and dair in 10 minutes sept 2014 fottawaruby
 
Project Night Meta - Ruby Tuesday - Pitch
Project Night Meta - Ruby Tuesday - PitchProject Night Meta - Ruby Tuesday - Pitch
Project Night Meta - Ruby Tuesday - Pitchottawaruby
 
Hackfest mockups
Hackfest mockupsHackfest mockups
Hackfest mockupsottawaruby
 
Ruby Tuesday - October 23rd, 2012
Ruby Tuesday - October 23rd, 2012Ruby Tuesday - October 23rd, 2012
Ruby Tuesday - October 23rd, 2012ottawaruby
 
Ruby Tuesday - November 27th, 2012
Ruby Tuesday - November 27th, 2012Ruby Tuesday - November 27th, 2012
Ruby Tuesday - November 27th, 2012ottawaruby
 
Ruby Tuesday - September 25th, 2012
Ruby Tuesday - September 25th, 2012Ruby Tuesday - September 25th, 2012
Ruby Tuesday - September 25th, 2012ottawaruby
 
Ottawa Ruby - Ruby Tuesday Meetup - August 28, 2012
Ottawa Ruby - Ruby Tuesday Meetup - August 28, 2012Ottawa Ruby - Ruby Tuesday Meetup - August 28, 2012
Ottawa Ruby - Ruby Tuesday Meetup - August 28, 2012ottawaruby
 
July 2012 Ruby Tuesday - Lana Lodge - Refactoring Lighting Talk
July 2012 Ruby Tuesday - Lana Lodge - Refactoring Lighting TalkJuly 2012 Ruby Tuesday - Lana Lodge - Refactoring Lighting Talk
July 2012 Ruby Tuesday - Lana Lodge - Refactoring Lighting Talkottawaruby
 
Ottawa Ruby - Ruby Tuesday Meetup - July 24, 2012
Ottawa Ruby - Ruby Tuesday Meetup - July 24, 2012Ottawa Ruby - Ruby Tuesday Meetup - July 24, 2012
Ottawa Ruby - Ruby Tuesday Meetup - July 24, 2012ottawaruby
 
Ottawa Ruby - Ruby Tuesday - June 26, 2012
Ottawa Ruby - Ruby Tuesday - June 26, 2012Ottawa Ruby - Ruby Tuesday - June 26, 2012
Ottawa Ruby - Ruby Tuesday - June 26, 2012ottawaruby
 

Mehr von ottawaruby (14)

Zhifu Ge - How To Be Weird In Ruby - With Notes
Zhifu Ge - How To Be Weird In Ruby - With NotesZhifu Ge - How To Be Weird In Ruby - With Notes
Zhifu Ge - How To Be Weird In Ruby - With Notes
 
Working With Legacy Rails Apps - Ahmed Omran
Working With Legacy Rails Apps - Ahmed OmranWorking With Legacy Rails Apps - Ahmed Omran
Working With Legacy Rails Apps - Ahmed Omran
 
TDD for Coding Practices - by Zhifu Ge
TDD for Coding Practices - by Zhifu GeTDD for Coding Practices - by Zhifu Ge
TDD for Coding Practices - by Zhifu Ge
 
Ruby Under The Hood - By Craig Lehmann and Robert Young - Ottawa Ruby Novembe...
Ruby Under The Hood - By Craig Lehmann and Robert Young - Ottawa Ruby Novembe...Ruby Under The Hood - By Craig Lehmann and Robert Young - Ottawa Ruby Novembe...
Ruby Under The Hood - By Craig Lehmann and Robert Young - Ottawa Ruby Novembe...
 
Canarie and dair in 10 minutes sept 2014 f
Canarie and dair in 10 minutes sept 2014 fCanarie and dair in 10 minutes sept 2014 f
Canarie and dair in 10 minutes sept 2014 f
 
Project Night Meta - Ruby Tuesday - Pitch
Project Night Meta - Ruby Tuesday - PitchProject Night Meta - Ruby Tuesday - Pitch
Project Night Meta - Ruby Tuesday - Pitch
 
Hackfest mockups
Hackfest mockupsHackfest mockups
Hackfest mockups
 
Ruby Tuesday - October 23rd, 2012
Ruby Tuesday - October 23rd, 2012Ruby Tuesday - October 23rd, 2012
Ruby Tuesday - October 23rd, 2012
 
Ruby Tuesday - November 27th, 2012
Ruby Tuesday - November 27th, 2012Ruby Tuesday - November 27th, 2012
Ruby Tuesday - November 27th, 2012
 
Ruby Tuesday - September 25th, 2012
Ruby Tuesday - September 25th, 2012Ruby Tuesday - September 25th, 2012
Ruby Tuesday - September 25th, 2012
 
Ottawa Ruby - Ruby Tuesday Meetup - August 28, 2012
Ottawa Ruby - Ruby Tuesday Meetup - August 28, 2012Ottawa Ruby - Ruby Tuesday Meetup - August 28, 2012
Ottawa Ruby - Ruby Tuesday Meetup - August 28, 2012
 
July 2012 Ruby Tuesday - Lana Lodge - Refactoring Lighting Talk
July 2012 Ruby Tuesday - Lana Lodge - Refactoring Lighting TalkJuly 2012 Ruby Tuesday - Lana Lodge - Refactoring Lighting Talk
July 2012 Ruby Tuesday - Lana Lodge - Refactoring Lighting Talk
 
Ottawa Ruby - Ruby Tuesday Meetup - July 24, 2012
Ottawa Ruby - Ruby Tuesday Meetup - July 24, 2012Ottawa Ruby - Ruby Tuesday Meetup - July 24, 2012
Ottawa Ruby - Ruby Tuesday Meetup - July 24, 2012
 
Ottawa Ruby - Ruby Tuesday - June 26, 2012
Ottawa Ruby - Ruby Tuesday - June 26, 2012Ottawa Ruby - Ruby Tuesday - June 26, 2012
Ottawa Ruby - Ruby Tuesday - June 26, 2012
 

Kürzlich hochgeladen

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 

Kürzlich hochgeladen (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 

Azure and Ruby - Cam Stevenson

  • 1. The New Open Azure & Ruby November 27, 2012 Lightning Talk cam@glacetouch.com Cam Stevenson github: camstevenson
  • 2. The New Open Azure • Still supports the original Microsoft flavored technologies • Still has the basic services you’d expect • Blob storage, tables, queues, etc. • Now expanded with a decidedly open source set of capabilities • Pre-packaged Linux virtual machines • Developer toolkits for node.js, Java, PHP, Python as well as .Net • Sadly, no Microsoft supplied toolkit for Ruby
  • 3. Azure with Ruby • There isn’t a Microsoft supplied toolkit for Ruby, but there is an Open Source one: • https://github.com/johnnyhalife/waz-storage • Lets you work with Azure blobs, queues and tables
  • 4. An Example (upload to blob storage) require 'waz-blobs’ if WAZ::Storage::Base.establish_connection!(:account_name => 'ottawaruby', :access_key => 'G+gohTOyuXi7DBFQmTmZuxIX2nrZGJLE6KLxTK5GkS/c1kytMgIUiZsMSe9VnLBQ0+vxLVhljhvsHIo6nLhTyw==') # get a reference to the "root" container, create it if it doesn't exist container = WAZ::Blobs::Container.find('$root') if !container WAZ::Blobs::Container.create('$root') container = WAZ::Blobs::Container.find('$root') end # set public access on this container container.public_access = WAZ::Blobs::BlobSecurity::Blob # upload a file, supplying mime type file_path = 'ottawaruby.html' upload_file = File.open(file_path, "rb", :encoding => "BINARY") container.store('ottawaruby.html', upload_file.read, 'text/html') upload_file.close end
  • 5. Some tips… - $root is the root container of a blob storage account - The stock waz-storage implementation doesn’t support this – my patched one at https://github.com/camstevenson/waz-storage - Blob storage doesn’t support a default document (foo.com -> foo.com/index.html). You can work around this with a 301 redirect - Azure VMs persist to their backing virtual hard disks (VHDs), so they don’t disappear when you shut down, only when you delete them - Added bonus: you can move VHDs between local machines with Hyper-V and Azure - Aside from the “commodity” services, MS has been adding new, really useful capabilities such as Azure Mobile Services - Marc Gagne @ Microsoft is happy to be contacted with Azure questions, etc: marc.gagne@microsoft.com