Skip to content

Commit

Permalink
Merge pull request #6681 from r4f4/azure-upi-gen2-fix-4.11
Browse files Browse the repository at this point in the history
[release-4.11] OCPBUGS-4405: UPI: Azure: create HyperV2 rhcos image
  • Loading branch information
openshift-merge-robot committed Dec 20, 2022
2 parents 4bf477b + 3d94ff8 commit d3fb15a
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions upi/azure/02_storage.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
},
"variables" : {
"location" : "[resourceGroup().location]",
"imageName" : "[concat(parameters('baseName'), '-image')]"
"imageName" : "[concat(parameters('baseName'), '-image')]",
"imageNameGen2" : "[concat(parameters('baseName'), '-gen2')]"
},
"resources" : [
{
Expand All @@ -36,6 +37,23 @@
}
}
}
},
{
"apiVersion": "2020-12-01",
"type": "Microsoft.Compute/images",
"name": "[variables('imageNameGen2')]",
"location": "[variables('location')]",
"properties": {
"hyperVGeneration": "V2",
"storageProfile": {
"osDisk": {
"osType": "Linux",
"osState": "Generalized",
"blobUri": "[parameters('vhdBlobURL')]",
"storageAccountType": "Standard_LRS"
}
}
}
}
]
}
}

0 comments on commit d3fb15a

Please sign in to comment.