How to use VMM Network Builder #scvmm #azure #cloud #winserv #NBT   Leave a comment

 

Anjay Ajodha and Matt McGlynn are Program Manager Interns on the System Center VMM team.

They spent their summer analyzing customer pain points regarding networking in VMM and have developed a small tool that should help ease the frustration with setting up VLAN-isolated networks in VMM. To help you get started quickly with networking in VMM and to simplify the process of creating new networks, we have created a UI add-in.

An entire basic networking setup can be created with this tool that can either be applied to hosts directly or used as a generic networking object base to be modified for customization to your configuration. VMM Network Builder compresses the steps required to build a logical switch. This tool will create networks that utilize VLAN isolation and is not purposed for creating NVGRE networking configurations.

and this is to bad the creation of a NVGRE network is often not easy.

Download the VMM Network Builder tool here : http://www.microsoft.com/en-my/download/details.aspx?id=43975

An quick installer Takes you to the next step. You need to import the Console or just run this from the installation folder.

 

image  

image

import add in console in the settings you can pick the import console add in.

image

Normally you would go to the installer folder but now the .Zip is on your desktop odd place ( I was looking in the installed folder )

image

image

After the import there is an extra Icon in the title bar “ build a network “

 

image

Starting the VMM Network Builder

image

image

I already have a management Network and the VMM Network Builder won’t create a second one.

image

I’ll pick my creative name VMMBAD VMM Builder Address Device

 

image

Create a IP pool and a if you want a static pool.

 

image

then make a choice, I’ll pick to a host.

image

I pick a host for this network.

image

And in VMM you can see this network as created, with the vlan and the IP subnets

image

A lot more options are in the tool. Play with the tools and maybe it is the right thing for you.

Download the VMM Network Builder tool here : http://www.microsoft.com/en-my/download/details.aspx?id=43975

image

 

System Center All Up: http://blogs.technet.com/b/systemcenter/

System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager

System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/

WSUS Support Team blog: http://blogs.technet.com/sus/

The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/

MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/

Create a New Network Load Balancing NLB Cluster On Windows Server 2012 R2 #Winserv #nlb   Leave a comment

Still I thought NLB is so common that there is no point here to create a blog. but recently I see a lot of misconfigurations of NLB or people trying to do the easy way and not listen to the guidelines. So this blog is all about NLB only in the private cloud you can’t extend this to Azure even if you have a S2S.

So I have two servers in my private cloud.  MVPNLB001 and MVPNLB002 Both Machines have two NIC’s one for LAN and the other is for the NLB actions.

and yes it can be with one but with two is it much easier and fault tolerant. Less errors and less administration.

Both domain joined and ready for Setup of my basic IIS.

First we setup IIS with the Management tools

image

Install-WindowsFeature -Name Web-Server Or Add-WindowsFeature Web-WebServer –IncludeAllSubFeature to get all the features

Install-WindowsFeature -Name Web-Mgmt-Tools
Add-WindowsFeature NET-Framework-45-ASPNET

Get-WindowsFeature nlb*

 

image

add-WindowsFeature –Name NLB

add-WindowsFeature RSAT-NLB

Now we are ready to configure the NLB. We can do this With powershell but the GUI also Works.  ( I show both )

image 

 

The First Step will be Create a New NLB Cluster. As I do like things clear and therefor I start with rename the NIC names

Rename-NetAdapter -Name "Ethernet 2" -NewName "NLB"

Rename-NetAdapter -Name "Ethernet" -NewName "LAN"

imageimage

Open the NLB Manager and select Cluster NEW

imageimageimageimageimage

Or use powershell

Rename-NetAdapter -Name "Ethernet 2" -NewName "NLB"

New-NetIPAddress -IPAddress 10.255.255.93 -InterfaceAlias "NLB" -AddressFamily IPv4 -PrefixLength 24

In this case we renamed the adapter and give the nic a static IP.

