Posts

Azure: Top 3 Links

The top 3 Azure links are: Azure portal Azure Billing Azure Pricing Calculator

Azure PowerShell: Have PSVersion 5

Image
If you're new to the Azure PowerShell save yourself some hassle and immediately go to PowerShell Version 5. Otherwise you will end up struggling with many issues like: PS C:\Windows\system32> Import-AzureRM Import-AzureRM : The term 'Import-AzureRM' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + Import-AzureRM + ~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Import-AzureRM:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException Windows 7 for example usually has version 3 installed. You can check the version by simply pasting into the command prompt: $PSVersionTable How to upgrade to PowerShell 5? Well, just by installing the WMF 5 . And a general remark for PowerShell: Run as Administrator. Sources: How to install and configure Az...

Visual Studio: Scaffolding, EF and virtual

virtual properties "give EF a hook into your plain C# classes and enable features such as an efficient change-tracking mechanism. The EF needs to know when a property value on a model changes, because it might need to issue a SQL UPDATE statement to reconcile those changes with the database." Sources: Professional ASP.NET MVC 5, Chapter 4

Visual Studio Usage: Automatic properties generation

Image
"Visual Studio has a useful snippet for creating auto-implemented properties". Type "prop" Tab Specify property's type Tab Specify property's name Sources: Professional ASP.NET MVC 5, Chapter 4

VMWare ESX: Steps to clone an image with SQL Server on it

The following steps are helpful to clone a Win 2012 R2 server from an arbitrary image to a new machine (incl. SQL server installation). Power down source image Power up copied, new image Open via ESx console / vSphere Client and first rename workstation to new name and unjoin the domain (e.g. workgroup TEMP), Restart Rejoin domain, Restart (unjoin/rejoin prevents many silly issues with the AD) Access from now on via mstsc Start checking for Windows updates Open SQL Management Studio and add the domain sysadmin user, if not present Now it's safe to delete the <old-workstation-name>\<admin-username> Have all Windows updates installed Create "clean" Snapshot

Visual Studio Usage: Peek Definition Hotkey

Very nice way to quickly check a definition in Visual Studio (2015). Alt+F12 Sources: How to: View and Edit Code by Using Peek Definition (Alt+F12)

Visual Studio Usage: Visual Scrollbar

Image
In Visual Studio (2013) there is the option to enable a visual scrollbar. Tools / Options Text Editor / All Languages / Scroll Bars Behavior / Use map mode for vertical scroll bar