Import of RD Gateway configuration file with policies referencing local resources wipes all policies clean!

Introduction

When you have Windows Server 2016 RD Gateway server and you expect to be able to import a configuration XML file you’ll might find yourself in a pickle when you are also using local resources. Because the import of RD Gateway configuration file with policies referencing local resources wipes all policies clean! With local resources I mean local user accounts and groups. These are leveraged more than I imagined at first.

When does it happen?

In the past I have blogged about migrating RD Gateway servers that contain policies referencing local resources here: Fixing Event ID 2002 “The policy and configuration settings could not be imported to the RD Gateway server “%1” because they are associated with local computer groups on another RD Gateway server”.

We used to be able to use the trick of making sure the local resources exist on the new server (either by recreating them there via the server migration wizard or manually) and changing the server name in the exported configuration XML file  to successfully import the configuration. That no longer works. You get an error.Import of RD Gateway configuration file with policies referencing local resources wipes all policies clean!

As far as migrations go from older versions, they work fins as long as you don’t have policies with local resources. Otherwise you’d better do an in place upgrade or recreate the resources & policies on the new servers. The method described in my blog is not working any more. That’s to bad. But it gets worse.

Import of RD Gateway configuration file with policies referencing local resources wipes all policies clean!

As said,it doesn’t end there. The issue is there even when you try to import the configuration on to the same server you exported it from.That’s really bad as it a quick way to protect against any mistakes you might make, and allows to get back to the original configuration.

What’s even worse, when the import fails it wipes ALL the policies in the RD Gateway Server => dangerous! So yes, the import of RD Gateway configuration file with policies referencing local resources wipes all policies clean!

Precautions

Only a backup or a checkpoint can save your then (or recreate the all manually)! Again this is only when the exported configuration file references local resources! The fasted way to clean out an RD Gateway configuration on Windows Server 2016 is actually importing a configuration export which contains a policy referring to local resource. Ouch! I’m not aware of a fix up to this date.

For now you only protection is a checkpoint or a backup. Depending on where and how you source your virtual machines you might not have access to a checkpoint.

You have been warned, be careful.

How tech debt happens

Introduction

While I plan our actions to improve or add new functionality I always refer back to my “map” on where we are, where we need to go. It helps me see the terrain, the problems, challenges, obstacles, opportunities, possibilities in the grand scheme of what I call in big words my strategy & doctrine. Sometimes it’s big in time, complexity or budget and sometimes it’s a small target of opportunity that has both immediate & long term benefits. On of those targets of opportunity is to make sure that every upgrade/migration of Hyper-V workloads lands on a generation 2 virtual machines running on Windows Server  2016 Hyper-V. Seemingly unimportant, yet … when you understand how tech debt happens you’ll see it does make a difference when done with a plan.

How tech debt happens

I have witnessed tens of millions wasted over the years by organizations that fell into every tech debt trap there is. Never forget that it’s not just bad because of failed goals and added costs but also due to being stuck and missing out on opportunities. It’s astonishing to see how bad it can become. Even at organizations that like to act and profile themselves at being modern, agile and in full digital transformation mode. Look, buzz words & glossy brochure like pictures on an “infomercial” website don’t make you the real deal. Yet while I spend many words on illustrating how tech debt happens, it’s easy to sum up.

How tech debt happens

Technical debt exists because people don’t realize what it is, how it materializes and how badly it effects the organization. And for the record, not every legacy is debt just like not all redundancy is bad.

Avoiding Tech Debt

So how do you avoid getting tech debt? Well by understanding you get  into it and doing something about it! The lack of process or understanding (even worse, I rather have no process but with understanding) to the real nature, causes and effects of technical debt. This leads to decisions void of any consideration of the implications. There’s a ton of individual reasons all across the board that will create tech debt.

Business pressure

One of them is “business” pressure, the need to be seen as in charge and get things done. This “can do” attitude is a killer of improvement and competence. It leads to an environment where what sucks can’t be pin pointed because people focus on showing how good they are instead of finding and fixing what’s broken. They have to or they cant constantly answer “Can do” to every request. In short a 100% can do culture will make you fail.

The results are many. let’s look at some of them. Having ITIL and a change board that is so ridiculously heavy in overhead because it’s the blind leading the blind and serves only to have the checkbox ticked. After some time the process is simplified and automated (send in docs that no one reads but it does lead to an approval e-mail) and over a longer period of time it’s ignored. This leads to a constant barrage of last minute specification changes without a clue as to their impact.

Scope creep & scope dumping

Scope creep: non-managed changes or perhaps better worded and more realistically, changes by people with no technical clue but a lot of pressure and a desire to please other people of server other needs. There’s also the opposite, scope dumping: Ill considered scope reduction by people who need to make deadlines or avoid complexity they don’t want to deal with, often under business pressure.

Integration is still important

Lack of integration is another. Yes we all know we need to reduce plumbing in IT but the reality is that good, necessary plumbing avoids a truck load of problems. If you want to avoid spending too much time keeping the lights on you’ll need to do good plumbing to avoid flooding.

Handing over the key to the kingdom

Relying too much on consulting, external advisors. Always ask your self who they work for and why. Follow the money. The money will lead you to the one paying and than you’ll find out their politics, plans and ambitions. If these are not yours, alarm bells should
Disdain for learning, testing, hands on work. Knowledge comes from understanding and that requires doing. Doing with understanding grows skills, insight an knowledge to be effective when needed. If I want to destroy a company I send in consultants and I make sure they hire the wrong employees. It’s a long term play against my enemies where they fall for the perceived short term benefits for them. When I see a CEO that makes tens of millions and year after year you see the company do down the drain you just know they are not worth the money and their presence makes no difference what so ever. You could have gotten those results way cheaper.

