I was working on a large lab for testing Disaster Recovery scenarios.  Then I had to fun task of breaking things in fun and interesting ways (when was the last time you tried to take a edb file from and exchange server and replace it with a single word file's binaries).  Before I did any of this, I did not want the last 40 hours of work setting up this lab to go to waste.  So I did a quick little script that copies data from one location to another in Azure:

$blob = @{}
#Get source information for the container you want to copy
$srcUriroot = "https://rmdlabsa.blob.core.windows.net/vhds/" 
$srcStorageAccount = "rmdlabsa"
$srcStorageKey = "SWowGQ9blauE/hdIYsdEbpLcSJ+SezH/7p3S22NkCFKyM4WqhjYGNUvc20gKHOBOdMsh+y77YTuSXfdmJd0J4g=="
$srcContainerName = "vhds"

#Get the destination information for where you want to copy to.  Note that if this is in the same storage account it is almost instantaniouse
$destStorageAccount = "rmdlabsa"
$destStorageKey = "SWowGQ9blauE/hdIYsdEbpLcSJ+SezH/7p3S22NkCFKyM4WqhjYGNUvc20gKHOBOdMsh+y77YTuSXfdmJd0J4g=="
$destContainerName = "vhdorig"


#Build context information
$srcContext = New-AzureStorageContext  –StorageAccountName $srcStorageAccount `
                                        -StorageAccountKey $srcStorageKey  
$destContext = New-AzureStorageContext  –StorageAccountName $destStorageAccount `
                                        -StorageAccountKey $destStorageKey
										
#Get source files
$srcContainer = Get-AzureStorageContainer -Context $srcContext -Name $srcContainerName
$Files = Get-AzureStorageBlob -Container $srcContainer.Name -Context $srcContext
$Files | Export-Csv -NoTypeInformation C:trashfiles.csv

#Copy the files
$i=0
Foreach ($file in $Files)
{
    $srcUri = $srcUriroot + $file.Name
    write-host $i $srcUri $destContainerName
	#Builds an array in the event you need to inspect the copy
    $blob[$i] = Start-AzureStorageBlobCopy -srcUri $srcUri -SrcContext $srcContext -DestContainer $destContainerName -DestBlob $file.Name -DestContext $destContext
    $i++
}
$blob = @{}
#Get source information for the container you want to copy
$srcUriroot = "https://rmdlabsa.blob.core.windows.net/vhds/" 
$srcStorageAccount = "rmdlabsa"
$srcStorageKey = "SWowGQ9blauE/hdIYsdEbpLcSJ+SezH/7p3S22NkCFKyM4WqhjYGNUvc20gKHOBOdMsh+y77YTuSXfdmJd0J4g=="
$srcContainerName = "vhds"

#Get the destination information for where you want to copy to.  Note that if this is in the same storage account it is almost instantaniouse
$destStorageAccount = "rmdlabsa"
$destStorageKey = "SWowGQ9blauE/hdIYsdEbpLcSJ+SezH/7p3S22NkCFKyM4WqhjYGNUvc20gKHOBOdMsh+y77YTuSXfdmJd0J4g=="
$destContainerName = "vhdorig"


#Build context information
$srcContext = New-AzureStorageContext  –StorageAccountName $srcStorageAccount `
                                        -StorageAccountKey $srcStorageKey  
$destContext = New-AzureStorageContext  –StorageAccountName $destStorageAccount `
                                        -StorageAccountKey $destStorageKey
										
#Get source files
$srcContainer = Get-AzureStorageContainer -Context $srcContext -Name $srcContainerName
$Files = Get-AzureStorageBlob -Container $srcContainer.Name -Context $srcContext
$Files | Export-Csv -NoTypeInformation C:trashfiles.csv

#Copy the files
$i=0
Foreach ($file in $Files)
{
    $srcUri = $srcUriroot + $file.Name
    write-host $i $srcUri $destContainerName
	#Builds an array in the event you need to inspect the copy
    $blob[$i] = Start-AzureStorageBlobCopy -srcUri $srcUri -SrcContext $srcContext -DestContainer $destContainerName -DestBlob $file.Name -DestContext $destContext
    $i++
}

Website Color Pallet

In an attempt to make this iteration of the website a little more pleasing to the eye, I have decided to actually use the site to assist in the development of the look and feel.  Today's task, pick a color pallet.  I tried to do this on my own, but when I see things on a pallet list, I like them, then when I put them on the web, they look very similar to one of my nieces or nephews drawings (some of them are significantly better).  So I started to look around on the net for combinations that others may like.  Since I have an affinity to military aircraft, I assume that I will have some of the military grey on there (Think F-16 for the dull, F-22 for the flat, and P-51 for the metallic) and that is what I started looking for.
That brings me to this site: www.colorcombos.com. From there I started to just select some colors that I liked and eventual found one that I liked.  And to refresh my mind on how tables work, I am presenting the Silver Air pallet.
0000002F4E6F98B1C4C8D7E3E15119CCCCCC

A WORD ABOUT

RSS Tech Stuff