Using NetQoSDSC #PSDSC Resource Module to Configure Network QoS

As a part of larger hyper-converged infrastructure (based on S2D) configuration automation using PowerShell DSC, I have written quite a few new DSC resource modules. FailoverClusterDSC was one of the modules in that list. I added NetQoSDSC as well to ensure I have the automated means to configure the QoS policies in Windows Server 2016.

This module contains five resources at the moment.

Resource Name Description
NetAdapterQoS Enable/disable network adapter QoS.
NetQosDCBXSetting Enable/disable DCBX willing state in the OS. This can be done at the global scope or for a specific interface.
NetQoSFlowControl Enable or disable 802.1P action priorities.
NetQoSPoicy Create and configure QoS policies.
NetQoSTrafficClass Create and manage QoS traffic classes.

Enable/Disable Network Adapter QoS

The NetAdapterQoS resource can be used to enable/disable QoS a specific network adapter.

Enable/Disable DCBX Willing mode

DCBX willing mode can be enabled or disabled using the NetQoSDCBXSetting resource. This can be done at an interface level or at the global level in the operating system.

Enable/Disable Network QoS flow control priorities

The NetQosFlowControl resource can be used to enable or disable 802.1P flow control priorities.

Create new QoS policies

New network QoS policies can be created using the NetQoSPolicy resource.

Manage Network QoS Traffic classes

The NetQoSTrafficClass resource can be used to manage the traffic classes in network QoS.

This module, while code complete, needs some more work to declare as fully HQRM-compliant. I am working towards that by adding tests and better examples. Feel free to submit your issues, feedback, or PRs.

About the author: Ravikanth C

Ravikanth is the founder and editor of the PowerShell Magazine. He is also a PowerShell MVP who works at Dell Inc. He blogs at http://www.ravichaganti.com/blog and you can follow him on Twitter @ravikanth.

Related Posts

%d bloggers like this: