Azure / Azure/azure-quickstart-templates
azure-quickstart-templates/quickstarts/microsoft.azurestackhci/create-cluster /azuredeploy.json needs update
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
# The template worked in the past and recently stopped working. Potentially due to Portal update

***template 8-16***

Even if the name is properly filled, the error check would not go away, and it prevents deployment.
After inspection, it is due to lack of conditional logic to make clusterWitnessStorageAccountName optional and skip creating a storage account although the template attempts to set a variable clusterWitnessStorageAccountNameVar to "" when witnessType is "No Witness", it never uses a condition on the storage account resource itself.
Suggested fix is to add ***"condition": "[equals(parameters('witnessType'), 'Cloud')]",*** to line 549

I can confirm that the conditional logic removes the error.
Contributor guide
No contributing guide indexed for this repository
Research direction
Open quickstarts/microsoft.azurestackhci/create-cluster/azuredeploy.json and inspect the storage account resource around line 549, along with the witnessType and clusterWitnessStorageAccountName parameters and variables. Validate a deployment using "No Witness" and "Cloud" witness settings; done means the no-witness template no longer triggers the storage-account validation error while cloud witness still creates the account.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100