Server 2008

Changing the Network Location of a Windows 2012 R2 Server Network Connection

It’s sometimes necessary to manually change the network location configuration of a Windows 2012 R2 Servers network connection. There are two common approaches to this, either by Local Group Policy or PowerShell. In this post I will be stepping through how to implement either method.

Windows classifies networks connections into one of three profiles, each profile configures the server with different firewall settings.

  • Private: Used for computers on a private or home network. This allows you to see computers and devices, while making your computer discoverable.
  • Public: Used for computers on a pubic network such as a coffee shop or internet café. Designed to keep your computer from being visible to other computers around you and to help protect your computer from any malicious software from the Internet.
  • Domain: Used for computers that belong to enterprise network.

By default new network connections are configured with the public profile, however, if ADDS (Active Directory Domain Services) are found on the network, the profile automatically changes to domain.

Changing the Network Location by Local Group Policy

1. Run gpedit.msc to open the Local Group Policy Editor

2. Navigate to Computer Configuration / Windows Settings / Security Settings / Network List Manager Policies and double click the appropriate Network Name

3. From the popup window select the Network Location tab, then select the correct location type

CNL03
4. Click OK and close the Local Group Policy Editor

CNL04
5. Finally checking back in the Network and Sharing Center, the network profile should now display the options chosen in the previous steps.

CNL05

Changing the Network Location by PowerShell

As with most things on Server 2012 it is possible to use PowerShell to change the network category. We first need to list the network connections and make note of the InterfaceIndex associated with the network connection we are looking to reconfigure.

1. Open an elevated PowerShell prompt and run the following CmdLet

Get-NetConnectionProfile

CNL06
2. Make note of the InterfaceIndex for the network connection that requires its location changing. We can then use the following command to change the connections network location type

Set-NetConnectionProfile -InterfaceIndex <ID> -NetworkCategory <Category>

For Example:

Set-NetConnectionProfile -InterfaceIndex 12 -NetworkCategory Private

CNL07
3. To confirm changes have been made, rerun the Get-NetConnectionProfile CmdLet and review the NetworkCategory reflects the change.

CNL08

Backup Vault

Azure Backup: Installing Microsoft Azure Backup

As mentioned in my previous post here Microsoft have added the ability to backup additional workloads such as SQL, Exchange, Hyper-V and SharePoint to the cloud. Essentially this version of Microsoft Azure Backup is actually nothing more than a rebranded version of System Center Data Protection Manager with the backup to tape option replaced with the cloud and the ability to integrate with System Center removed. However, where no separate license is required, I believe this now opens the door to many new enterprises and I’m sure it will become a very favourable cloud backup solution.

In this post I will step through the process of configuring a Microsoft Azure Backup Vault, installing Microsoft Azure Backup and registering it with the previously created vault.

Apart from the extra application workloads, the main difference Azure Backup has to the Azure backup agent is the fact that as with DPM, it requires its own server to run on. This server can be configured as:

  • Physical or Virtual (on-premise or in the cloud)
  • Windows Server 2008 R2 SP1, 2012 and 2012 R2.

NOTE: The server must NOT have SCDPM or the SCDPM agent installed, nor should the Microsoft Azure Backup agent be installed and registered with an Azure Backup Vault.

Hardware Requirements

  • Processor: Minimum: 1 GHz, dual-core CPU, Recommended: 2.33 GHz, quad-core CPU
  • Memory: Minimum: 4GB, Recommended: 8GB
  • OS Disk: Minimum: 3GB, Recommended 3GB
  • Dedicated Data Storage Disk: Recommended storage pool size is 1.5 times the size of protected data
  • Disk space of at least 5% of the data backed-up to the cloud is required by the Microsoft Azure Backup agent for its scratch location. (By default this is on the OS drive but it can be moved to a dedicated disk)

Additional Prerequisites

  • Microsoft Azure Backup server should have internet connectivity
  • Microsoft Azure Backup server must be domain joined
  • Microsoft Azure Backup server must have .Net 3.5, .Net 4.0 and .Net 3.5 SP1 features installed
  • Microsoft Azure Backup server should have Windows Management Framework 4.0 installed.

Create a Microsoft Azure Backup Vault

Once a base server has been prepared, the next step is to preconfigure the Azure Backup Vault. The Microsoft Azure Backup Serer will be registered with the vault later.

To create an Azure Backup Vault, firstly browse to https://manage.windowsazure.com and sign in to the Azure Portal with your credentials.

Scroll down the left hand menu and click on the  Recovery Services tab.

ABS001
In the main window click on CREATE A NEW VAULT.

ABS002
Select Backup Vault > Quick Create before giving the backup vault a Name and Region and clicking the check to create the Backup Vault. The Region will be the location  in which the data is stored, choosing the correct location can help reduce network latency when backup up data to Azure.

ABS003
Once the Backup Vault has successfully been created it will appear in the list of recovery services resources as Active.

