So far, you've deployed your Azure VM, that has all the relevant roles and features enabled, including Hyper-V, AD Domain Services, DNS and DHCP. The VM deployment also orchestrated the download of all required binaries, as well as creating and deploying 2 Azure Stack HCI 21H2 nodes, which you'll be configuring in this step.
- Overview
- Contents
- Architecture
- Before you begin
- Allow popups in Edge browser
- Creating a (local) cluster
- Configuring the cluster witness
- Next Steps
- Product improvements
- Raising issues
As shown on the architecture graphic below, in this step, you'll take the nodes that were previously deployed, and be clustering them into an Azure Stack HCI 21H2 cluster. You'll be focused on creating a cluster in a single site.
With Windows Admin Center, you now have the ability to construct Azure Stack HCI 21H2 clusters from the vanilla nodes. There are no additional extensions to install, the workflow is built in and ready to go, however, it's worth checking to ensure that your Cluster Creation extension is fully up to date and making a few changes to the Edge browser.
To streamline things later, we'll set Microsoft Edge as the default browser over Internet Explorer.
- Inside your AzSHCIHost001 VM, click on Start, then type "default browser" (without quotes) and then under Best match, select Choose a default web browser
- In the Default apps settings view, under Web browser, click on Internet Explorer
- In the Choose an app popup, select Microsoft Edge then close the Settings window
To give the optimal experience with Windows Admin Center, you should enable Microsoft Edge to allow popups for Windows Admin Center.
- Still inside your AzSHCIHost001 VM, double-click the Microsoft Edge icon on your desktop
- Navigate to edge://settings/content/popups
- Click the slider button to disable pop-up blocking
- Close the settings tab.
Your Azure VM deployment automatically installed the latest version of Windows Admin Center, however there are some additional configuration steps that must be performed before you can use it to deploy Azure Stack HCI.
- Double-click the Windows Admin Center shortcut on the desktop.
- Once Windows Admin Center is open, you may receive notifications in the top-right corner, indicating that some extensions are updating automatically. Let these finish updating before proceeding. Windows Admin Center may refresh automatically during this process.
- Once complete, navigate to Settings, then Extensions
- Click on Installed extensions and you should see Cluster Creation listed as installed
NOTE - Ensure that your Cluster Creation extension is the latest available version. If the Status is Installed, you have the latest version. If the Status shows Update available (1.#.#), ensure you apply this update and refresh before proceeding.
You're now ready to begin deployment of your Azure Stack HCI cluster with Windows Admin Center. Here are the major steps in the Create Cluster wizard in Windows Admin Center:
- Get Started - ensures that each server meets the prerequisites for and features needed for cluster join
- Networking - assigns and configures network adapters and creates the virtual switches for each server
- Clustering - validates the cluster is set up correctly. For stretched clusters, also sets up up the two sites
- Storage - Configures Storage Spaces Direct
Not only does Azure Stack HCI 21H2 support a cluster in a single site (or a local cluster as we'll refer to it going forward) consisting of between 2 and 16 nodes, but, also supports a Stretch Cluster, where a single cluster can have nodes distrubuted across two sites.
- If you have 2 Azure Stack HCI 21H2 nodes, you will be able to create a local cluster
- If you have 4 Azure Stack HCI 21H2 nodes, you will have a choice of creating either a local cluster or a stretch cluster
In this workshop, we'll be focusing on deploying a local cluster but if you're interested in deploying a stretch cluster, you can check out the official docs
This section will walk through the key steps for you to set up the Azure Stack HCI 21H2 cluster with the Windows Admin Center
- Connect to your AzSHCIHost001, and open Windows Admin Center using the shortcut on your desktop.
- Once logged into Windows Admin Center, under All connections, click Add
- On the Add or create resources popup, under Server clusters, click Create new to open the Cluster Creation wizard
- Ensure you select Azure Stack HCI, select All servers in one site and cick Create
- On the Check the prerequisites page, review the requirements and click Next
- On the Add Servers page, supply a username, which should be azshci\azureuser and password-you-used-at-VM-deployment-time and then one by one, enter the node names of your Azure Stack HCI 21H2 nodes (AZSHCINODE01 and AZSHCINODE02), clicking Add after each one has been located. Each node will be validated, and given a Ready status when fully validated. This may take a few moments - once you've added all nodes, click Next
- On the Join a domain page, details should already be in place, as these nodes have already been joined to the domain to save time. If this wasn't the case, WAC would be able to configure this for you. Click Next
- On the Install features page, Windows Admin Center will query the nodes for currently installed features, and will typically request you install required features. In this case, all features have been previously installed to save time, as this would take a few moments. Once reviewed, click Next
- On the Install updates page, Windows Admin Center will query the nodes for available updates, and will request you install any that are required. For the purpose of this guide and to save time, we'll ignore this and click Next
- On the Install hardware updates page, in a nested environment this doesn't apply, so click Next
- On the Restart servers page, if required, click Restart servers, otherwise, click Next: Networking
With the servers configured with the appropriate features, updated and rebooted, you're ready to configure your network. You have a number of different choices here, so we'll try to explain why we're making each selection, so you can better apply it to your environment further down the road.
Firstly, Windows Admin Center will verify your networking setup - it'll tell you how many NICs are in each node, along with relevant hardware information, MAC address and status information. Review for accuracy, and then click Next
The first key step with setting up the networking with Windows Admin Center, is to choose a management NIC that will be dedicated for management use. You can choose either a single NIC, or two NICs for redundancy. This step specifically designates 1 or 2 adapters that will be used by the Windows Admin Center to orchestrate the cluster creation flow. It's mandatory to select at least one of the adapters for management, and in a physical deployment, the 1GbE NICs are usually good candidates for this.
As it stands, this is the way that the Windows Admin Center approaches the network configuration, however, if you were not using the Windows Admin Center, through PowerShell, there are a number of different ways to configure the network to meet your needs. We will work through the Windows Admin Center approach in this guide.
Each of your Azure Stack HCI 21H2 nodes should have 4 NICs. For this simple evaluation, you'll dedicate the NICs in the following way:
- 1 NIC will be dedicated to management. This NIC will reside on the 192.168.0.0/16 subnet. No virtual switch will be attached to this NIC.
- 1 NIC will be dedicated to VM traffic. A virtual switch will be attached to this NIC and the Azure Stack HCI 21H2 host will no longer use this NIC for it's own traffic.
- 2 NICs will be dedicated to storage traffic. They will reside on 2 separate subnets, 10.10.11.0/24 and 10.10.12.0/24. No virtual switches will be attached to these NICs.
Again, this is just one example network configuration for the simple purpose of evaluation.
- Back in the Windows Admin Center, on the Select the adapters to use for management page, ensure you select the One physical network adapters for management box
- Then, for each node, select the highlighted NIC that will be dedicated for management. The reason only one NIC is highlighted, is because this is the only NICs that has an IP address on the same network as the WAC instance. Once you've finished your selections, scroll to the bottom, then click Apply and test. This will take a few moments.
- Windows Admin Center will then apply the configuration to your NICs. When complete and successful, click Next
- On the Virtual Switch page, you have a number of options
- Create one virtual switch for compute and storage together - in this configuration, your Azure Stack HCI 21H2 nodes will create a vSwitch, comprised of multiple NICs, and the bandwidth available across these NICs will be shared by the Azure Stack HCI 21H2 nodes themselves, for storage traffic, and in addition, any VMs you deploy on top of the nodes, will also share this bandwidth.
- Create one virtual switch for compute only - in this configuration, you would leave some NICs dedicated to storage traffic, and have a set of NICs attached to a vSwitch, to which your VMs traffic would be dedicated.
- Create two virtual switches - in this configuration, you can create separate vSwitches, each attached to different sets of underlying NICs. This may be useful if you wish to dedicate a set of underlying NICs to VM traffic, and another set to storage traffic, but wish to have vNICs used for storage communication instead of the underlying NICs.
- You also have a check-box for Skip virtual switch creation - if you want to define things later, that's fine too
- Select the Create one virtual switch for compute only, and select the NIC on each node with the 10.10.13.x IP address, then click Next
- On the RDMA page, you're now able to configure the appropriate RDMA settings for your host networks. If you do choose to tick the box, in a nested environment, you'll be presented with an error, so click Next
- On the Define networks page, this is where you can define the specific networks, separate subnets, and optionally apply VLANs. In this nested environment, we now have 3 NICs remaining. Configure your remaining NICs as follows, by clicking on a field in the table and entering the appropriate information.
NOTE - we have a simple flat network in this configuration. One of the NICs have been claimed by the Management NIC, The remaining NICs will be show in the table in WAC, so ensure they align with the information below. WAC won't allow you to proceed unless everything aligns correctly.
Node | Name | IP Address | Subnet Mask |
---|---|---|---|
AZSHCINODE01 | Storage 1 | 10.10.11.1 | 24 |
AZSHCINODE01 | Storage 2 | 10.10.12.1 | 24 |
AZSHCINODE01 | VM | 10.10.13.1 | 24 |
AZSHCINODE02 | Storage 1 | 10.10.11.2 | 24 |
AZSHCINODE02 | Storage 2 | 10.10.12.2 | 24 |
AZSHCINODE02 | VM | 10.10.13.2 | 24 |
When you click Apply and test, Windows Admin Center validates network connectivity between the adapters in the same VLAN and subnet, which may take a few moments. Once complete, your configuration should look similar to this:
NOTE, You may be prompted with a Credential Security Service Provider (CredSSP) box - read the information, then click Yes
-
Once the networks have been verified, you can optionally review the networking test report, and once complete, click Next
-
Once changes have been successfully applied, click Next: Clustering
With the network configured for the workshop environment, it's time to construct the local cluster.
-
At the start of the Cluster wizard, on the Validate the cluster page, click Validate.
-
Cluster validation will then start, and will take a few moments to complete - once completed, you should see a successful message.
NOTE - Cluster validation is intended to catch hardware or configuration problems before a cluster goes into production. Cluster validation helps to ensure that the Azure Stack HCI 21H2 solution that you're about to deploy is truly dependable. You can also use cluster validation on configured failover clusters as a diagnostic tool. If you're interested in learning more about Cluster Validation, check out the official docs.
- Optionally, if you want to review the validation report, click on Download report and open the file in your browser.
- Back in the Validate the cluster screen, click Next
- On the Create the cluster page, enter your cluster name as AZSHCICLUS (IMPORTANT - make sure you use AZSHCICLUS as the name of the cluster as we pre-created the AD object in Active Directory to reflect this name)
- Under IP address, click Specify one or more static addresses, and enter 192.168.0.4
- Expand Advanced and review the settings, then click Create cluster
- With all settings confirmed, click Create cluster. This will take a few moments. Once complete, click Next: Storage
With the cluster successfully created, you're now good to proceed on to configuring your storage. Whilst less important in a fresh nested environment, it's always good to start from a clean slate, so first, you'll clean the drives before configuring storage.
- On the storage landing page within the Create Cluster wizard, click Erase Drives, and when prompted, with You're about to erase all existing data, click Erase drives. Once complete, you should have a successful confirmation message, then click Next
- On the Check drives page, validate that all your drives have been detected, and show correctly. As these are virtual disks in a nested environment, they won't display as SSD or HDD etc. You should have 4 data drives per node. Once verified, click Next
- Storage Spaces Direct validation tests will then automatically run, which will take a few moments.
- Once completed, you should see a successful confirmation. You can scroll through the brief list of tests, or alternatively, click to Download report to view more detailed information, then click Next
- The final step with storage, is to Enable Storage Spaces Direct, so click Enable. This will take a few moments.
- With Storage Spaces Direct enabled, click Next:SDN
With Storage configured, for the purpose of this lab, we will skip the SDN configuration.
- On the Define the Network Controller cluster page, click Skip
- On the confirmation page, click on Go to connections list
By deploying an Azure Stack HCI 21H2 cluster, you're providing high availability for workloads. These resources are considered highly available if the nodes that host resources are up; however, the cluster generally requires more than half the nodes to be running, which is known as having quorum.
Quorum is designed to prevent split-brain scenarios which can happen when there is a partition in the network and subsets of nodes cannot communicate with each other. This can cause both subsets of nodes to try to own the workload and write to the same disk which can lead to numerous problems. However, this is prevented with Failover Clustering's concept of quorum which forces only one of these groups of nodes to continue running, so only one of these groups will stay online.
In this step, we're going to utilize a Cloud witness to help provide quorum. If you want to learn more about quorum, check out the official documentation.
As part of this guide, we're going to set up cluster quorum, using Windows Admin Center.
- If you're not already, ensure you're logged into your Windows Admin Center instance, and click on your azshciclus cluster that you created earlier
- You may be prompted for credentials, so log in with your azshci\azureuser credentials and tick the Use these credentials for all connections box. You should then be connected to your azshciclus cluster
- After a few moments of verification, the cluster dashboard will open.
- On the cluster dashboard, at the very bottom-left of the window, click on Settings
- In the Settings window, click on Witness and under Witness type, use the drop-down to select Cloud witness
-
Open a new tab in your browser, and navigate to https://portal.azure.com and login with your Azure credentials
-
You should already have a subscription from an earlier step, but if not, you should review those steps and create one, then come back here
-
Once logged into the Azure portal, click on Create a Resource, click Storage, then Storage account
-
For the Create storage account blade, ensure the correct subscription is selected, then enter the following:
- Resource Group: Create new, then enter azshcicloudwitness, and click OK
- Storage account name: azshcicloudwitness
- Region: Select your preferred region
- Performance: Only standard is supported
- Redundancy: Locally-redundant storage (LRS) - Failover Clustering uses the blob file as the arbitration point, which requires some consistency guarantees when reading the data. Therefore you must select Locally-redundant storage for Replication type.
- On the Advanced page, ensure that Enable blob public access is unchecked, and Minimum TLS version is set to Version 1.2
- On the Networking, Data protection, Encryption and Tags pages, accept the defaults and press Next
- When complete, click Create and your deployment will begin. This should take a few moments.
- Once complete, in the notification, click on Go to resource
- On the left-hand navigation, under Settings, click Access Keys. When you create a Microsoft Azure Storage Account, it is associated with two Access Keys that are automatically generated - Primary Access key and Secondary Access key. For a first-time creation of Cloud Witness, use the Primary Access Key. There is no restriction regarding which key to use for Cloud Witness.
- Click on Show keys and take a copy of the Storage account name and key1
- On the left-hand navigation, under Settings, click Endpoints and make a note of your blob service endpoint.
NOTE - The required service endpoint is the section of the Blob service URL after blob., i.e. for our configuration, core.windows.net
- With all the information gathered, return to the Windows Admin Center and complete the form with your values, then click Save
- Within a few moments, your witness settings should be successfully applied and you have now completed configuring the quorum settings for the azshciclus cluster.
You've now successfully deployed and configured your Azure Stack HCI 21H2 cluster!
In this step, you've successfully created a nested Azure Stack HCI 21H2 cluster using Windows Admin Center. With this complete, you can now Integrate Azure Stack HCI 21H2 with Azure
If, while you work through this guide, you have an idea to make the product better, whether it's something in Azure Stack HCI, Windows Admin Center, or the Azure Arc integration and experience, let us know! We want to hear from you!
For Azure Stack HCI, Head on over to the Azure Stack HCI 21H2 Q&A forum, where you can share your thoughts and ideas about making the technologies better and raise an issue if you're having trouble with the technology.
If you notice something is wrong with this guide, such as a step isn't working, or something just doesn't make sense - help us to make this guide better! Raise an issue in GitHub, and we'll be sure to fix this as quickly as possible!
If you're having an issue with Azure Stack HCI 21H2 outside of this guide, head on over to the Azure Stack HCI 21H2 Q&A forum, where Microsoft experts and valuable members of the community will do their best to help you.