Fixed wrong Get-AzureStorageAccount usage on line 501:  $currentStorageAccountLocation = (Get-AzureStorageAccount -StorageAccountName $subscription.CurrentStorageAccount).GeoPrimaryLocation
should be: $currentStorageAccountLocation = (Get-AzureStorageAccount -StorageAccountName $subscription.CurrentStorageAccountName).GeoPrimaryLocation
Subscription object doesn't have CurrentStorageAccount but CurrentStorageAccountName property

Fixed wrong image family name filter for SQL server on line 552: $imageFamilyNameFilter = "SQL Server 2012 SP1 Standard on WS 2012"
should be: $imageFamilyNameFilter = "SQL Server 2012 SP1 Standard on Windows Server 2012"