The next steps Will be creating the NLB with his own IP and Remove the default port rule and use only ports that I want say port 80

imageimageimage

Well that was easy Creating the NLB Next step will be delete the port rule and create a 80 port rule 

imageimage

We will remove the default line and just create a rule for one port that I need in this case port 80

Network Load Balancing parameters

http://technet.microsoft.com/en-us/library/cc778263(v=ws.10).aspx

 

 

These steps can be done in just a few more PowerShell lines ( I use variables see below the post for the complete script )

#Creating new cluster
Write-Host "Creating NLB Cluster…" -ForegroundColor yellow
New-NlbCluster -ClusterName $ClusterFqdn -InterfaceName $InterfaceName -ClusterPrimaryIP $ClusterPrimaryIP -SubnetMask $ClusterPrimaryIPSubnetMask -OperationMode $OperationMode

#Removing default port rule for the new cluster
Write-Host "Removing default port rule…" -ForegroundColor yellow
Get-NlbClusterPortRule -HostName . | Remove-NlbClusterPortRule -Force

image

But now what we have only One Server and we need to add the other node or nodes.

imageimage

With two more confirmations screens you are done and have a Configured NLB on One 1 IP listening on port 80

Suppose you have multiple websites and all running on different IP or hostnames just add a cluster IP

imageimageimage

Now that the NLB is created We can do some testing

Now to get this to work with IIS

image

That is right page not found. Check the DNS see if the record is created. and make sure the website IIS is running on this IP

Go to the IIS manager and check the website bindings, default it is listening on all IP but this is not the behavior that I want I want a NLB. So we need to set the website on the NLB IP configured earlier.  When Having multiple IP on the NLB pick the right IP!

imageimageimageimage

Remember this you need to do this on all the Webservers!

image

 

A complete script to automate all these steps and add a second node. only the IP is fixed in the script and can be set as variable but this is up to you.

use this at free will. I created small steps so you can use also little steps if you need this or just give you an Idea.

<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

#Set IP for NLB
Write-Host "Set NLB IP and change Network adapter" -ForegroundColor yellow
Rename-NetAdapter -Name "Ethernet 2" -NewName "NLB"
New-NetIPAddress -IPAddress 10.255.255.93 -InterfaceAlias "NLB" -AddressFamily IPv4 -PrefixLength 24

#Set ExecutionPolicy
Write-Host "Set ExecutionPolicy" -ForegroundColor yellow
Set-ExecutionPolicy -scope LocalMachine RemoteSigned –force

#Add-WindowsFeature
Write-Host "Add-WindowsFeature NLB" -ForegroundColor yellow
add-WindowsFeature NLB
add-WindowsFeature RSAT-NLB

#Variables for creating the new cluster
Write-Host "Variables for creating the new cluster" -ForegroundColor yellow
$ClusterFqdn = Read-Host "Enter NLB cluster Name FQDN"
$InterfaceName = Read-Host "Enter interface name for NLB-adapter"
$ClusterPrimaryIP = Read-Host "Enter cluster primary IP"
$ClusterPrimaryIPSubnetMask = Read-Host "Enter subnetmask for cluster primary IP"

Write-Host "Choose cluster operation mode"
Write-Host "1 – Unicast"
Write-Host "2 – Multicast"
Write-Host "3 – IGMP Multicast"
switch (Read-Host "Enter the number for your chosen operation mode")
{
1 {$OperationMode = "unicast"}
2 {$OperationMode = "multicastcast"}
3 {$OperationMode = "igmpmulticast"}
default {Write-Warning "Invalid option, choose ‘1’, ‘2’ or ‘3’";return}
}

#Creating new cluster
Write-Host "Creating NLB Cluster…" -ForegroundColor yellow
New-NlbCluster -ClusterName $ClusterFqdn -InterfaceName $InterfaceName -ClusterPrimaryIP $ClusterPrimaryIP -SubnetMask $ClusterPrimaryIPSubnetMask -OperationMode $OperationMode

