PowerShell commands can be used to create affinity and anti-affinity rules for VMs in a cluster. An affinity rule is one that establishes a relationship between two or more resource groups or roles, such as VMs, to keep them together in an Azure Stack HCI cluster. An anti-affinity rule does the opposite, keeping specified resource groups apart from each other.
You can use storage affinity rules to keep a VM and its associated Virtual Hard Disk v2 (VHDX) on a Cluster Shared Volume (CSV) on the same cluster node. This ensures CSV redirection does not occur and keeps application performance at optimal levels. For more information, see Storage affinity rules.
For several proof-of-concept test scenarios, see the white paper Adding Flexibility to DR Plans with Stretch Clustering for Azure Stack HCI.
The Hybrid Cloud Management chapter covers how we can manage and monitor the hybrid cloud infrastructure from a single pane of glass.