How to Install Windows 10 on Microsoft Azure


win10Azuresl00

It is great time Windows 10 is released and there are huge amount of hype everywhere on the internet. I am using Windows 10 from the beginning through the Insider program, and all I can say the Windows 10 is the greatest and the best OS ever made.
There are plenty of blog posts and articles about the Windows 10, and everybody who is using previous version of the Windows OS should upgrade to Windows 10. As soon as you upgrade you will see the difference and better experience in all aspects.
For this blog post I would show you how to install Windows 10 on Azure, and how to enable some of the great feature. So lets start.

1. First of all go to your Microsoft Azure Subscription Portal.

win10Azuresl0

2. Create New Azure Virtual Machine

win10Azuresl01

3. Start defining Virtual Machine Parameters  by defining OS version. Select Windows 10 Enterprise (x64)

win10Azuresl1

4. Define Virtual Machine Name, username, and password.

Note: This User name should not be developer username, because you have some restriction for Administrator when developing Windows Application. For this reason I have defined bhrnjica_admin user name. My developer username will be bhrnjica, which will be defined later.

win10Azuresl2

5. Define Cloud service name, DNS Name and Region. In this step it is also neccessery to open all port you will need. In my case I have opened the following port:

  • Remote Desktop – this is default without this port you are not able to connect to this machine.
  • PowerShell in case you are working on PowerShell.
  • MSSQL port if you are planning to install Microsoft SQL Server on this machine.
  • MySQL is you are planning to install MySQL server.

win10Azuresl3

6. The last step is to enable some components to be installed on the virtual machine. You have option to include some Antimalware software as well as some Virtual Machine Agent.

win10Azuresl4

7. After you click on the last OK button, wait some time (few minutes) and you should see the following status on you Microsoft Azure Portal.

win10Azuresl5

8. To connect to your created Windows 10 machine, click Connect button to download RDP connection (See picture above). Double click to downloaded RDP file, enter your credentials.

win10Azuresl6

9. Then you have your Windows 10 Azure Machine.

win10Azuresl7

 

10. Enjoy on your Windows 10 Azure Machine

Where is Debug – Exception menu option in Visual Studio 2015


Few days ago Microsoft launched Visual Studio 2015, the  long waited release with tons of great features. In the last three years I held several sessions on Microsoft and Community conferences about some of the new feature in Visual Studio 2015, like new C# and VB compiler so called Roslyn, new JIT 64 compiler, Framework 4.6 , native Compiler, as well as great new Debugging and Profiling tools.

During daily development I am using Debug features a lot. First time I have opened Visual Studio 2015, I could not find Debug Exception option. Usually the option is under Debug menu.

Visual Studio 2015

Visual Studio 2013

Visual Studio 2015

Visual Studio 2015

After some researching I have found the option in Debug->Window->Exception Settings. Now the Exception Setting window is modless dialog, so you can set the option without interrupting debug process. Also there are powerfull filter to quickly find right exception you want to throw.

debug_exception2

There is a great video about this feature which you can see here and see why Visual Studio team moved this option to Debug-Windows menu option.

https://channel9.msdn.com/Events/Visual-Studio/Visual-Studio-2015-Final-Release-Event/Revamped-Exception-Settings-Experience-in-Visual-Studio-2015/player

error CS0433 for ‘System.Windows.Automation’ type


vsissu2e

Few days ago I had a strange issue in one of my Visual Studio 2013 solution. The Test project required functionality of System.Windows.Automation, and I have added assembly UIAutomationClient. When tried to run tests I got the folowing compiler error:

error CS0433: The type ‘System.Windows.Automation.AutomationElement’ exists in both ‘c:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PublicAssemblies\UIAComWrapper.dll’ and ‘c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\UIAutomationClient.dll’

It was strange issue, because I didn’t add UiaComWrapper assembly. Tried to remove the assembly, but as soon I run test the previous error appeared.

vsissue

 

Fixing the issue

To fix this issue we have to use “Reference Alias” which is specified here. So for our assembly UIAutomatisationClient change the Alias from “global” to  “UIAutomationClientAlias”. See picture below.

vsissuesl2

Now that we defined new alias, in the following text it is shown how to use it in your cs file. Open the cs file we have error.

1. At the top opf the file put the folowing line:

extern alias UIAutomationClientAlias;

2. Define using namespace from the new alias:

using Autom = UIAutomationClientAlias::System.Windows.Automation;

3. Now we can use all members from Automation class safely, and the compiler error is despaired.

vsissuesl3

Could not connect to GitHub.com in Visual Studio 2015


githubext_sl3

In Visual Studio 2015 when you try to connect to GitHub you may get the message “Could not connect to GitHub.com”. The problem for this could be that you didn’t include GitHub extenstion feature during installation of the Visual Studio.

1. During installation of Visual Studio 2015 GitHub Extensions must be checked. (See following picture).

githubext_sl1

2. Even if you have included this feature in to the installation, you may still get the error. Actually, for some reason you cannot log in to the GitHub. In that case go to https://visualstudio.github.com and download the installer and reinstall the extension. That was worked in my case.

For instruction of how to install extension you can find on the web page.

Now you can open Connection from Team Explorer and choose GitHUb Extension.

githubext_sl2

The Login page for GitHub appears. Log in to the GitHub and start using GitHub.

 

 

 

 

Follow

Get every new post delivered to your Inbox.

Join 629 other followers