Exercise 5 – availability sets
In this section, we will look at the steps to create availability sets.
To recap from a previous section, Availability sets, where they were covered, availability sets are used to provide redundancy for a virtual machine to protect from failures within an individual data center, such as a hardware cluster failure.
Follow these steps to create an availability set:
- Log in to the Azure portal at https://portal.azure.com. You can alternatively use the Azure desktop app: https://portal.azure.com/App/Download.
- In the search bar, type in availability set; click on Availability sets from the list of services shown.
- In the Availability sets blade, click on the Create availability set button or use the + Add button from the top menu bar of the blade.
- In the Create availability set wizard blade’s Basics tab, provide the following information:
a) Subscription: Select the subscription to be billed for this resource.
b) Resource group: Select an existing resource group or select Create new.
c) Name: Enter a name for the availability set.
d) Region: Enter the region into which resources should be deployed that will be associated with the availability set.
e) Fault domains: Enter the number of fault domains required, or accept the provided value if already at the maximum.
f) Update domains: Enter the number of fault domains required.
g) Click Next: Advanced.
5. In the Advanced tab, select a proximity placement group if required.
Select Next: Tags and add any tags as required. Click Next: Review + create.
6. On the Review + create tab, review your settings; you may go back to the Basics, Advanced, or Tags tab and make any edits if required. Once you have confirmed your settings are as required, you can click Create.
You will receive a notification that the availability set was created successfully.
7. In the Availability sets blade, the created availability set can be seen:
Figure 3.43 – Availability sets
8. When creating a resource that can utilize availability sets, you can now select the availability set to use with that resource.
Important note
The resource you are creating must be in the same region as the availability set; otherwise, there will be no availability sets available for you to select.
In this exercise, we looked at creating availability sets.