Complete the code to create an Azure Availability Set for high availability.
az vm availability-set create --name myAvailabilitySet --resource-group myResourceGroup --[1]The platform-fault-domain-count option sets the number of fault domains to improve reliability.
Complete the code to configure Azure Load Balancer health probe.
az network lb probe create --resource-group myResourceGroup --lb-name myLoadBalancer --name myHealthProbe --protocol tcp --port 80 --[1] 5
The interval option sets how often the health probe runs, improving reliability by detecting failures quickly.
Fix the error in the Azure VM scale set creation command to ensure automatic instance repair is enabled.
az vmss create --resource-group myResourceGroup --name myScaleSet --image UbuntuLTS --upgrade-policy-mode automatic --[1] trueThe correct parameter to enable automatic instance repair is automatic-repairs-enabled.
Fill both blanks to create an Azure Storage Account with geo-redundant replication and enable soft delete.
az storage account create --name mystorageaccount --resource-group myResourceGroup --sku [1] --kind StorageV2 az storage account update --name mystorageaccount --resource-group myResourceGroup --[2] true
Standard_GRS enables geo-redundant storage for reliability. enable-delete-retention turns on soft delete to protect data from accidental deletion.
Fill all three blanks to define an Azure Monitor alert rule that triggers when CPU usage exceeds 80% for 5 minutes.
az monitor metrics alert create --name HighCPUAlert --resource-group myResourceGroup --scopes [1] --condition "avg '[2]' > [3]" --description "Alert when CPU > 80%"
The scopes parameter needs the resource ID of the VM. The metric name is Percentage CPU, and the threshold is 80 percent.