ABS004
Once items have been archived to the Backup Vault its not possible to change the replication type, so its at this point we need to decided how this should be configured.

  • Geo-Redundant Storage (GRS) maintains six copies of your date. Three times within the primary region and three times in a secondary region. In the event of a failure at the primary region, by sporting data in GRS, Azure Backup ensures that your data is durable. (One thing to note here is that the data in the secondary region can only be accessed by Microsoft during a failure to their systems)
  • Locally Redundant Storage (LRS) maintains three copies of your data. The data is replicated three times within a single facility in a single region. This would protect your data from normal hardware failures, but not form failure of an entire Azure facility.

By default a Backup Vault is configured with Geo-Redundant Storage, to change this click on CONFIGURE before changing the replication option and clicking SAVE to complete the change.

ABS005

Installing Microsoft Azure Backup Server

Before we can begin the install of Microsoft Azure Backup server we need to first download the installation software for Azure Backup and also the Backup Vault credentials which are needed for registering the server with the Backup Vault. Both downloads can be found on the Quick Start tab of the Backup Vault.

Microsoft Azure Backup can also be downloaded directly from here

ABS006
Microsoft Azure Backup comes split up into six separate files, five .bin files and  single .exe. Download them all to the same location and then run MicrosoftAzureBackupInstaller.exe, this will begin the setup wizard.

On the first screen click Next to continue.

ABS007
On the next screen choose a location for setup to extract its files or leave the default. When happy with the location, click Next.

ABS008
Click on Extract to begin extracting the install files.

ABS009
By default, Execute setup.exe is checked, leave this checked and click Finish if you wish to continue with the installation. Otherwise, uncheck the option and click Finish.

ABS010
On the Microsoft Azure Backup splash screen select to install Microsoft Azure Backup.

ABS011
On the Welcome page, click Next.

ABS012
On the next page click on the Check button to confirm the server meets software and hardware requirements. Resolve any issues that are raised before continuing by clicking the Next button.

ABS013
Choose whether to use a new or existing instance of SQL then click Check and Install to begin prerequisite checks and install any missing Windows components.

ABS014
As long as all prerequisites mentioned at the beginning of the post are installed, the only warning message that should be displayed is to warn the SISFilter has been installed and the server requires a reboot.

Reboot the server and then restart the installer.

ABS015
Once the server has been rebooted, click Check Again and once the computer meets all software and hardware requirements, click Next.

ABS016
The next step is to choose the file locations for the program files, database files and scratch folder, then click Next.

NOTE: As mentioned in the prerequisites, the scratch location must have free space of at least 5% of the data backed up to the cloud.

ABS017
Enter a strong password for the restricted local user accounts the wizard creates, then click Next.

ABS018
Choose whether or not to use Microsoft Update, then click Next.

ABS019
Review configuration and click Install to begin installation.

ABS020
The next stage of the installation installs the Microsoft Azure Recovery Service Agent. If the server connects to the internet by a proxy, this is where the proxy settings need to be added.

Click Next.

ABS022
By clicking Install, setup checks for all prerequisites, installs any that are missing and completes the installation of the Microsoft Azure Recovery Services Agent.

ABS023
Click Next.

ABS024
After the Microsoft Azure Recovery Services Agent has been installed, the next step is to register this server with the Microsoft Azure Backup Vault that was configured at the beginning of this process. To do this browse to the credentials file downloaded from the Backup Vault, then click Next.

ABS025
Enter a passphrase or click the Generate Passphrase button to automatically generate a passphrase. The passphrase requires the minimum of 16 characters. The passphrase should also be saved somewhere safe, if lost it will not be possible to recover data from the cloud or connect other Microsoft Backup Servers to the online replicas.

Click Next to continue.

ABS026
Once the connection has been created to the Azure Backup Vault, the installer continues with the installation of SQL Server, SQL Tools and Microsoft Azure Backup.

ABS027
Once installation has complete, click Close.

ABS028
At this point in the setup process, Microsoft Azure Backup has been installed and associated with the cloud storage in the selected Microsoft Azure Backup Vault. However, before its possible to configure the first protection group and begin backing up data, local storage needs to be added. To do this, double click on the Microsoft Azure Backup icon on the server desktop to open the application.

ABS029a
Click on Management.

ABS029
Click on Disks, then on Add.

ABS030
Select the disk that will be added to the storage pool, click Add then OK.

ABS031
If everything has gone correctly, the disk will appear in the list of disks available to the storage pool.

ABS032
Microsoft Azure Backup is now installed and configured with local and cloud storage. It is now ready to begin configuring protection groups and start to backup data.

That’s it for this post, in future articles I plan to cover more Azure Backup processes so don’t forget to check back!

Hyper-V

So whats NEW in Hyper-V vNext

After installing the Technical Preview of the next server OS, I was quite interested to see what new features Hyper-V came with. Obviously there are lots of new functionality in the new version and no doubt plenty more to come but here is a list of a few of the new features mentioned at TechEd.

The following list has been taken from TechNet and the TechEd slides available on Channel 9 link at the bottom of the post. 

