Last updated by at .

  • Hyper-V 2016
    What's new in Hyper-V 2016
  • Microsoft Azure
    Microsoft Azure

Tag: Microsoft Azure

Hyper-V Manager ins Azure Server Management Tools SMT

Manage Hyper-V from Azure Server Management Tools

Microsoft released an updated to the Azure Server Management Tools (SMT) and this improves some of the existing tools such as File Explorer and Device Manager. But the big announcement here is, that you now can manage your Hyper-V Server and Virtual Machines directly from Microsoft Azure from where ever you are. This is one of the great examples of using cloud solutions to extend your on premise environment, By using Management as a Service you basically don’t need to updated anything, you just got this new feature available in the Azure portal and you can start using it.

In this update to the Server Management Tools, Microsoft supports the following VM management functionality:

  • Start/Shutdown/Turn off/Pause/Resume
  • Save State/Delete Saved State
  • Take/Apply & rename checkpoints

You can see the Virtual Machines on which are running on the Hyper-V server

Hyper-V Manager in Azure SMT

You can also do basic management of checkpoints

Hyper-V VM in Azure SMT

If you want to know more about the Server Management Tools (SMT) check out my blog post: Manage Nano Server and Windows Server from Azure using Remote Server Management Tools

 



Azure Nano Server PowerShell Package Management

How to deploy Nano Server in Azure

In some other post I have written how you can deploy a Nano Server on premise using PowerShell or the Nano Server Image Builder. In this post I will quickly show you how you can setup a new Nano Server in Microsoft Azure.

To deploy Nano Server in Azure, Microsoft offers you a Nano Server Image in the Marketplace.

Using the Azure Portal to deploy Nano Server on Microsoft Azure

There are also several ways you can deploy Nano Server, for example using the Azure Portal or PowerShell. First this will show you how you can create a Nano Server Virtual Machine using the Azure Portal.

Nano Server on Azure Marketplace

Simply follow the steps to create a new Azure Virtual Machine.

Nano Server on Azure VM Size

The most important part is to configure the Network Security Groups to allow PowerShell Remoting since Nano Server does not support RDP. There are two options to do this, using WinRM over http (5985) or using WinRM using https (5986). To be honest in production you should only use https, but for some demos or if you are configuring Nano Server to be used over a VPN you can also use WinRM over http. I also recommend that you remove the RDP port rule, since this is not really necessary. If the WinRM rule in the network security group is not already there, just create it. For easy setup you can use 5985 if you want to use SSL you will require additional steps.

Nano Server on Azure Network Security Groups NSG

Follow the rest of the wizard to deploy the new Nano Server VM. After the VM is created you will see it in the Azure Portal. You can now use the IP address to connect to the virtual machine using PowerShell remoting. If you don’t have a VPN connection to the Azure VM Network you will need to use the public IP address, if it is connected trough a VPN or from another machine running in the same VM Network, you can use the internal IP address. In my demo case I am using the public IP address to connect to the virtual machine. To make it easier I also created a Public DNS name for this Azure IP address.

Nano Server on Azure Public DNS Name

To connect to your Nano Server you also have to setup PowerShell Remoting on your machine and add the host to your trusted hosts group.

You can now connect to your Nano Server running in Azure.

Nano Server PowerShell Remoting Azure VM

Using the Azure PowerShell module to deploy Nano Server on Microsoft Azure

First you have to install the Azure PowerShell Module and get the NanoServerAzureHelper PowerShell Module (NanoServerAzureHelper_20160927) this will help you with the setup.

Time to fire up PowerShell and login to Azure

First create a new Azure Resource Group and a Key Vault if you don’t have them already available. The key vault will be helping you to use SSL configuration for your PowerShell remoting.

Import the NanoServerAzureHelper PowerShell module which you have downloaded before.

NanoServerAzureHelper PowerShell Module

This will give you some new PowerShell cmdlets to deploy Nano Server quickly on Azure.

The most important for creating new Nano Server VMs in Azure is simply the New-NanoServerAzureVM.

New-NanoServerAzureVM

Create a new Nano Server VM in Azure using the following PowerShell command:

New-NanoServerAzureVM Create Nano Server VM

To connect you can get the public IP address for the system you deployed and connect to it

 

Using PowerShell Package Management to Install Roles and Features on Nano Server

Since in Nano Server does not include any roles per default you can now use PowerShell Package Management to installed Nano Server Packages on your Azure Virtual Machine.

Azure Nano Server PowerShell Package Management

If you want to know more about PowerShell Package Management on Nano Server, check out my blog post. If you want to know more about Nano Server in general check this post here: Nano Server – The future of Windows Server – Just enough OS

 

 

 

 

 

 

 



GartnerMQ_Virtualization

Microsoft a leader in Gartner x86 Server Virtualization Infrastructure 2016 Magic Quadrant