#Removing default port rule for the new cluster
Write-Host "Removing default port rule…" -ForegroundColor yellow
Get-NlbClusterPortRule -HostName . | Remove-NlbClusterPortRule -Force

#Adding port rules

Add-NlbClusterPortRule -Protocol Tcp -Mode Multiple -Affinity Single -StartPort 80 -EndPort 80 -InterfaceName $InterfaceName | Out-Null
Write-Host "Added port rule for http (tcp 80)" -ForegroundColor yellow

Add-NlbClusterPortRule -Protocol Tcp -Mode Multiple -Affinity Single -StartPort 443 -EndPort 443 -InterfaceName $InterfaceName | Out-Null
Write-Host "Added port rule for https (tcp 443)" -ForegroundColor yellow

#Adding additional cluster nodes based on user input
Write-Host "Give Second NLB host" -ForegroundColor yellow
$Node2Fqdn = Read-Host "Enter 2e NLB node"

#Set Network Adapter
Enter-PSSession -ComputerName $Node2Fqdn
invoke-command -computername $Node2Fqdn -scriptblock { Rename-NetAdapter -Name "Ethernet 2" -NewName "NLB"}
invoke-command -computername $Node2Fqdn -scriptblock { New-NetIPAddress -IPAddress 10.255.255.92 -InterfaceAlias "NLB" -AddressFamily IPv4 -PrefixLength 24}
Write-Host "Placed NLB IP and changed NIC to NLB" -ForegroundColor yellow
exit-PSSession

#Add-WindowsFeature
Write-Host "Add-WindowsFeature NLB" -ForegroundColor yellow
Enter-PSSession -ComputerName $Node2Fqdn
invoke-command -computername $Node2Fqdn { add-WindowsFeature NLB}
invoke-command -computername $Node2Fqdn { add-WindowsFeature RSAT-NLB}
exit-pssession

#Add Remote Node To NLB
Write-Host "Adding cluster node $Node2Fqdn" -ForegroundColor yellow
Get-NlbCluster | Add-NlbClusterNode -NewNodeName $Node2Fqdn -NewNodeInterface NLB

 

Have fun

Robert Smit

Twitter : @clustermvpTwitter : @clustermvp

http://robertsmit.wordpress.com/

SQL Server 2014 Create a New #SQL Server Failover #Cluster (Setup) in 5 minutes Source Files   Leave a comment

When I started this blog post it was more a can I create a Fully cluster in 5 minutes and with 10 min extra a two node cluster and loaded with a two instance cluster. Well I could.

If I had better hardware SSD/fusionIO or other SMB 3.0 huge etc it would be much faster ( donations are Welcome  Winking smile ) Joking

I posted the vid on youtube and the blog and it seams it is not as common as I thought. no next next Finish Deployment.

As you already know deployments are time eating preparations.  But once you have it in place it rocks.

So I’ll place an update on the source files remember change the domain/user account server names

Old Source blog :

http://robertsmit.wordpress.com/2013/07/08/sql-server-2014-create-a-new-sql-server-failover-cluster-setup-in-5-minutes-sql2014-windows2012r2-wpc13/

Get the ini files here http://sdrv.ms/12dqaya  ( logon with your Microsoft Passport )

Watch this new video I made  http://youtu.be/UyqNY5JyE9k

 

In the source file there are image  Create SQL CSV Clustered instance and join other node to the instance.

 

image With the create cluster name IP , bind ISCSI etc and one Extra SQL install with out CSV also in 3 steps.

 

All the Files are there. just as an sample on how to do this.

http://1drv.ms/1jgOXzk

 

Have Fun!

@clusterMVP

http://robertsmit.wordpress.com

Posted July 10, 2014 by Robert Smit [MVP] in SQL, SQL 2012, SQL Server 2014

