Showing posts with label blob. Show all posts
Showing posts with label blob. Show all posts

Reading Notes #288

IMG_20170706_063020

Cloud




Programming




Reading Notes #265

msdevMtljan31Suggestion of the week


Cloud


Programming


Databases


Miscellaneous



Reading Notes #172

HomeSuggestion of the week


Cloud


Miscellaneous


~Frank B.


Reading Notes #141

Image from hubspot.comSuggestion of the week

  • Moving to Microsoft Azure (Filip Ekberg) - Another story about a blog migration on Azure. It's always interesting to learn what kind of trouble the people got while doing that.

Cloud


Programming


Mobile


Miscellaneous




Reading Notes #139

Suggestion of the week


Cloud


Programming


Mobile


Miscellaneous


~Frank


How to copy blobs or VHDs between different Windows Azure subscription

(An updated version of this post is available in both English and français)

First of all, why would you want to copy Virtual Hard Drive (VHD) or a blob from a Windows Azure subscription to another? It could be for: doing backups, because your Windows Azure trial is ending, to get a copy of a client’s VM to investigate a problem. So, when one of my client asked me if it was possible to do it, my answer was: “Yes it is, using command line tools”. But since he was looking for a simple solution, I wrote him a little script that I will share here so everyone can enjoy it.
 

Get Started

To do the copy, you only need to do one PowerShell command. But, in order to execute this command, you need to have Windows Azure command-line tool already installed. At the end of this post, the script to install the Windows Azure command-line tool will be provided.
 

The command

Having installed the required tool, you can execute this one line of code from the Windows Azure command-line:
azure vm disk upload <source-path> <target-blob-url> <target-storage-account-key>

Get the source

In this command, you must replace <source-path> by the url of the VHD or blob that you want to copy from.
You can get this url through the Windows Azure Portal, using your account where you want to copy from.

  1. On the left side of the screen click on the Storage icon.
  2. Then click on the storage name.
  3. From the top of the screen click on Containers
  4. And when the container list appears click on the name of the container to get the details view.

2012-10-13_0757_-_Step_1-2

Get the destination

2012-11-11_0803Now that the "from" as been identified, we need to specify the “to”. We must replace the <target-blob-url> by the url of the Windows Azure Storage container in the destination Azure subscription. If the Blob container already exists, just connect to this account and follow the previous steps. Otherwise, you need to create a new one by using the “+” imbutton on the bottom left of the screen.

2012-11-11_0754_Public_ContainerThe easiest way is to set the container with a public access at the time of the transfer. You can set this option when creating or editing the container using the button at the bottom of the screen.

Then specify the access propriety to Public Container.






Get the key

2012-11-11_0821Last part but not the less important we must specify the storage account key and replace the <target-storage-account-key> with it. You can find it by accessing the Manage Keys button from the dashboard of the Storage. You can use either the primary or the secondary access key.



 


Install the Windows Azure command-line tool


2012-10-13_0826Here is a little script that you should put in a “.cmd” or “.bat” file. It will install the Windows Azure command-line tool with Node.js and Chocolatey. After running the script, a console window that looks like this should be open.










@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('http://bit.ly/psChocInstall'))" && SET PATH=%PATH%;%systemdrive%\chocolatey\bin
@powershell "cinst nodejs.install" && SET PATH=%PATH%;%ProgramFiles(x86)%\nodejs
@powershell -ExecutionPolicy unrestricted "npm install azure -g" && SET PATH=%PATH%;%USERPROFILE%\AppData\Roaming\npm\
@powershell azure
pause

References





  • Windows Azure command-line tool
  • Node Packaged Modules or Node.js
  • Chocolatey 





  • Reading Notes #76

     
    Suggestion of the week


    Cloud

    Integration

    Database

    Programming

    Miscellaneous

    ~Frank









    Reading Notes #71

    clip_image001
    Cloud
    Integration
    Programming
    Miscellaneous

    ~Frank




    Reading Notes #57

     
    “Cloud Book Study” by Heidi Neilson
    Cloud
    Check out the paper.

    Programming

    Miscellaneous

      ~ Frank


      Reading Notes #47

      Balance_cloud

      Cloud


      Programming

      • An Introduction to NuGet - Nice post that explain quickly what is NuGet and witch tools are available.
      • Why I Hate Unit Testing - What a nightmare! I'm not sure that this post will help the undecided to join the unit testing but this JusMock tool deserved a look.
      "This is easy to do with Telerik JustMock. I wrote about using JustMock to get you started in From Legacy to Dependency Injection.
      Steve Forte and Joel Semeniuk have a great presentation on this called The Agile Buffet Table."


      Miscellaneous

      • A Super-Efficient Email Process (Peter) - Explain a simple method to be more productive and efficient with e-mail management.
      • the Continuous Client (Joshua Topolsky) - So true, I'm looking for a continuous Twitter client for a long time now. I don't understand why this isn't in all application. Congratulation to Kindle for this! You can start reading on one device and continue to another one without effort.
      • 9 Steps to Take When You Loathe Your Own Blog (Guest Blogger) - Having a blog is a lot work. Here are 9 tips to keep you inspired and proliferates.
      • 5 Things to Ask Your Cloud Backup Services Provider - I'm a Mozy user and really happy with it. Of course this post is also a sales pitch but the questions are the good one and should be considered when selecting your backup solution. When did you do your last backup?
      • 5 Steps To Choosing The Right Challenges (Brendon Burchard) - Nice post that give good tips to identify good challenges.



      ~Frank


      Reading Notes #43

      Cloud


      from Wely's Cloud Journey blog


      Programming

      • Need A Cloud Monkey? Netflix Unleashes Simian Army - Monkeys is the name of all those programmes or applications that are used by Netflix to watch their system. This post report that Netflix announce they will give the code as open source.
      • Outside-the-Box Pizza, Part 3: Mobility & Responsive Web Design (David Pallmann) - In this post all the CSS tricks to support the Responsive web design will be explains. The goal is to support the army of different mobile devices.
      • Why you need to learn async in .NET (weblogs.asp.net) - Nice post with a code sample that illustrate the advantage of using the async framework. Let’s the code represents “the what” of what you want to do not “the how”.
      • WCF-SQL Adapter and permissions - Well explain. I got this once, and I remember spending few minutes trying to understand this error message... It's a shame that it's not the good one that is display first...
      • Lowering the Barriers to Code Generation with T4 - If you are not already using T4 or if you think code generation is only for "big project", this post is for you. This very nice tutorial shows how to use T4 to improve the quality, the stability and the readability of your code. A must for all serious .Net developer.

        Miscellaneous