Year over year Microsoft is named as a leader in the Gartner x86 Server Virtualization Infrastructure Magic Quadrant and it gets closer and closer to VMware. Microsoft now is named again as a leader in Gartner x86 Server Virtualization Infrastructure 2016 Magic Quadrant. Especially the integration with System Center and Microsoft Azure as well as the new security features in Windows Server 2016 Hyper-V, makes Hyper-V a strong player in the hypervisor space. Check out the Microsoft Blog post for more information or my blog post about What’s new in Windows Server 2016 Hyper-V.

Gartner published the Gartner x86 Server Virtualization Infrastructure MQ with Microsoft landing in the Leader Quadrant for the sixth year in a row. Microsoft moved up in the ‘ability to execute’ and to the right in the ‘completeness of vision’ assessment compared with 2015. Gartner defines leaders as having a clear strategy and roadmap for offerings, understanding virtualization’s role in infrastructure and operations transformation, and having a clear vision with respect to private cloud, hybrid cloud and public cloud computing.

GartnerMQ_Virtualization

Microsoft offers you to have a look at the Gartner Document here:

Download the Gartner x86 Server Virtualization Infrastructure 2016 Magic Quadrant



Azure PowerShell Installing

How to Install the Azure PowerShell Module

Well if you are working with Microsoft Azure you may need the PowerShell Modules for automation and some settings which are only available in PowerShell. With the latest releases you can install the Azure PowerShell Module in several different ways.

Install Azure PowerShell

For me using the PowerShell Package Management and the PowerShell Gallery is may the easiest and fastest way to install it. In Windows 10 or a computer with the Windows Management Framework 5 installed, you can use the following PowerShell cmdlets to install it:

Microsoft Azure Resource Manager (new Portal):

And you can use the following command to login:

If you are using it against the classic Azure Portal you can use the following:

And you can use the following command to login:

 

You can also see the Azure PowerShell Modules and versions using the PowerShell Package Management:

Azure PowerShell Module

 

 



Windows Azure Website from Gallery

Migrate your WordPress Blog to Microsoft Azure Web Apps

I am running several WordPress websites and I run them on several different hosters, now in the past months I migrated some of them to Microsoft Azure using the Azure Web Apps. In this post you can see how you can migrate a smiple WordPress blog to Microsoft Azure.

First you have to have a Microsoft Azure account and login to the Microsoft Azure Portal. You can now create a new website from gallery, where you can choose WordPress as an option.

Windows Azure Website from Gallery

Windows Azure Website WordPress

You can than start configuring the WordPress website and set it up to use a new database and where it should be located.

Windows Azure Website WordPress configuration

After you created the website, you can go on the link of the website and configure your wordpress site.

Windows Azure Website Dashboard

To be able to upload themes and plugins you have to enable FTP for you account. In you can do this by changing the deployment credentials.

Windows Azure Website Configure FTP

Now what you can to migrate your existing blog to your new Microsoft Azure blog, you can export your WordPress blog and import in in the new WordPress blog running on Windows Azure. In my case I hit a issue with a PHP default setting which was maxupload limited to 2MB, and my WordPress blog export file was bigger than 2MB. Now you can simply change the PHP setting by using a .user.ini..

 



Get-NetIPConfiguration

Basic Networking PowerShell cmdlets cheatsheet to replace netsh, ipconfig, nslookup and more

Around 4 years ago I wrote a blog post about how to Replace netsh with Windows PowerShell which includes basic powershell networking cmdlets. After working with Microsoft Azure, Nano Server and Containers, Powershell together with networking becomes more and more important. I created this little cheat sheet so it becomes easy for people to get started.

Basic Networking Information with PowerShell

Get-NetIPConfiguration

Get the IP Configuration (ipconfig with PowerShell)

List all Network Adapters

Get a spesific network adapter by name

Get more information VLAN ID, Speed, Connection status

Get driver information

Get adapter hardware information. This can be really usefull when you need to know the PCI slot of the NIC.

Disable and Enable a Network Adapter

Rename a Network Adapter

IP Configuration using PowerShell

Get-NetIPAddress

Get IP and DNS address information

Get IP address only

Get DNS Server Address information

Set IP Address

or if you want to change a existing IP Address

Remove IP Address

Set DNS Server

Set interface to DHCP

Ping with PowerShell

Test-NetConnection Ping

How to Ping with PowerShell

Get some more details from the Test-NetConnection

Ping multiple IP using PowerShell

Tracert

PowerShell Tracert

Tracert with PowerShell

Portscan with PowerShell

PowerShell Portscan

Use PowerShell to check for open port

NSlookup in PowerShell

PowerShell NSlookup

NSlookup using PowerShell:

Route in PowerShell

PowerShell Route

How to replace Route command with PowerShell

NETSTAT in PowerShell

PowerShell Netstat

How to replace NETSTAT with PowerShell

NIC Teaming PowerShell commands

Create a new NIC Teaming (Network Adapter Team)

SMB Related PowerShell commands

SMB PowerShell SMB Client Configuration

Get SMB Client Configuration

Get SMB Connections

Get SMB Mutlichannel Connections