The right stuff

Lack of any real functional documentation and insights is also an issue. You need to have the elements to find out how things are done quickly. That doesn’t mean 100% perfect descriptions to the smalls detail. That’s just windows dressing. Quality trumps quantity. This goes for anything, processes, documentation and people. Beckwith was right when he said “I’d rather go down the river with 7 man than with a 100 shitheads”

Incompetence floats to the top

The lack of a good command & control structure due to not having competent management is also problematic along with a lack of skills, talent & knowledge. Yup, too many Peter principle people looking out for number one will catalyze all bad things. Put the right people in the right place. Hard to do when you think you can but actually can’t … or when power play and politics are way more important than effective results. This leads to lack of collaboration in an environment where everybody survives in isolation instead of thriving  by working together. The results are a lack of maintenance, updates, migrations, rebuilds to improve current and support future needs.

Own the problems

Which brings us to the lack of ownership. Here you’ll often see that a PO or PM only is responsible on paper and doesn’t have a clue about the service. They don’t care about it, let alone about the effects on some other business unit. The deficiency in business and technological leadership, leads to avoiding responsibility. Problems are just thrown over the wall and any issues that appear are just assigned to the “incompetence” of the staff.

Conclusion

Tech Debt has many reasons and that’s why it’s hard to avoid and fix. But it can be done. But you cannot buy your way out or outsource solving the problem.

vNIC Speed in guests on Windows Server 2016 Hyper-V

Prior to Windows Server 2016 Hyper-V the speed a vNIC reported was an arbitrary fixed value. In Windows 2012 R2 Hyper-V that was 10Gbps.

This is a screen shot of a Windows Server 2012 R2 VM attached to a vSwitch on an LBFO of 2*1Gbps running on Windows Server 2012 R2 Hyper-V.

image

This is a screen shot of a Windows Server 2016 VM attached to a vSwitch on an LBFO of 2*10Gbp running on Windows Server 2012 R2 Hyper-V.

image

As you can see the fixed speed of 10Gbps meant that even when the switch was attached to a LBFO with 2 1Gbps NIC it would show 10Gbps etc. Obviously that would not happen unless the 2 VMs are on the same host and the limitations of the NIC don’t come into play as these are bypassed.Do note that the version of Windows in the guest doesn’t matter here as demonstrated above.

The reported speed behavior has changed in Windows Server 2016 Hyper-V. You’ll get a more realistic view of the network capabilities of the VM in some scenarios and configurations.

Here’s a screenshot of a VM attached to a vSwitch on a 1Gbps NIC.

image

As you can see it reports the speed the vSwitch can achieve, 1Gbps. Now let’s look at a VM who’s vNIC is attached to a LFBO of two 10Gbps NICs.

image

This NIC reports 20Gbps inside of the VM, so that’s 2 * 10Gbps.

You get the idea. the vNIC reports the aggregated maximum bandwidth of the NICs used for the  vSwitch. If we had four 10Gbps NICs in the LBFO used for the vSwitch we could see 40Gbps.

You do have to realize some things:

  • Whether a VM has access to the the entire aggregated bandwidth depends on the model of the aggregation. Just consider Switch independent teaming versus LACP teaming modes.
  • The reported bandwidth has no knowledge of any type of QoS. Not hardware based, or virtual via Hyper-V itself.
  • The bandwidth also depends on the capabilities of the other components involved (CPU, PCIe, VMQ, uplink speed, potentially disk speed etc.)
  • Traffic within a host bypasses the physical NIC and as such isn’t constraint  by the NIC capabilities it self.
  • As before the BIOS power configuration has an impact on the speed of your 10Gbps or higher NICs.

Happy New Year & Microsoft MVP 2017 Renewal

Happy new year to all of you. May you and your loved ones enjoy good health, happiness, prosperity and interesting work and studies in 2017.

image

 

While I enjoy the time off around new year and appreciate the comfort of a soap stone wood stove on a cold winter evening I also enjoy IT work.Luckily, as I cannot retire yet to enjoy road trips for sightseeing and hiking for the remainder of my time on this planet.

Designing, building, deploying, supporting & troubleshooting high available on premises, hybrid and cloud infrastructure is what I love to do. Today that means ever more a software defines approach. That doesn’t mean you have to work at Amazon, Google or Microsoft. That means you have to investigate how PowerShell, DSC, JSON & Azure Automation can help you achieve your goals. That also doesn’t mean you don’t have understand clustering, networking, storage or virtualization anymore yet. Trust me on that.

This afternoon I also received my renewal e-mail as a Microsoft MVP in the Cloud and Datacenter Management expertise. This is my sixth award and I’m as happy, honored and proud to be one as ever.

MVP_Logo_Horizontal_Preferred_Cyan300_CMYK_300ppi

2017 will be filled with many Windows Server 2016 projects on top of our already strong start in 2016 after it became generally available. These projects will be tied to some new cloud efforts in Azure, efforts that surpass IAAS alone.

The IT world evolves and moves fast but technology doesn’t disappear over night. Keeping things tied together, moving forward to the new, leveraging new capabilities, enabling new opportunities and staying up to date takes a serious effort. Sharing what we learn with the global community is what the MVP program recognizes and stimulates. We all learn together and advance by sharing experiences and knowledge. We also help each other out and this year I’ve seen and participated in a number of cases where community members and fellow MVPs came together when needed to solve some serious problems.