Quick wins for a faster PC:
Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →Clear out junk files and repair common Windows errorsFree Scan →Affinity keeps selected Azure Stack HCI virtual machines (VMs) or resources together; anti-affinity keeps them apart. The correct rule depends on the failure or placement boundary you care about: a physical node, or a fault domain such as a site. Microsoft’s current documentation uses the name Azure Local and applies this guidance to Azure Local 2311.2 and later, so verify the version and topology of an older Azure Stack HCI deployment before applying it. The feature is configured with Windows Admin Center or PowerShell, not the Azure Arc control plane.
Affinity and anti-affinity: what the rules control
An affinity rule constrains cluster placement for selected cluster groups. A same rule tells the cluster to place resources together; a different rule tells it to separate them. Microsoft exposes four scopes:
| Rule type | Meaning | Typical use |
|---|---|---|
SameNode |
Keep groups on the same machine. | Co-locate tightly coupled VMs or a VM with its storage volume. |
DifferentNode |
Keep groups on different machines. | Separate replicas so one node failure does not remove both. |
SameFaultDomain |
Keep groups in the same fault domain or site, without requiring the same node. | Keep application tiers in one site while allowing node-level distribution. |
DifferentFaultDomain |
Keep groups in different fault domains or sites. | Distribute workloads across site-level failure boundaries. |
Windows Admin Center simplifies the node-level choices to Together (same machine) and Apart (different machines). PowerShell is required when you need fault-domain scope or more complex combinations. See Microsoft’s Azure Local VM affinity documentation for the supported feature scope.
Choose the placement boundary before creating a rule
Use node rules for machine-level behavior
Choose SameNode when the requirement is explicitly “these resources must run on one host.” Choose DifferentNode when two workloads should not consume the same host’s CPU, memory, or storage resources, or when they must survive a single-node failure independently.
#1 Best Overall
- COMPLETE M6 RACK SCREWS KIT:Includes 45 square rack cage nuts, 45 rack mounting screws and 45 black washers stored in a plastic storage box for easy organization and quick access
- DURABLE CARBON STEEL WITH BLACK NICKEL PLATING:Rack screws and cage nuts are built of carbon steel with black nickel coating to deliver excellent oxidation, rust, corrosion and wear resistance for long-term use in high and low temperature environments
- PRECISE SHARP THREADS FOR SAFE INSTALLATION:Server rack mounting hardware features deep sharp threads and smooth burr-free surface for secure, safe installation of rack and cabinet equipment
- UNIVERSAL COMPATIBILITY FOR SQUARE-HOLE RACKS:M6 x 16mm rack screws fit standard 10mm square-hole racks and cabinets; ideal for mounting servers, switches, routers and A/V equipment in data centers and workspaces
- TIGHT TOLERANCE MANUFACTURING:Conforms to metric standard with less than 0.01mm average error; compact thread structure ensures tight fit, uniform force distribution and resistance against deformation and slipping
Use fault-domain rules for site-level behavior
A fault-domain rule is broader than a host rule. For example, two VMs may need to remain in the same site for latency or data-locality reasons while still running on different machines. Conversely, DifferentFaultDomain is appropriate when the failure you are designing against is a site or other defined fault domain, not merely one server.
Do not substitute a node rule for a site requirement. A DifferentNode rule can still place both VMs in the same site; it does not provide site separation.
Where affinity and anti-affinity help
Separate resource-intensive workloads
Microsoft uses two resource-intensive SQL VMs as an anti-affinity example: placing them on different nodes prevents both from competing for the same host’s CPU, memory, and storage. The same principle applies to independent database replicas or other workloads with predictable peak demand.
Rank #2
- Pro Grade – Here is our new Black M6 Rack Screws and Cage Nuts Set [25 x Server Rack Screws, 25 x Cage Rack Nuts, 25 x Washers] used for mounting server racks, enclosures, cabinets, and more.
- Strong & Durable – Our Rack Cage Nuts & Relay Rack Screws for server rack have a high-grade carbon steel construction to prevent stripping. The M6 Cage Nuts and Bolts have also been coated in zinc chromate plating for resistance from corrosion.
- Wide application – Our rack screws & nuts are universally compatible with all square hole racks & cabinets. This makes the rack cage nuts and screws suitable for mounting all server rack hardware, including rack server cabinets, server shelves, A/V device enclosures, and other server mounting procedures.
- Easy to install – Our server rack screws and clip nuts have a Phillip’s truss-head with self-guiding pilot points to allow you to install in no time. The rackmount screws and nuts thread are extra sharp, clean & accurate, offering a smooth & satisfying installation process.
- Essential Bundle – Our Cage nuts & screws m6 set includes all the essential parts for mounting your server equipment. Pack not only includes screws & cage nuts; we have also thrown in additional heavy-duty washers to reduce any marks or scratches when installed. We truly believe our server rack nuts and bolts set is the best in the marketplace and we stand by that. If our cage nut set starts driving you nuts, we’ll FULLY REFUND YOU. So, click “Add to Cart” now and buy with confidence.
Protect redundant infrastructure
Domain controllers and other control-plane services should not all land on one machine or site. Microsoft’s Well-Architected guidance recommends at least two instances of each critical workload tier and states: “On standard clusters, use VM anti-affinity rules where supported.” Read that recommendation in its topology context at the Azure Local Well-Architected service guide.
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteKeep cooperating tiers in one site
A web VM and SQL VM might need to remain in the same site for application latency, but not on the same host. That design calls for SameFaultDomain, not SameNode. If the requirement is instead to place both tiers on one machine, use a node-level together rule and accept the resulting host-failure coupling.
Associate a VM with its Cluster Shared Volume
Azure Local can associate a VM and its VHDX with a Cluster Shared Volume (CSV) using a SameNode rule. Microsoft describes this as a way to avoid CSV redirection, which can slow VM start or stop operations. It is a topology-dependent option, not a universal performance guarantee; validate that the storage layout and failover design justify it.
Rank #3
- 【Wide Application】 XOOL M6 Rack Mount Screw Kit is great for mounting your rack server cabinets, server shelves, A/V device enclosures, and more. These M6 cage nuts and screws are universally compatible with all square-hole racks and cabinets. Easily mount your equipment using this convenient kit, which comes with everything you'll need to get the job done. These self-locking cable ties are perfect for computer, appliance and electronic cord organization, wire management and storage.
- 【Superb Quality】 The cage nuts and screws is made of high quality Carbon Steel. The Carbon Steel material features strength and offers good corrosion resistance in bad environment like high temperature, cold weather, and high humidity areas. They have superior rust resistance and the excellent of oxidation resistance, which can ensure long time using and prolong screws and nuts lifespan. Wear resistant feature make the cage nuts and screws more durable and solid.
- 【Standard Metric】 Our M6 screws and cage nuts accord with standardized metric system. And the average error is less than 0.01mm. The screw thread is very sharp, clean and accurate without burr. The compact and force uniform screw thread is not easy to out of shape and slid in the process of rolling and installation. The deep and clear flat cross head can make your working more easily and improve your work efficiency.
- 【Safety and Eco-Friendly】 XOOL M6 screws and cage nuts use high quality Carbon Steel raw material, which is environmental protection and non-poisonous. In the process of using, there are no toxic substances releasing, which will ensure your safety. After heat treating, carbon steel has good mechanical properties of ductility, hardness, yield strength, or impact resistance.
- 【Thoughtful Design】 We add self-locking Nylon cable ties on our package. The CABLE TIES is good for home, office, garage, workshop and more. And the screw is very easy to insert with hand.
Create basic rules in Windows Admin Center
- Select the Azure Local machine or system in Windows Admin Center.
- Open Settings > Affinity rules.
- Choose Create and give the rule a descriptive name.
- Select Together (same machine) or Apart (different machines).
- Select the VMs covered by the rule.
- Create the rule, then review the resulting placement configuration and test a planned move or restart during a maintenance window.
This workflow covers the basic same-node and different-node cases. It does not expose every PowerShell rule type or complex relationship.
Use PowerShell for specific scopes and complex configurations
Run the commands from an approved management computer and retain the cluster context required by your environment. The principal cmdlets in Microsoft’s procedure are:
New-ClusterAffinityRule— creates a named rule and its type, such asSameNode,DifferentNode,SameFaultDomain, orDifferentFaultDomain.Add-ClusterGroupToAffinityRule— adds a VM cluster group or another supported cluster group to the rule.Set-ClusterAffinityRule— changes rule properties, including enabling the rule.Get-ClusterAffinityRule— inspects existing rules and their configuration.
A typical sequence is to create the named rule, add each intended VM group (and, for storage affinity, the CSV), enable the rule, and then inspect it with Get-ClusterAffinityRule. Use the exact parameter set documented for your Azure Local release in Microsoft’s PowerShell procedure; do not paste a node-level example into a fault-domain design without changing the rule type and validating the cluster’s fault-domain definitions.
Rank #4
- 【UNIVERSAL 19-INCH RACK COMPATIBILITY】No more ill-fitting hardware! Our M6 x 16mm fasteners fit all standard 19-inch SERVER RACKS, network cabinets and data centers—seamless lock-in, zero size guesswork, no return risks for mismatched parts. Perfect for your rack mount setup
- 【DURABLE BLACK ZINC-PLATED BUILD】Fight mild rust and stripping! Our RACK MOUNT HARDWARE features thick BLACK ZINC PLATING on carbon steel—resists wear, bending and indoor/semi-outdoor corrosion for 2+ years. Sturdier than generic flimsy fasteners
- 【50-PACK ALL-IN-ONE CAGE NUTS KIT】No mid-install part runs! Our complete 50-pack of CAGE NUTS includes matching M6 screws, washers + FREE self-locking cable ties—exact parts for rack/cabinet builds, no extra hardware store trips
- 【TOOL-FREE SNAP-ON EASY INSTALL】Skip complex tools and slow builds! Our RACK MOUNT SCREWS pair with snap-on cage nuts (hand-installed)—twist in with a basic Phillips driver, no stripping. Finish your rack setup in 10-15 mins, even for first-timers
- 【MULTI-USE RACK ACCESSORY HARDWARE】Max out your setup versatility! This hardware works for all NETWORK AND SERVER RACK ACCESSORIES—small business racks, office cabinets, home labs, audio racks. Washers prevent scratches, cable ties tidy wiring
Example: VM-to-CSV storage affinity
- Create a
SameNodeaffinity rule. - Add the VM’s cluster group to the rule.
- Add the target CSV to the same rule.
- Enable the rule and inspect it with
Get-ClusterAffinityRule. - Perform a controlled VM start, stop, and live-migration test to confirm that the placement matches the storage design.
The rule can reduce reliance on CSV redirection in an appropriate configuration. It does not replace capacity planning, CSV resiliency, or testing of failover behavior.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Management limits you should plan for
Microsoft says the recommended way to create and manage Azure Local VMs is the Azure Arc control plane, but the affinity functionality described here is not yet provided there. Use Windows Admin Center or PowerShell instead. Microsoft’s supported-operations matrix likewise lists affinity and anti-affinity among operations supported only through local tools.
VMs created through this local-tool path have limited Arc-plane manageability and fewer Azure Hybrid Benefits than VMs managed through the supported Arc workflow. Account for that operational boundary before standardizing the design or delegating administration.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Best Value
- Accurate & Durable Design:Our M6 screws and cage nuts are manufactured to strict metric standards with an average tolerance of less than 0.01 mm for accurate fit and reliable performance. The threads are sharp, clean, and burr-free, ensuring smooth installation. The compact, evenly distributed thread design resists deformation and slipping during fastening. A deep, well-defined Phillips head allows for easier operation and improved work efficiency.
- Heavy-Duty & Long-Lasting:Constructed from premium carbon steel with a protective black nickel coating to resist rust and oxidation. Designed to withstand high temperatures, cold weather, and other harsh conditions for reliable, long-term performance.
- Clean & Professional Look:Finished in sleek black nickel to match most rack systems, delivering a clean, organized, and professional appearance inside your cabinet.
- Wide Application:Perfect for server cabinets, rack shelves, and A/V enclosures. Compatible with all standard square-hole racks, this M6 cage nut and screw kit provides secure installation hardware along with durable self-locking cable ties for clean and organized wire management.
- 50-Pack Complete Set – Comes with 50 cage nuts, 50 mounting screws, and 50 black washers. Packaged in a sturdy small box to keep everything organized and easy to store.
Rack-aware clusters require a separate decision
Do not assume that ordinary affinity instructions are validated for rack-aware deployments. Microsoft’s rack-aware requirements page warns that applying VM affinity rules through Windows Admin Center or PowerShell can produce unknown behavior. Its Well-Architected guidance discusses separate availability-zone placement and cautions against affinity rules in the rack-aware context.
For a rack-aware cluster, first follow the topology-specific requirements at Microsoft’s rack-aware cluster documentation. Treat any generic node or fault-domain rule as unvalidated until Microsoft documents support for that exact topology and release.
Quick Recap
Design and troubleshooting checklist
- Name the failure boundary: host, site, rack, or another defined fault domain.
- Choose direction: together for co-location, apart for isolation.
- Check capacity: a together rule can make one node a placement bottleneck; an apart rule requires enough eligible nodes.
- Check redundancy: pair anti-affinity with at least two instances of each critical tier where the workload supports it.
- Check interactions: review existing cluster placement, storage, and maintenance policies before adding another constraint.
- Verify the result: inspect the rule, then test planned movement and a failure scenario appropriate to the design.
- Check topology support: stop and obtain release-specific guidance for rack-aware clusters.
- Document the management path: local tools are required for this feature, even when the broader VM lifecycle uses Azure Arc.
Affinity versus anti-affinity at a glance
| Decision | Use | Main benefit | Main trade-off |
|---|---|---|---|
| Together on the same node | SameNode |
Co-location and potentially simpler data locality. | One host failure or capacity limit affects all selected groups. |
| Apart on different nodes | DifferentNode |
Host-level isolation and better resilience to a single-node failure. | Requires sufficient nodes and can complicate placement during maintenance. |
| Together in one fault domain | SameFaultDomain |
Keeps workloads within a site while allowing host distribution. | Does not protect against failure of that site or domain. |
| Apart across fault domains | DifferentFaultDomain |
Separates workloads across a site-level boundary. | Requires correctly defined fault domains and suitable cross-site capacity. |
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




