Azure / Azure/azure-quickstart-templates
201-vm-new-or-existing-conditions
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
Hi All,
I have been trying to modify one of the recently updated templates to work with windows 2016.
201-vm-new-or-existing-conditions - URL - https://github.com/Azure/azure-quickstart-templates/blob/master/201-vm-new-or-existing-conditions/azuredeploy.json
I think i`m missing something but i don`t know what.
### Issue Details
I have tried to convert the template for windows but for some reason the linux variables keep catching up with me.
### Repro steps (*if necessary, delete otherwise*)
1. Added the following
"imagePublisher": {
"type": "string",
"defaultValue": "MicrosoftWindowsServer",
"metadata": {
"description": "Image Publisher"
}
},
"imageOffer": {
"type": "string",
"defaultValue": "WindowsServer",
"metadata": {
"description": "Image Offer"
}
},
"imageSKU": {
"type": "string",
"defaultValue": "2016-Datacenter",
"metadata": {
"description": "Image SKU"
}
},
2. "storageProfile": {
"imageReference": {
"publisher": "[parameters('imagePublisher')]",
"offer": "[parameters('imageOffer')]",
"sku": "[parameters('imageSKU')]",
"version": "latest"
},
"osDisk": {
"createOption": "FromImage"
}
},
3. Removed "sshPublicKey": {
"type": "securestring",
"defaultValue": "",
"metadata": {
"description": "ssh key for the Virtual Machine."
}
},
4. Removed the sshkey from this:
"authenticationType": {
"type": "string",
"defaultValue": "password",
"allowedValues": [
"password"
5. Removed the following variable
"linuxConfiguration": {
"disablePasswordAuthentication": true,
"ssh": {
"publicKeys": [
{
"path": "[concat('/home/', parameters('adminUsername'), '/.ssh/authorized_keys')]",
"keyData": "[parameters('sshPublicKey')]"
}
]
}
},
Have i missed something?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with 201-vm-new-or-existing-conditions/azuredeploy.json and compare the added imagePublisher, imageOffer, imageSKU, and storageProfile settings with the remaining authenticationType and Linux configuration references. Done means the template can be adapted for Windows Server 2016 without Linux variables or SSH settings causing deployment errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100