Get SMB open files

Get SMB Direct (RDMA) adapters

Hyper-V Networking cmdlets

Hyper-V PowerShell Get-VMNetwork Adapter

Get and set Network Adapter VMQ settings

Get VM Network Adapter

Get VM Network Adapter IP Addresses

Get VM Network Adapter Mac Addresses

I hope you enjoyed it and the post was helpful, if you think something important is missing, please add it in the comments.



Azure Remote Server Management Nano Server

Manage Nano Server and Windows Server from Azure using Remote Server Management Tools

Today Microsoft announced the preview of the Remote Server Management Tools hosted in Azure, written by Kriti Jindal, a program manager on the Server management tools team. This service allows you to manage your servers directly from Azure using a web-based HTML5 portal. I personally think that this could replace Server Manager and allows you to easily manage non-GUI servers such as Windows Server Core and Nano Server. This is the first public preview of the Remote Server Management Tools and it limited right now to manage Windows Server 2016 Technical Preview server, hosted on-prem or in Microsoft Azure. The Remote Server Management Tools today include the following features:

  • View and change system configuration
  • View performance across various resources and manage processes and services
  • Manage devices attached to the server
  • View event logs
  • View the list of installed roles and features
  • Use a PowerShell console to manage and automate

Overview

To remotely manage your Windows Server from Azure, you have to deploy a Remote Server Management Gateway into your network. This can be a Windows Server 2012 R2 Server running the WMF 5.0 (Windows Management Framework 5.0) or Windows Server 2016 with no additional preparation. You also need a Microsoft Azure subscription and an account.

Microsoft Azure Server Management Tools Topology

The gateway will handle the connection to Azure, so the Remote Server Management Gateway needs connection to the internet. The managed servers do not need a direct connection to the internet, the gateway will connect to the managed server. With that, the gateway need connection to the sever which will be managed by Azure.

Setup Server Management Tools

Well to set this up some steps are required, first create a new server for the Remote Server Management Gateway. In my case I installed a new Windows Server 2016 virtual machine. I made sure I could connect to the internet and it has the lastest updates installed.

Microsoft Azure Server Management Tools New Connection

After I created the virtual machine I logged in to the Azure portal and added a new Server Management Tools Connection. You can search “Server management tools” in Marketplace or navigate to it: Marketplace -> Management -> More -> Server management tools. This will also create the first Server Management Tools Gateway for your connection.

Microsoft Azure Server Management Tools Connection

After the connection is created you can see the connection and but you will get the information that the gateway is not ready. As the next step you will configure the gateway on the prepared server.

Microsoft Azure Server Management Tools Gateway

Under the Server Management Tools Gateway blade you can find a setup for the gateway which will generate a custom install package for your gateway. You can copy this link to the server and download this package and install it.

  1. Allow gateway updates to be installed automatically (recommended), or choose to install updates manually. You may change this later under gateway settings.
  2. Click the below to generate a customized gateway deployment package link.
  3. Use the generated link to download the gateway deployment package now, or copy the link URL to download the package later from the machine on which you intend to install the package.
  4. From the machine that you want to designate as the gateway, unzip the package and run GatewayService.MSI.
  5. Once the gateway installation completes, return to the Microsoft Azure portal and reopen your Server management tools connection.
  6. You should now be able to manage your Windows Server 2016 machine if the Microsoft Azure portal can reach it through the gateway.

Azure Remote Server Management Gateway Installer

After you have installed the Remote Server Management Gateway package on your gateway server you can see the connection in the Azure portal.

Azure Remote Server Management Nano Server

Now you start remote manage your server. As mentioned before, this is really handy if you want to manage Server Core or Nano Server.

Additional Stuff:

There are some additions for the configuration if you want to manage servers in a workgroup environment:

In order to manage workgroup machines (e.g. non-domain-joined Nano Servers), run this command as an administrator on the Server management tools gateway machine:

winrm set winrm/config/client @{ TrustedHosts=”<<IP address>>” }

When creating a Server management tools connection to the workgroup machine, use the machine’s IP address as the computer name.

Additional connectivity requirements

If you wish to connect using the local Administrator account, you will need to enable this policy on the target machine by running the following command in an administrator session on the target machine:

REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1

If you wish to connect to a workgroup machine which is not on the same subnet as the gateway, run the following command in an administrator session on the target machine:

NETSH advfirewall firewall add rule name=”WinRM 5985″ protocol=TCP dir=in localport=5985 action=allow

Remote Management Server Tools Features

Azure Remote Server Management PowerShell

As mentioned the Remote Management Server Tools bring some really cool web-based management features. One of my favorites is the web-based PowerShell console.

  • Device Manager
  • PowerShell Console
  • Computer Configuration (Name, Domain,…)
  • Network Configuration
  • Task Manager
  • Process
  • Registry Editor
  • Roles and Features
  • Services
  • Local Administrators
  • Updates Management (coming soon)
  • Shutdown / Restart

More Information