Rolling Cluster Upgrade

You can now add a node running Windows Server Technical Preview to a Hyper-V Cluster with nodes running Windows Server 2012 R2. The cluster continues to function at a Windows Server 2012 R2 feature level until all of the nodes in the cluster have been upgraded and the cluster functional level has been upgraded.

  • No new hardware
  • No downtime
  • The ability to roll-back safely if needed

New VM Upgrade Process

When you move or import a virtual machine to a server running Hyper-V on Windows Server Technical Preview from Windows Server 2012 R2, the virtual machine’s configuration file is not automatically upgraded. This allows the virtual machine to be moved back to a server running Windows Server 2012 R2. You will not have access to new virtual machine features until you manually update the virtual machine configuration version.

Changing how we handle VM servicing

  • VM drivers (integration services) updated when needed
  • Require latest available VM drivers for that guest operating system
  • Drivers delivered directly to the guest operating system via Windows Update

Secure Boot Support for Linux

Linux operating systems running on generation 2 virtual machines can now boot with the secure boot option enabled.

Distributed Storage Qos

  • New architecture to improve reliability, scale and performance
  • You can now create storage QoS policies on a Scale-Out File Server and assign them to one or more virtual disks on Hyper-V virtual machines. Storage performance is automatically readjusted to meet policies as the storage load fluctuates.

Evolving Hyper-V Backup

  • Decoupling backing up virtual machines from backing up the underlying storage.
  • No longer dependent on hardware snapshots for core backup functionality, but still able to take advantage of hardware capabilities when they are present.Most Hyper-V backup solutions today implement kernel level file system filters in order to gain efficiency.
  • Built in change tracing for Backup
  • Makes it hard for backup partners to update to newer versions of Windows
  • Increases the complexity of Hyper-V deployments New virtual machine configuration file
  • Efficient change tracking for backup is now part of the platform

VM Configuration Changes

  • Binary format for efficient performance at scale
  • Resilient logging for changes
  • New file extensions
    • .VMCX and .VMRS

Replica Support for Hot Add of VHDX

  • When you add a new virtual hard disk to a virtual machine that is being replicated – it is automatically added to the not-replicated set. This can be updated online.

Runtime Memory Resize

  • Dynamic memory is great, but more can be done. For Windows Server Technical Preview guests, you can now increase and decrease the memory assigned to virtual machines while they are running.

Network Adapter Identification

  • You can name individual network adapters in the virtual machine settings – and see the same name inside the guest operating system.

Hyper-V Manager Improvements

Multiple improvements to make it easier to remotely manage and troubleshoot Hyper-V Servers:

  • Connecting via WinRM
  • Support for alternate credentials
  • Connecting via IP address
  • Able to manage Windows Server 2012, 2012 2 and Technical Preview from a single console.

Hot add / remove of network adapters

  • Network adapters can be added and removed from Generation 2 virtual machines while they are running.

Hypervisor power management improvements  

  • Updated hypervisor power management model to support new modes of power management.

Hyper-V Cluster Management

Providing a single view of an entire Hyper-V cluster through WMI

  •  “Just one big Hyper-V server”
  • Limited functionality at this point in time:
    • Enumerate virtual machines
    • Receive notification of live migration event
  • Root\HyperVCluster\v2

RemoteFX

  • Support for OpenGL 4.4 and OpenCL 1.1 API

https://channel9.msdn.com/Events/TechEd/Europe/2014/CDP-B246

https://technet.microsoft.com/en-us/library/dn765471.aspx

 

Clustering

Failover Cluster Nodes with Mixed Upper & Lower Case Names

Over the years I have come across clusters in all sorts of states. Many with nodes that have a mixture of none standardised names or letter case. In my mind, a naming standard for nodes should be decided on in advance, one that will allow for additional nodes to be added to the cluster at a later date.

The issue that I come across the most, is that of cluster node names that are a mixture of upper and lower case. This in itself wont stop the cluster functioning but it is a personnel bugbear of mine.

FCMNN01

Nodes can be add to a cluster in a mixture of case due to a number of reasons such as the case of the NETBIOS name and its not something you can ever be sure of when using the GUI.

One way you can be sure that the case will remain at what you specify, is to use the cluster.exe command to add the nodes to the cluster. The following shows one of the ways it can be used to import a new node into a cluster.

cluster.exe /cluster:clustername /add /node:NODENAMEINCASE

This command can be used on a 2008, 2008 R2, 2012 and 2012 R2 clusters, however if planning to use cluster.exe on a 2012 or 2012 R2 cluster, you will first need to enable the Failover Cluster Command Interface feature. To do this open the Add Roles and Features Wizard then browse to Features\Remote Server Administration Tools\ Failover Clustering Tools\ and select the Failover Cluster Command Interface feature.

FCMNN02

Once the feature has been enabled, its possible to go ahead and use cluster.exe to add the node into the cluster in the necessary case.

FCMNN03

Once the command has run successfully and the node has been added and validated against the cluster, things will look nice and standardised.

FCMNN04