Tagged with

Microsoft Azure Hybrid deployment of RemoteApp Step by Step @Azure #Microsoft #RemoteApp #MVPBuzz #RDS #HRDAAS   Leave a comment

In this blog post I’ll show you how to create a Hybrid RemoteApp Configuration. It is still a Preview and Improvements  could be made.

If you want to run your own applications in Azure like on Citrix or with RDS till now it was not a build in services Microsoft provided.

But with RemoteApp you can easy deploy a default set as below or Create a Hybrid Environment. And there are lots of new options in a Hybrid RDS Azure Site #HRDAAS Hybrid Remote Desktop As a Service

image

The Quick Create is no fun just hit Create Smile

Now Creating a Hybrid Environment. You will need a syspreped Template with no unattend.xml in it. There For I created a fresh new template clean install with Remote Desktop Session Host installed and most important you need to set a registry key if you don’t do this all will fail!

This is not in the Microsoft Guide !

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"NtfsDisableEncryption"=dword:00000001

image

After everything is Set on the Golden Image we can do a Sysprep. And keep in mind Azure support only VHD files so do not use VHDX files.

C:\Windows\System32\sysprep\sysprep.exe /generalize /oobe /shutdown

now that my golden Image is ready We can upload this image to azure.  ( I used a 50 Gb VHD file ) So If you don’t have a fast Internet connection You need to wait Winking smile a while.

 

So the next step is Create a RemoteApp With VPN. Pick a name and select create.

image

A place holder is Created and We will upload the Golden Image To Azure. ( this could take a while so we do this now )

Select the image and pick image Upload

image A popup will Come and a PowerShell script is there for download

image

Save this on place. Grab also the Command To run

Upload-AzureRemoteAppTemplateImage.ps1 -SAS "?sr=b&si=623fcaf1-63f6-406d-a749-48c2c3f0036b&sig=n%2FHLp5d1wfEgdi68hA%2FaVWOwyhDl35S1eKQ9dKxZdQg%3D" -URI https://cdvwe114758920rdcm.blob.core.windows.net/goldimages/623fcaf1-63f6-406d-a749-48c2c3f0036b.vhd

image

Running this Script a Browser will open and you can select your Golden Image.  And the Upload will start first some checking

image I was happy with my Fiber internet connection.

Writing a blog and uploading Winking smile

image

when the upload in done you will see a check and a ready state on the Image.

imageimage

Next Step is creating a network Is this also my improvement point Whay not using my Site to Site VPN that already is connected to my environment.

Therefor we create a new network that will host the Machines.

Create New network and pick a name.

imageimage

Fill in the IP networks and use the Internet address of your Router ( Same as S2S VPN )

image  image image

When the Network is created we can download the S2S Script and run this on your Gateway server. I use a Windows 2012R2 RRAS server but there are other options. image

After running the script the Gateway has an extra dail-in option On this gateway I have already a few connections but this is all configurable to your needs.

 

image

Now that the network is ready We can start building. When opening the MYMVPAPP with VPN created in the beginning you will see the Status with check marks

Now I have to create a OU and a service account in my domain on-premise

imageimage

Next step is linking the Golden Image To the App. You can do all this is now with a upload but as we already did the we need only a connection this is a faster and fail save method.

So check the Link an existing Image

imageimageimage

You will see your 50Gb uploaded golden Image. This is only available if the Image is correctly uploaded !

image

We are almost ready, while the provisioning can take up to 30 minutes. Second Improvement point. Show Some Status step 1 from 10 maybe. Now we have to wait.

image  image

Please Note** during several test I change the name but the steps are the same

the next step is assign a user to the image , this must be a default Azure directory User.

 

image  image

I created a demouser ( I deleted this user after this blog )

We assign this user to the Remote App

image

Next we assign Applications of the Image I created earlier.  I did not install special apps in this image so it looks a bit basic.

imageimage

I published all the apps that Azure Scanned for me in my own image. but suppose you have installed office and other apps it will be there in the image.

Next step is login to the RDP session image

 

image The fun part is I configured MFA ( multi factor Authentication ) Really nice option

When Logged on We see all the Apps I made a Text change in de Word app

image

However I logged on the session is still inactive

image

This is still a Preview what I really like is using your own apps in your own domain there are still some issues with the creation of the RemoteApp but if you have configured all this and it is working you can even use this On a Android and or on your Surface how Cool is that.

I installed the latest version of RDP on my android phone I opened a CMD box on my phone totally useless but you can. It works much better on my Surface.

Running Published Apps on my Devices in Azure What will ne next ?

 imageimage

#HRDAAS Hybrid Remote Desktop As a Service

Posted June 20, 2014 by Robert Smit [MVP] in Microsoft Azure

Tagged with

Microsoft Azure File Server “System error64” or “New-AzureStorageShare Cannot bind parameter Context“ #azure #cloud #MVPBuzz   2 comments

Microsoft Azure launched a new Option in the Azure Suite a cloud File server. Sounds great how does it work and how to set this up.

First you need to create a new Storage Account

image

When this account is created you will see a new option in the Dashboard of this storage Account

image

The next steps will be in Powershell, there is no GUI option here Winking smile

Before you can connect to your Azure Files network share, we have to download a special powershell package for working with the Azure Files, the package can be found http://go.microsoft.com/fwlink/?LinkID=398183

image

After Downloading this file and extracted we can import the PSD1 file.

# import module and create a context for account and key
import-module "C:\AzureStorageFile\AzureStorageFile.psd1" –Verbose

image

Next We will create the new storage contex

image
$ctx=New-AzureStorageContext ‘rsmfile01′ ‘q+35EmhlLUikunngOWvZK8ysEqWpOLaobJNbS7bUtjTDZIRUI72siY956xHEVCS8ckFq5Vo188hmFfTY1XdPeQ==’

Use the Name and the Primary key.

Next step is creating a new Share and this can be tricky why ? well you may have the preview as enabled but it can be still not activated. if so you need to make a call to the Support team from Azure.

a simple check will do the trick Can you ping the DNS name ?

image

But if the result is this :

image

You can’t create a share and will se an error

New-AzureStorageShare : Cannot bind parameter ‘Context’. Cannot convert the "Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.AzureStorageContext" value of type
"Microsoft.WindowsAzure.Commands.Storage.Model.ResourceModel.AzureStorageContext" to type "Microsoft.WindowsAzure.Commands.Storage.File.Model.AzureStorageContext".
At line:2 char:48

image

 

But if your account is enabled and activated it will work

image

# create a new share
$s = New-AzureStorageShare ‘newshare1′ -Context $ctx
 
# create a directory in the test share just created
New-AzureStorageDirectory -Share $s -Path testdir

 

The next step is mounting the fileshare to a drive letter.

image

net use * \\rsmfile01.file.core.windows.net\newshare1 /u:rsmfile01 q+35EmhlLUikunngOWvZK8ysEqWpOLaobJNbS7bUtjTDZIRUI72siY956xHEVCS8ckFq5Vo188hmFfTY1XdPeQ==

image

But also here this will only work from a Azure VM and not from your home computer.

image

 

Again this is just a preview Just be sure to understand the limitations of Azure Files the most important are:

  • 5TB per share
  • Max file size 1TB
  • Up to 1000 IOPS (of size 8KB) per share
  • Up to 60MB/s per share of data transfer for large IOs
  • SMB 2.1 support only

But for most parts this is fine just another great @azure option !

Posted June 16, 2014 by Robert Smit [MVP] in Microsoft Azure

Tagged with

  • Now Reading

    Microsoft Windows Server vNext
  • Follow

    Get every new post delivered to your Inbox.

    Join 1,241 other followers

    %d bloggers like this: